public class TLcdInterval extends java.lang.Object implements ILcdInterval, ILcdCloneable
ILcdInterval
.Constructor and Description |
---|
TLcdInterval()
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,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(java.lang.Object aO) |
java.lang.String |
getDisplayName()
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(java.lang.String aDisplayName)
Sets the display name.
|
void |
setMax(double aMax)
Sets the upper bound.
|
void |
setMin(double aMin)
Sets the lower bound.
|
java.lang.String |
toString() |
public TLcdInterval()
public TLcdInterval(double aMin, double aMax, java.lang.String aDisplayName)
aMin
- the lower bound.aMax
- the upper bound.aDisplayName
- the display name.public TLcdInterval(double aMin, double aMax)
aMin
- the lower bound.aMax
- the upper bound.public TLcdInterval(ILcdInterval aInterval)
aInterval
- the ILcdInterval to be copied.public void setMin(double aMin)
aMin
- the new lower bound.getMin()
public double getMin()
ILcdInterval
getMin
in interface ILcdInterval
public void setMax(double aMax)
aMax
- the new upper bound.getMax()
public double getMax()
ILcdInterval
getMax
in interface ILcdInterval
public void setDisplayName(java.lang.String aDisplayName)
aDisplayName
- the new name.getDisplayName()
public java.lang.String getDisplayName()
ILcdInterval
getDisplayName
in interface ILcdInterval
public boolean equals(java.lang.Object aO)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
ILcdCloneable
Makes Object.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 );
}
}
clone
in interface ILcdCloneable
clone
in class java.lang.Object
Object.clone()