sgtplot.util
Class SoTDomain
- java.lang.Object
-
- sgtplot.util.SoTDomain
-
- All Implemented Interfaces:
- java.io.Serializable
public class SoTDomain extends java.lang.Object implements java.io.SerializableSoTDomaincontains the X and Y ranges of a domain in user units. These ranges areSoTRangeobjects which can be either Space or Time.- Since:
- sgtplot 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SoTDomain()Default constructor.SoTDomain(Domain domain)Construct aSoTDomainfrom aDomain.SoTDomain(SoTDomain domain)Constract aSoTDomainfrom aSoTDomainSoTDomain(SoTRange xRange, SoTRange yRange)Construct aSoTDomainfromSoTRanges.SoTDomain(SoTRange xRange, SoTRange yRange, boolean xRev, boolean yRev)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(SoTDomain d)Test for equality.SoTPointgetCenter()Get the center of the domain.SoTRangegetXRange()Get the x rangeSoTRangegetYRange()Get the y rangebooleanisXReversed()booleanisXTime()Test if the x range is temporal.booleanisYReversed()booleanisYTime()Test if the y range is temporalvoidsetXRange(SoTRange xRange)Set the x rangevoidsetXReversed(boolean rev)voidsetYRange(SoTRange yRange)Set the y rangevoidsetYReversed(boolean rev)java.lang.StringtoString()
-
-
-
Constructor Detail
-
SoTDomain
public SoTDomain()
Default constructor.
-
SoTDomain
public SoTDomain(Domain domain)
Construct aSoTDomainfrom aDomain.
-
SoTDomain
public SoTDomain(SoTDomain domain)
Constract aSoTDomainfrom aSoTDomain
-
-
Method Detail
-
setXRange
public void setXRange(SoTRange xRange)
Set the x range
-
getXRange
public SoTRange getXRange()
Get the x range
-
setYRange
public void setYRange(SoTRange yRange)
Set the y range
-
getYRange
public SoTRange getYRange()
Get the y range
-
isXTime
public boolean isXTime()
Test if the x range is temporal.
-
isYTime
public boolean isYTime()
Test if the y range is temporal
-
getCenter
public SoTPoint getCenter()
Get the center of the domain.- Since:
- sgtplot 3.0
-
equals
public boolean equals(SoTDomain d)
Test for equality. Both ranges must be equal for equality.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setXReversed
public void setXReversed(boolean rev)
- Since:
- sgtplot 3.0
-
isXReversed
public boolean isXReversed()
- Since:
- sgtplot 3.0
-
setYReversed
public void setYReversed(boolean rev)
- Since:
- sgtplot 3.0
-
isYReversed
public boolean isYReversed()
- Since:
- sgtplot 3.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG