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

    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

    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

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

    • TLcdInterval

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

      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

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

      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

    • setMin

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

      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

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

      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

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

      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

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

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

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

      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: