Class PenData
java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.PenData
PenData represents the data for a single pen. It is backed by a
Dataset
, and pulls X and Y values from
columns in that Dataset-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
Returns the PenDataset that this PenData object is installed inint
Returns the series index at which whis PenData's data residesgetPen()
int
int
double
getXValue
(int row) double
getYValue
(int row) boolean
void
void
setColumnIndex
(int columnIndex) void
Sets the dataset that drives this pen.void
setOffset
(double offset) void
setVisible
(boolean visible) void
setXValIndex
(int valIndex) toString()
-
Constructor Details
-
PenData
-
-
Method Details
-
toString
-
addChangeListener
-
removeChangeListener
-
setData
Sets the dataset that drives this pen. setColumnIndex and setXValIndex must be called before this is called.- Throws:
ArrayIndexOutOfBoundsException
- if this pen's columns aren't in the datasetIllegalArgumentException
- if this pen's columns are an incompatible datatype, or if the column indexes were not set before this function was called.
-
setOffset
public void setOffset(double offset) -
getParentDataset
Returns the PenDataset that this PenData object is installed in -
getParentIndex
public int getParentIndex()Returns the series index at which whis PenData's data resides -
getXValIndex
public int getXValIndex() -
setXValIndex
public void setXValIndex(int valIndex) -
getPointCount
public int getPointCount() -
getXValue
public double getXValue(int row) -
getYValue
public double getYValue(int row) -
getPenName
-
getPen
-
getColumnIndex
public int getColumnIndex() -
setColumnIndex
public void setColumnIndex(int columnIndex) -
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible)
-