net.sourceforge.arbaro.params
Class Params
java.lang.Object
net.sourceforge.arbaro.params.Params
public class Params
- extends java.lang.Object
Holds the tree parameters and related methods.
(The params for the levels are in LevelParams, not here!)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONICAL
public static final int CONICAL
- See Also:
- Constant Field Values
SPHERICAL
public static final int SPHERICAL
- See Also:
- Constant Field Values
HEMISPHERICAL
public static final int HEMISPHERICAL
- See Also:
- Constant Field Values
CYLINDRICAL
public static final int CYLINDRICAL
- See Also:
- Constant Field Values
TAPERED_CYLINDRICAL
public static final int TAPERED_CYLINDRICAL
- See Also:
- Constant Field Values
FLAME
public static final int FLAME
- See Also:
- Constant Field Values
INVERSE_CONICAL
public static final int INVERSE_CONICAL
- See Also:
- Constant Field Values
TEND_FLAME
public static final int TEND_FLAME
- See Also:
- Constant Field Values
ENVELOPE
public static final int ENVELOPE
- See Also:
- Constant Field Values
leavesErrorValue
public double leavesErrorValue
levelParams
protected LevelParams[] levelParams
random
public Random random
preview
public boolean preview
ignoreVParams
public boolean ignoreVParams
stopLevel
public int stopLevel
Species
public java.lang.String Species
LeafQuality
public double LeafQuality
Smooth
public double Smooth
mesh_quality
public double mesh_quality
smooth_mesh_level
public int smooth_mesh_level
Levels
public int Levels
Ratio
public double Ratio
RatioPower
public double RatioPower
Shape
public int Shape
BaseSize
public double BaseSize
Flare
public double Flare
Lobes
public int Lobes
LobeDepth
public double LobeDepth
Leaves
public int Leaves
LeafShape
public java.lang.String LeafShape
LeafScale
public double LeafScale
LeafScaleX
public double LeafScaleX
LeafStemLen
public double LeafStemLen
LeafBend
public double LeafBend
LeafDistrib
public int LeafDistrib
Scale
public double Scale
ScaleV
public double ScaleV
_0Scale
public double _0Scale
_0ScaleV
public double _0ScaleV
AttractionUp
public double AttractionUp
PruneRatio
public double PruneRatio
PrunePowerLow
public double PrunePowerLow
PrunePowerHigh
public double PrunePowerHigh
PruneWidth
public double PruneWidth
PruneWidthPeak
public double PruneWidthPeak
_0BaseSplits
public int _0BaseSplits
scale_tree
public double scale_tree
changeEvent
protected javax.swing.event.ChangeEvent changeEvent
listenerList
protected javax.swing.event.EventListenerList listenerList
Params
public Params()
Params
public Params(Params other)
getLevelParams
public LevelParams getLevelParams(int stemlevel)
setSpecies
public void setSpecies(java.lang.String sp)
getSpecies
public java.lang.String getSpecies()
toXML
public void toXML(java.io.PrintWriter w)
clearParams
public void clearParams()
prepare
public void prepare(int seed)
throws ParamException
- Throws:
ParamException
getShapeRatio
public double getShapeRatio(double ratio)
getShapeRatio
public double getShapeRatio(double ratio,
int shape)
setParam
public void setParam(java.lang.String name,
java.lang.String value)
throws ParamException
- Throws:
ParamException
getParamGroup
public java.util.TreeMap getParamGroup(int level,
java.lang.String group)
readFromCfg
public void readFromCfg(java.io.InputStream is)
readFromXML
public void readFromXML(java.io.InputStream is)
getParam
public AbstractParam getParam(java.lang.String parname)
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener l)
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener l)
fireStateChanged
protected void fireStateChanged()
enableDisable
public void enableDisable()
- Enables or disables params depending on other
params values.