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

Class Range2D

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class Range2D
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Contains minimum, maximum, and delta double values.
    Since:
    sgtplot 1.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      double delta
      The value of the increment
      double end
      The range's last value
      double start
      The range's first value
    • Constructor Summary

      Constructors 
      Constructor and Description
      Range2D()
      Default constructor.
      Range2D(double ustart, double uend)
      Construct Range2D with start and end.
      Range2D(double ustart, double uend, double udel)
      Range2D constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(Range2D range)
      Adds the Range2D object to this Range2D.
      Range2D copy()
      Create a copy of Range2D object.
      boolean equals(Range2D r)
      Test for equality.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • start

        public double start
        The range's first value
      • end

        public double end
        The range's last value
      • delta

        public double delta
        The value of the increment
    • Constructor Detail

      • Range2D

        public Range2D()
        Default constructor.
      • Range2D

        public Range2D(double ustart,
                       double uend)
        Construct Range2D with start and end. Default for delta is NaN
        Parameters:
        ustart - first value
        uend - last value
      • Range2D

        public Range2D(double ustart,
                       double uend,
                       double udel)
        Range2D constructor.
        Parameters:
        ustart - first value
        uend - last value
        udel - increment value
    • Method Detail

      • add

        public void add(Range2D range)
        Adds the Range2D object to this Range2D. The resulting Range2D is the smallest Range2D that contains both the origial Range2D and the specified Range2D.
      • equals

        public boolean equals(Range2D r)
        Test for equality. Both start, end, and delta must be equal for equality.
      • toString

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

        public Range2D copy()
        Create a copy of Range2D object.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.