sgtplot.util
Class Domain
- java.lang.Object
-
- sgtplot.util.Domain
-
- All Implemented Interfaces:
- java.io.Serializable
public class Domain extends java.lang.Object implements java.io.SerializableGraphDomaincontains the X and Y ranges in user units.- Since:
- sgtplot 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Domain()Default constructor.Domain(Domain domain)Create a copy of aDomain.Domain(Range2D xRange, Range2D yRange)Domain(Range2D xRange, Range2D yRange, boolean xRev, boolean yRev)Domain(Range2D xRange, TimeRange tRange)Domain(Range2D xRange, TimeRange tRange, boolean xRev, boolean yRev)Domain(TimeRange tRange, Range2D yRange)Domain(TimeRange tRange, Range2D yRange, boolean xRev, boolean yRev)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(Domain d)Tests for equality ofDomains.TimeRangegetTimeRange()Get the time rangeRange2DgetXRange()Get the x range.Range2DgetYRange()Get the y range.booleanisXReversed()booleanisXTime()Test if x range is time.booleanisYReversed()booleanisYTime()Test if y range is time.voidsetXRange(Range2D xRange)Set the x range.voidsetXRange(TimeRange tRange)Set the x range as time.voidsetXReversed(boolean rev)voidsetYRange(Range2D yRange)Set the y rangevoidsetYRange(TimeRange tRange)Set the yrange as time.voidsetYReversed(boolean rev)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Domain
public Domain()
Default constructor.
-
Domain
public Domain(Domain domain)
Create a copy of aDomain. The references for the ranges are copied, not the objects.
-
Domain
public Domain(TimeRange tRange, Range2D yRange, boolean xRev, boolean yRev)
- Since:
- sgtplot 3.0
-
-
Method Detail
-
setXRange
public void setXRange(Range2D xRange)
Set the x range.
-
setXRange
public void setXRange(TimeRange tRange)
Set the x range as time.
-
getXRange
public Range2D getXRange()
Get the x range.
-
setYRange
public void setYRange(Range2D yRange)
Set the y range
-
setYRange
public void setYRange(TimeRange tRange)
Set the yrange as time.
-
getYRange
public Range2D getYRange()
Get the y range.
-
getTimeRange
public TimeRange getTimeRange()
Get the time range
-
isXTime
public boolean isXTime()
Test if x range is time.
-
isYTime
public boolean isYTime()
Test if y range is time.
-
setYReversed
public void setYReversed(boolean rev)
- Since:
- sgtplot 3.0
-
isYReversed
public boolean isYReversed()
- Since:
- sgtplot 3.0
-
setXReversed
public void setXReversed(boolean rev)
- Since:
- sgtplot 3.0
-
isXReversed
public boolean isXReversed()
- Since:
- sgtplot 3.0
-
equals
public boolean equals(Domain d)
Tests for equality ofDomains. Both ranges must be equal.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG