java.lang.Object
com.inductiveautomation.factorypmi.application.components.chart.easychart.PenData

public class PenData extends Object
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 Details

    • PenData

      public PenData(Pen pen)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addChangeListener

      public void addChangeListener(ChangeListener l)
    • removeChangeListener

      public void removeChangeListener(ChangeListener l)
    • setData

      public void setData(Dataset dataset)
      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 dataset
      IllegalArgumentException - 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

      public PenDataset 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

      public String getPenName()
    • getPen

      public Pen getPen()
    • getColumnIndex

      public int getColumnIndex()
    • setColumnIndex

      public void setColumnIndex(int columnIndex)
    • isVisible

      public boolean isVisible()
    • setVisible

      public void setVisible(boolean visible)