org.himinbi.dataset
Class LeafDataSet
java.lang.Object
|
+--org.himinbi.dataset.DataSet
|
+--org.himinbi.dataset.TreeModelDataSet
|
+--org.himinbi.dataset.LeafDataSet
- All Implemented Interfaces:
- OneDimensionalDataSet, javax.swing.table.TableModel, javax.swing.tree.TreeModel
- public class LeafDataSet
- extends TreeModelDataSet
- implements OneDimensionalDataSet
Methods inherited from class org.himinbi.dataset.TreeModelDataSet |
addTreeModelListener, fireTreeNodeInserted, fireTreeNodesChange, fireTreeNodesRemoved, fireTreeStructureChange, getChild, getChildCount, getColumnClass, getColumnCount, getColumnName, getIndexOfChild, getParent, getPathToRoot, getRoot, getUnits, getValueAt, isCellEditable, isLeaf, isTreeModelListener, removeTreeModelListener, setParent, setValueAt, toString, valueForPathChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LeafDataSet
public LeafDataSet(java.lang.String name)
LeafDataSet
public LeafDataSet(java.lang.String name,
java.lang.String units)
LeafDataSet
public LeafDataSet(java.lang.String name,
java.lang.String units,
BranchDataSet parent)
addPoint
public void addPoint(double point)
addPoint
public void addPoint(java.lang.Object point)
- Specified by:
addPoint
in interface OneDimensionalDataSet
getPoint
public java.lang.Object getPoint(int index)
- Specified by:
getPoint
in interface OneDimensionalDataSet
setPoint
public void setPoint(int index,
java.lang.Object value)
- Specified by:
setPoint
in interface OneDimensionalDataSet
getValue
public double getValue(int index)
- Specified by:
getValue
in interface OneDimensionalDataSet
getNode
public TreeModelDataSet getNode(java.lang.String nodeName)
- Overrides:
getNode
in class TreeModelDataSet
getMin
public double getMin()
- Specified by:
getMin
in interface OneDimensionalDataSet
- Overrides:
getMin
in class DataSet
getMax
public double getMax()
- Specified by:
getMax
in interface OneDimensionalDataSet
- Overrides:
getMax
in class DataSet
getTreeAsString
public java.lang.String getTreeAsString()
- Overrides:
getTreeAsString
in class TreeModelDataSet
getTreeAsString
protected java.lang.StringBuffer getTreeAsString(java.lang.StringBuffer path)
- Overrides:
getTreeAsString
in class TreeModelDataSet
getLeafCount
public int getLeafCount()
- Overrides:
getLeafCount
in class TreeModelDataSet
getLeaf
public LeafDataSet getLeaf(int index)
- Overrides:
getLeaf
in class TreeModelDataSet
getDataClass
public java.lang.Class getDataClass()
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface OneDimensionalDataSet
- Overrides:
getRowCount
in class TreeModelDataSet
isCellEditable
public boolean isCellEditable(int rowIndex)
getPath
public java.awt.Shape getPath(OneDimensionalDataSet reference,
java.awt.geom.Rectangle2D viewDataSpace,
java.awt.geom.Rectangle2D viewCanvasSpace)
- Maps the dataset relative to another set. The mapping is done from
the data space (i.e. the units of the data sets) to the graph space
(i.e. the units of the canvas being drawn on). The mapping requires:
-
A data set to draw relative to. The relative set is used for
the x-axis and this set is on the y-axis.
-
The data space of the viewport.
-
The canvas space of the viewport.
- Specified by:
getPath
in interface OneDimensionalDataSet