|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.displayers.DisplayerParameters
public class DisplayerParameters
DisplayerParameters holds various properties of some displayed value. These properties can be anything that specify a displayable value (Color, name etc) and should also hold information about remote connection that displayed value is referred to. DisplayerParameters is a serializable object.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected java.lang.String[] |
names
|
protected java.util.Map<java.lang.String,java.lang.Object> |
values
|
Constructor Summary | |
---|---|
|
DisplayerParameters(java.lang.String name)
Creates new instance of DisplayerParameters. |
|
DisplayerParameters(java.lang.String name,
DoubleDisplayer disp)
Constructs new DisplayerParameters with the given name. |
|
DisplayerParameters(java.lang.String name,
double min,
double max,
java.lang.String units,
java.lang.String format)
Constructs new DisplayerParameters with the given values. |
|
DisplayerParameters(java.lang.String name,
int size)
Creates new instance of DisplayerParameters. |
protected |
DisplayerParameters(java.lang.String name,
int size,
DoubleDisplayer disp)
|
protected |
DisplayerParameters(java.lang.String name,
int size,
double min,
double max,
java.lang.String units,
java.lang.String format)
|
protected |
DisplayerParameters(java.lang.String name,
java.util.List<java.lang.String> names,
java.util.List values)
Creates new instance of DisplayerParameters. |
|
DisplayerParameters(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> values)
Constructs new DisplayerParameters with the given name and values listed in the Map. |
protected |
DisplayerParameters(java.lang.String name,
java.lang.String[] names,
java.lang.Object[] values)
Creates new instance of DisplayerParameters. |
Method Summary | |
---|---|
java.lang.Object |
addParameter(java.lang.String name,
java.lang.Object value)
Adds a parameter with the given name. |
int |
count()
Returns the number of all parameters. |
boolean |
equals(java.lang.Object o)
|
protected boolean |
getBool(java.lang.String name)
|
protected double |
getDouble(java.lang.String name)
|
java.lang.String |
getFormat()
|
protected int |
getInt(java.lang.String name)
|
double |
getMaximum()
|
double |
getMinimum()
|
java.lang.String |
getName()
Returns the name. |
java.lang.String[] |
getNames()
Returns the names of all parameters. |
java.lang.Object |
getParameter(java.lang.String name)
Returns the parameter under the given name. |
java.lang.String |
getUnits()
|
java.lang.Object[] |
getValues()
Returns the values of all parameters |
int |
hashCode()
|
java.lang.Object |
putParameter(java.lang.String name,
java.lang.Object value)
Puts a parameter under the given name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected transient java.lang.String[] names
protected transient java.util.Map<java.lang.String,java.lang.Object> values
Constructor Detail |
---|
public DisplayerParameters(java.lang.String name)
public DisplayerParameters(java.lang.String name, int size)
protected DisplayerParameters(java.lang.String name, java.util.List<java.lang.String> names, java.util.List values)
protected DisplayerParameters(java.lang.String name, java.lang.String[] names, java.lang.Object[] values)
protected DisplayerParameters(java.lang.String name, int size, double min, double max, java.lang.String units, java.lang.String format)
protected DisplayerParameters(java.lang.String name, int size, DoubleDisplayer disp)
public DisplayerParameters(java.lang.String name, DoubleDisplayer disp)
name
- the name parametedisp
- source of parameterspublic DisplayerParameters(java.lang.String name, double min, double max, java.lang.String units, java.lang.String format)
name
- min
- max
- units
- format
- public DisplayerParameters(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> values)
name
- the name parametervalues
- optional parametersMethod Detail |
---|
public java.lang.Object addParameter(java.lang.String name, java.lang.Object value)
name
- the name of the parametervalue
- the parameter
public java.lang.Object putParameter(java.lang.String name, java.lang.Object value)
name
- the name of the parametervalue
- the replacement parameter
public java.lang.Object getParameter(java.lang.String name)
name
- the name of the parameter
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getFormat()
public double getMaximum()
public double getMinimum()
protected double getDouble(java.lang.String name)
protected int getInt(java.lang.String name)
protected boolean getBool(java.lang.String name)
public java.lang.String getUnits()
public java.lang.String[] getNames()
public java.lang.Object[] getValues()
public int count()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |