Package adams.flow.sink.sequenceplotter
Class SequencePlotPoint
- java.lang.Object
-
- adams.data.container.AbstractDataPoint
-
- adams.data.sequence.XYSequencePoint
-
- adams.flow.sink.sequenceplotter.SequencePlotPoint
-
- All Implemented Interfaces:
CloneHandler,DataPoint,DataPointWithMetaData,XYSequencePointWithErrors,Serializable,Comparable
public class SequencePlotPoint extends XYSequencePoint implements XYSequencePointWithErrors
ExtendedXYSequencePointwhich can store X/Y error information as well.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Double[]m_ErrorXthe X errors.protected Double[]m_ErrorYthe Y errors.-
Fields inherited from class adams.data.sequence.XYSequencePoint
m_ID, m_MetaData, m_X, m_Y
-
Fields inherited from class adams.data.container.AbstractDataPoint
m_Parent
-
-
Constructor Summary
Constructors Constructor Description SequencePlotPoint()Initializes the point.SequencePlotPoint(double x, double y)Initializes the point.SequencePlotPoint(String id, double x, double y)Initializes the point.SequencePlotPoint(String id, double x, double y, Double[] errorX, Double[] errorY)Initializes the point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassign(DataPoint other)Obtains the stored variables from the other data point.Double[]getErrorX()Returns the error information for X.Double[]getErrorY()Returns the error information for Y.doublegetMaxX()Returns the maximum for X.doublegetMaxY()Returns the maximum for Y.doublegetMinX()Returns the minimum for X.doublegetMinY()Returns the minimum for Y.booleanhasErrorX()Checks whether error information for X is available.booleanhasErrorY()Checks whether error information for Y is available.-
Methods inherited from class adams.data.sequence.XYSequencePoint
compareTo, getID, getMetaData, getX, getY, hasID, hasMetaData, setID, setMetaData, setX, setY, toString
-
Methods inherited from class adams.data.container.AbstractDataPoint
equals, getClone, getParent, hasParent, setParent, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble, toDouble
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Constructor Detail
-
SequencePlotPoint
public SequencePlotPoint()
Initializes the point.
-
SequencePlotPoint
public SequencePlotPoint(double x, double y)Initializes the point.- Parameters:
x- the X valuey- the Y value
-
SequencePlotPoint
public SequencePlotPoint(String id, double x, double y)
Initializes the point.- Parameters:
id- the ID, use null to ignorex- the X valuey- the Y value
-
SequencePlotPoint
public SequencePlotPoint(String id, double x, double y, Double[] errorX, Double[] errorY)
Initializes the point.- Parameters:
id- the ID, use null to ignorex- the X valuey- the Y valueerrorX- the error for X (either delta or min/max)errorY- the error for Y (either delta or min/max)
-
-
Method Detail
-
assign
public void assign(DataPoint other)
Obtains the stored variables from the other data point.- Specified by:
assignin interfaceDataPoint- Overrides:
assignin classXYSequencePoint- Parameters:
other- the data point to get the values from
-
getMinX
public double getMinX()
Returns the minimum for X.- Specified by:
getMinXin interfaceXYSequencePointWithErrors- Overrides:
getMinXin classXYSequencePoint- Returns:
- the minimum
-
getMaxX
public double getMaxX()
Returns the maximum for X.- Specified by:
getMaxXin interfaceXYSequencePointWithErrors- Overrides:
getMaxXin classXYSequencePoint- Returns:
- the maximum
-
hasErrorX
public boolean hasErrorX()
Checks whether error information for X is available.- Specified by:
hasErrorXin interfaceXYSequencePointWithErrors- Returns:
- true if available
-
getErrorX
public Double[] getErrorX()
Returns the error information for X.- Specified by:
getErrorXin interfaceXYSequencePointWithErrors- Returns:
- the error information, null if not available
-
getMinY
public double getMinY()
Returns the minimum for Y.- Specified by:
getMinYin interfaceXYSequencePointWithErrors- Overrides:
getMinYin classXYSequencePoint- Returns:
- the minimum
-
getMaxY
public double getMaxY()
Returns the maximum for Y.- Specified by:
getMaxYin interfaceXYSequencePointWithErrors- Overrides:
getMaxYin classXYSequencePoint- Returns:
- the maximum
-
hasErrorY
public boolean hasErrorY()
Checks whether error information for Y is available.- Specified by:
hasErrorYin interfaceXYSequencePointWithErrors- Returns:
- true if available
-
getErrorY
public Double[] getErrorY()
Returns the error information for Y.- Specified by:
getErrorYin interfaceXYSequencePointWithErrors- Returns:
- the error information, null if not available
-
-