sgtplot.util
Class SoTPoint
- java.lang.Object
-
- sgtplot.util.SoTPoint
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class SoTPoint extends java.lang.Object implements java.io.Serializable, java.lang.CloneableSoTPointhas two coordinates which are of typeSoTValue. SoT stands for space or time, but being basically lazy I've abbreviated it.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SoTPoint()Default constructor.SoTPoint(double x, double y)Construct aSoTPointfromdoubles.SoTPoint(double x, GeoDate y)Construct aSoTPointfrom adoubleand aGeoDate.SoTPoint(double x, long y)SoTPoint(GeoDate x, double y)Construct aSoTPointfrom aGeoDateand adouble.SoTPoint(long x, double y)SoTPoint(SoTPoint pt)Construct aSoTPointfrom aSoTPoint.SoTPoint(SoTValue x, SoTValue y)Construct aSoTPointfromSoTValues.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(SoTPoint point)Add to point.SoTPointcopy()Make a copy of theSoTRange.booleanequals(SoTPoint stp)Test for equality.SoTValuegetX()Get x valueSoTValuegetY()Get y valuebooleanisXTime()Test if x value is timebooleanisYTime()Test if y value is timevoidsetX(SoTValue x)Set x valuevoidsetY(SoTValue y)Set y valuejava.lang.StringtoString()ConvertSoTPointto a default string
-
-
-
Constructor Detail
-
SoTPoint
public SoTPoint()
Default constructor.
-
SoTPoint
public SoTPoint(SoTValue x, SoTValue y)
Construct aSoTPointfromSoTValues.- Parameters:
x- space or time coordinatey- space or time coordinate
-
SoTPoint
public SoTPoint(double x, double y)Construct aSoTPointfromdoubles.
-
SoTPoint
public SoTPoint(double x, GeoDate y)Construct aSoTPointfrom adoubleand aGeoDate.
-
SoTPoint
public SoTPoint(double x, long y)- Since:
- sgtplot 3.0
-
SoTPoint
public SoTPoint(GeoDate x, double y)
Construct aSoTPointfrom aGeoDateand adouble.
-
SoTPoint
public SoTPoint(long x, double y)- Since:
- sgtplot 3.0
-
SoTPoint
public SoTPoint(SoTPoint pt)
Construct aSoTPointfrom aSoTPoint.
-
-
Method Detail
-
getX
public SoTValue getX()
Get x value
-
setX
public void setX(SoTValue x)
Set x value- Since:
- sgtplot 3.0
-
getY
public SoTValue getY()
Get y value
-
setY
public void setY(SoTValue y)
Set y value- Since:
- sgtplot 3.0
-
equals
public boolean equals(SoTPoint stp)
Test for equality. For equality both x and y values must be equal.
-
isXTime
public boolean isXTime()
Test if x value is time
-
isYTime
public boolean isYTime()
Test if y value is time
-
add
public void add(SoTPoint point)
Add to point.- Since:
- sgtplot 3.0
-
copy
public SoTPoint copy()
Make a copy of theSoTRange.- Since:
- sgtplot 3.0
-
toString
public java.lang.String toString()
ConvertSoTPointto a default string- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation of the SoTPoint.
-
-
DMelt 3.0 © DataMelt by jWork.ORG