Class TLcdInterval

java.lang.Object
com.luciad.util.TLcdInterval
All Implemented Interfaces:
ILcdCloneable, ILcdInterval, Serializable, Cloneable

public class TLcdInterval extends Object implements ILcdInterval, ILcdCloneable
Default implementation of ILcdInterval.
See Also:
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Creates a new TLcdInterval with both bounds set to 0.
    TLcdInterval(double aMin, double aMax)
    Creates a new TLcdInterval with the given bounds.
    TLcdInterval(double aMin, double aMax, String aDisplayName)
    Creates a new TLcdInterval with the given bounds and the given name.
    Creates a new TLcdInterval with the same bounds and the same name as the given interval.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    Makes Object.clone() public.
    boolean
     
    Returns the name of the interval.
    double
    Returns the upper bound of the interval.
    double
    Returns the lower bound of the interval.
    int
     
    void
    setDisplayName(String aDisplayName)
    Sets the display name.
    void
    setMax(double aMax)
    Sets the upper bound.
    void
    setMin(double aMin)
    Sets the lower bound.
     

    Methods inherited from class java.lang.Object Link icon

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details Link icon

    • TLcdInterval Link icon

      public TLcdInterval()
      Creates a new TLcdInterval with both bounds set to 0.
    • TLcdInterval Link icon

      public TLcdInterval(double aMin, double aMax, String aDisplayName)
      Creates a new TLcdInterval with the given bounds and the given name.
      Parameters:
      aMin - the lower bound.
      aMax - the upper bound.
      aDisplayName - the display name.
    • TLcdInterval Link icon

      public TLcdInterval(double aMin, double aMax)
      Creates a new TLcdInterval with the given bounds.
      Parameters:
      aMin - the lower bound.
      aMax - the upper bound.
    • TLcdInterval Link icon

      public TLcdInterval(ILcdInterval aInterval)
      Creates a new TLcdInterval with the same bounds and the same name as the given interval.
      Parameters:
      aInterval - the ILcdInterval to be copied.
  • Method Details Link icon

    • setMin Link icon

      public void setMin(double aMin)
      Sets the lower bound.
      Parameters:
      aMin - the new lower bound.
      See Also:
    • getMin Link icon

      public double getMin()
      Description copied from interface: ILcdInterval
      Returns the lower bound of the interval.
      Specified by:
      getMin in interface ILcdInterval
      Returns:
      the lower bound of the interval.
    • setMax Link icon

      public void setMax(double aMax)
      Sets the upper bound.
      Parameters:
      aMax - the new upper bound.
      See Also:
    • getMax Link icon

      public double getMax()
      Description copied from interface: ILcdInterval
      Returns the upper bound of the interval.
      Specified by:
      getMax in interface ILcdInterval
      Returns:
      the upper bound of the interval.
    • setDisplayName Link icon

      public void setDisplayName(String aDisplayName)
      Sets the display name.
      Parameters:
      aDisplayName - the new name.
      See Also:
    • getDisplayName Link icon

      public String getDisplayName()
      Description copied from interface: ILcdInterval
      Returns the name of the interval.
      Specified by:
      getDisplayName in interface ILcdInterval
      Returns:
      the name of the interval.
    • equals Link icon

      public boolean equals(Object aO)
      Overrides:
      equals in class Object
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • clone Link icon

      public Object clone()
      Description copied from interface: ILcdCloneable

      Makes Object.clone() public.

      When for example extending from java.lang.Object, it can be implemented like this:
      public Object clone() {
      try {
      return super.clone();
      } catch ( CloneNotSupportedException e ) {
      // Cannot happen: extends from Object and implements Cloneable (see also Object.clone)
      throw new RuntimeException( e );
      }
      }
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class Object
      See Also: