public abstract class VariableProjection extends AbstractProjection implements NamedVariables
defaultProjectionsX, Y, ZU, V, W| Constructor and Description |
|---|
VariableProjection(String name)
Creates a named projection.
|
| Modifier and Type | Method and Description |
|---|---|
protected BooleanVariable |
addVariable(String name,
boolean def,
String description)
Adds a named variable with default value.
|
void |
addVariable(String name,
double add) |
protected DoubleVariable |
addVariable(String name,
double min,
double max,
double def,
String unit,
String description)
Adds a named variable with minimum, maximum and default value.
|
void |
addVariable(String name,
int add) |
protected IntegerVariable |
addVariable(String name,
int min,
int max,
int def,
String unit,
String description)
Adds a named variable with minimum, maximum and default value.
|
boolean |
exists(String name)
Return true if variable with name exists.
|
boolean |
getBooleanVariable(String name) |
String |
getDescription(String name)
Return the description
|
double |
getDoubleVariable(String name) |
int |
getIntegerVariable(String name) |
String |
getName()
Returns the name of the projection.
|
String |
getUnit(String name)
Return the unit, or null;
|
Set |
getVariableNames()
Return set of variable names
|
Collection |
getVariables()
Returns a list of all variables
|
void |
multiplyVariable(String name,
double factor) |
void |
multiplyVariable(String name,
int factor) |
void |
restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
setVariable(String name,
boolean value)
Sets the value of a named variable.
|
void |
setVariable(String name,
double value)
Sets the value of a named variable.
|
void |
setVariable(String name,
int value)
Sets the value of a named variable.
|
String |
toString()
Returns name of projection
|
copy, deltaTransform, getFeature, getFormula, getID, getViewPort, setViewPort, supports, transform, transform, transform, transformpublic VariableProjection(String name)
public String getName()
ProjectiongetName in interface ProjectiongetName in class AbstractProjectionprotected DoubleVariable addVariable(String name, double min, double max, double def, String unit, String description)
protected IntegerVariable addVariable(String name, int min, int max, int def, String unit, String description)
protected BooleanVariable addVariable(String name, boolean def, String description)
public boolean exists(String name)
exists in interface NamedVariablespublic Set getVariableNames()
getVariableNames in interface NamedVariablespublic Collection getVariables()
public double getDoubleVariable(String name)
getDoubleVariable in interface NamedVariablespublic int getIntegerVariable(String name)
getIntegerVariable in interface NamedVariablespublic boolean getBooleanVariable(String name)
getBooleanVariable in interface NamedVariablespublic void setVariable(String name, double value)
setVariable in interface NamedVariablespublic void setVariable(String name, int value)
setVariable in interface NamedVariablespublic void setVariable(String name, boolean value)
setVariable in interface NamedVariablespublic void multiplyVariable(String name, double factor)
multiplyVariable in interface NamedVariablespublic void multiplyVariable(String name, int factor)
multiplyVariable in interface NamedVariablespublic void addVariable(String name, double add)
addVariable in interface NamedVariablespublic void addVariable(String name, int add)
addVariable in interface NamedVariablespublic String toString()
AbstractProjectiontoString in class AbstractProjectionpublic void save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
save in interface org.freehep.xml.io.XMLIOsave in class AbstractProjectionpublic void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
restore in interface org.freehep.xml.io.XMLIOrestore in class AbstractProjectionCopyright © 1996-2014 FreeHEP. All Rights Reserved.