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 TypeMethodDescriptionvoidintReturns the PenDataset that this PenData object is installed inintReturns the series index at which whis PenData's data residesgetPen()intintdoublegetXValue(int row) doublegetYValue(int row) booleanvoidvoidsetColumnIndex(int columnIndex) voidSets the dataset that drives this pen.voidsetOffset(double offset) voidsetVisible(boolean visible) voidsetXValIndex(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)
-