org.diirt.datasource.graphene.Graph2DResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-graphene Show documentation
Show all versions of datasource-graphene Show documentation
Support for real-time graph rendering with graphene.
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.graphene;
import org.diirt.vtype.VImage;
import org.diirt.vtype.VType;
/**
*
* @author carcassi
*/
public class Graph2DResult {
private final VType data;
private final VImage image;
private final GraphDataRange xRange;
private final GraphDataRange yRange;
private final int focusDataIndex;
private final VType selectedData;
Graph2DResult(VType data, VImage image, GraphDataRange xRange, GraphDataRange yRange, int focusDataIndex) {
this(data, image, xRange, yRange, focusDataIndex, null);
}
Graph2DResult(VType data, VImage image, GraphDataRange xRange, GraphDataRange yRange, int focusDataIndex, VType selectedData) {
this.data = data;
this.image = image;
this.xRange = xRange;
this.yRange = yRange;
this.focusDataIndex = focusDataIndex;
this.selectedData = selectedData;
}
public VType getData() {
return data;
}
public int focusDataIndex() {
return focusDataIndex;
}
public VImage getImage() {
return image;
}
public GraphDataRange getxRange() {
return xRange;
}
public GraphDataRange getyRange() {
return yRange;
}
}