public class TLcdInterval extends 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,
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 |
---|---|
Object |
clone()
Makes
Object.clone() public. |
boolean |
equals(Object aO) |
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(String aDisplayName)
Sets the display name.
|
void |
setMax(double aMax)
Sets the upper bound.
|
void |
setMin(double aMin)
Sets the lower bound.
|
String |
toString() |
public TLcdInterval()
public TLcdInterval(double aMin, double aMax, 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(String aDisplayName)
aDisplayName
- the new name.getDisplayName()
public String getDisplayName()
ILcdInterval
getDisplayName
in interface ILcdInterval
public 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 Object
Object.clone()