public class ScalarRange extends java.lang.Object implements CompositeProperty, Scannable, Clonable
Modifier and Type | Class and Description |
---|---|
static class |
ScalarRange.Updating |
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
Constructor and Description |
---|
ScalarRange() |
ScalarRange(double lo,
double hi) |
ScalarRange(ScalarRange.Updating updating) |
Modifier and Type | Method and Description |
---|---|
double |
clip(double value) |
ScalarRange |
clone()
Returns a clone of this composite property.
|
void |
expandInterval(DoubleInterval range) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
DoubleInterval |
getInterval() |
PropertyMode |
getIntervalMode() |
double |
getLowerBound() |
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
HasProperties |
getPropertyHost()
Returns the host for this property
|
PropertyInfo |
getPropertyInfo()
If this object is a property, returns the corresponding information
|
double |
getRange() |
static java.lang.Class<?>[] |
getSubClasses() |
ScalarRange.Updating |
getUpdating() |
PropertyMode |
getUpdatingMode() |
double |
getUpperBound() |
boolean |
hasProperty(java.lang.String name) |
boolean |
isWritable()
Returns
true if this component should in fact be written to
secondary storage. |
void |
scale(double s) |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
setInterval(DoubleInterval range) |
void |
setIntervalMode(PropertyMode mode) |
void |
setPropertyHost(HasProperties newParent)
Sets the host for this property.
|
void |
setPropertyInfo(PropertyInfo info)
Sets the property information for this property.
|
void |
setUpdating(ScalarRange.Updating updating) |
void |
setUpdatingMode(PropertyMode mode) |
void |
updateInterval(double min,
double max) |
void |
updateInterval(DoubleInterval minmax) |
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
void |
zeroInterval() |
public static PropertyList myProps
public ScalarRange()
public ScalarRange(ScalarRange.Updating updating)
public ScalarRange(double lo, double hi)
public static java.lang.Class<?>[] getSubClasses()
public PropertyInfo getPropertyInfo()
CompositeProperty
getPropertyInfo
in interface CompositeProperty
public void setPropertyInfo(PropertyInfo info)
CompositeProperty
setPropertyInfo
in interface CompositeProperty
info
- property informationpublic HasProperties getPropertyHost()
CompositeProperty
getPropertyHost
in interface CompositeProperty
public void setPropertyHost(HasProperties newParent)
CompositeProperty
setPropertyHost
in interface CompositeProperty
newParent
- host for this propertypublic Property getProperty(java.lang.String name)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic boolean hasProperty(java.lang.String name)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public ScalarRange clone()
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class java.lang.Object
public boolean isWritable()
Scannable
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public ScalarRange.Updating getUpdating()
public void setUpdating(ScalarRange.Updating updating)
public PropertyMode getUpdatingMode()
public void setUpdatingMode(PropertyMode mode)
public PropertyMode getIntervalMode()
public void setIntervalMode(PropertyMode mode)
public DoubleInterval getInterval()
public void setInterval(DoubleInterval range)
public void expandInterval(DoubleInterval range)
public void updateInterval(DoubleInterval minmax)
public double getUpperBound()
public double getLowerBound()
public double clip(double value)
public double getRange()
public void updateInterval(double min, double max)
public void zeroInterval()
public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
Scannable
scan
and complete
enough to allow full reconstruction of the element.public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.public void scale(double s)