Documentation of 'sgtplot.util.Domain' Java class
Domain
sgtplot.util

Class Domain

  • All Implemented Interfaces:
    java.io.Serializable


    public class Domain
    extends java.lang.Object
    implements java.io.Serializable
    GraphDomain contains the X and Y ranges in user units.
    Since:
    sgtplot 2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Domain

        public Domain()
        Default constructor.
      • Domain

        public Domain(Domain domain)
        Create a copy of a Domain. The references for the ranges are copied, not the objects.
      • Domain

        public Domain(Range2D xRange,
                      Range2D yRange,
                      boolean xRev,
                      boolean yRev)
        Since:
        sgtplot 3.0
      • Domain

        public Domain(TimeRange tRange,
                      Range2D yRange,
                      boolean xRev,
                      boolean yRev)
        Since:
        sgtplot 3.0
      • Domain

        public Domain(Range2D xRange,
                      TimeRange tRange,
                      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 of Domains. Both ranges must be equal.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.