Package com.luciad.util
Class TLcdInterval
java.lang.Object
com.luciad.util.TLcdInterval
- All Implemented Interfaces:
ILcdCloneable
,ILcdInterval
,Serializable
,Cloneable
Default implementation of
ILcdInterval
.- See Also:
-
Constructor Summary
ConstructorDescriptionCreates 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.TLcdInterval
(ILcdInterval aInterval) Creates a new TLcdInterval with the same bounds and the same name as the given interval. -
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.boolean
Returns the name of the interval.double
getMax()
Returns the upper bound of the interval.double
getMin()
Returns the lower bound of the interval.int
hashCode()
void
setDisplayName
(String aDisplayName) Sets the display name.void
setMax
(double aMax) Sets the upper bound.void
setMin
(double aMin) Sets the lower bound.toString()
-
Constructor Details
-
TLcdInterval
public TLcdInterval()Creates a new TLcdInterval with both bounds set to 0. -
TLcdInterval
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
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 interfaceILcdInterval
- 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 interfaceILcdInterval
- Returns:
- the upper bound of the interval.
-
setDisplayName
Sets the display name.- Parameters:
aDisplayName
- the new name.- See Also:
-
getDisplayName
Description copied from interface:ILcdInterval
Returns the name of the interval.- Specified by:
getDisplayName
in interfaceILcdInterval
- Returns:
- the name of the interval.
-
equals
-
hashCode
public int hashCode() -
toString
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.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 interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-