public class RelAbsVector extends AbstractTreeNode
listOfListeners, parent, resourceBundle| Constructor and Description |
|---|
RelAbsVector() |
RelAbsVector(double absolute)
Set only the absolute, but not the relative part, to an initial value
|
RelAbsVector(double absolute,
double relative)
Set both the relative and absolute parts to initial values
|
RelAbsVector(RelAbsVector original)
Copy-constructor
|
RelAbsVector(String coordinate)
Set from a XML-String in the format "a" or "r%" or "a+r%" or "a-r%", as
described in the render-specification
|
| Modifier and Type | Method and Description |
|---|---|
RelAbsVector |
clone() |
boolean |
equals(Object obj) |
double |
getAbsoluteValue() |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int childIndex) |
int |
getChildCount() |
String |
getCoordinate()
Produces a string of the format "a" or "r%" or "a+r%" or "a-r%" as
specified in the render-documentation.
|
double |
getRelativeValue() |
int |
hashCode() |
boolean |
isSetAbsoluteValue() |
boolean |
isSetRelativeValue() |
void |
setAbsoluteValue(double absolute)
Sets absolute part to new value and fires appropriate event
|
boolean |
setCoordinate(String coordinates)
Sets the relative and absolute value based on a String-encoding (like "1",
"30%" or "50-20%"; as defined in the render-specification)
If the String does not represent a valid value, relative and absolute value are set to NaN |
void |
setRelativeValue(double relative)
Sets relative part to new value and fires appropriate event
|
String |
toString()
Produces a string for debugging etc.
|
boolean |
unsetAbsoluteValue()
Tries to unset the absolute value
|
boolean |
unsetRelativeValue()
Tries to unset the relative value
|
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetpublic RelAbsVector()
public RelAbsVector(RelAbsVector original)
original - public RelAbsVector(double absolute)
absolute - coordinate-value (in pt)public RelAbsVector(double absolute,
double relative)
absolute - coordinate-value (in pt)relative - in % of some reference size (of the enclosing BoundingBox),
relative=75 means 75% (i.e. 0.75)public RelAbsVector(String coordinate)
coordinate - String encoding of a RelAbsVector. If invalid, both absolute and
relative part are set to NaN (i.e. unset)public RelAbsVector clone()
clone in class AbstractTreeNodepublic boolean equals(Object obj)
equals in class AbstractTreeNodepublic double getAbsoluteValue()
public double getRelativeValue()
public void setAbsoluteValue(double absolute)
absolute - the new absolute value to be takenpublic void setRelativeValue(double relative)
relative - the new relative value to be taken (in percent, i.e. relative=100d
means 100%)public boolean isSetAbsoluteValue()
public boolean isSetRelativeValue()
public boolean unsetAbsoluteValue()
public boolean unsetRelativeValue()
public boolean setCoordinate(String coordinates)
coordinates - a RelAbsVector stringpublic String getCoordinate()
public String toString()
getCoordinate()toString in class AbstractTreeNodepublic int hashCode()
hashCode in class AbstractTreeNodepublic TreeNode getChildAt(int childIndex)
public int getChildCount()
public boolean getAllowsChildren()
Copyright © 2009–2020. All rights reserved.