org.sbml.jsbml.ext.render
public class Rectangle extends GraphicalPrimitive2D implements Point3D
GraphicalPrimitive2D.FillRule| Modifier and Type | Field and Description |
|---|---|
private java.lang.Boolean |
absoluteHeight |
private java.lang.Boolean |
absoluteRx |
private java.lang.Boolean |
absoluteRy |
private java.lang.Boolean |
absoluteWidth |
private java.lang.Boolean |
absoluteX |
private java.lang.Boolean |
absoluteY |
private java.lang.Boolean |
absoluteZ |
private java.lang.Double |
height |
private java.lang.Double |
rx |
private java.lang.Double |
ry |
private static long |
serialVersionUID
Generated serial version identifier
|
private java.lang.Double |
width |
private java.lang.Double |
x |
private java.lang.Double |
y |
private java.lang.Double |
z |
fill, fillRulestroke, strokeDashArray, strokeWidthtransformignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
Rectangle()
Creates an Rectangle instance
|
Rectangle(Rectangle obj)
Clone constructor
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
boolean |
getAllowsChildren() |
SBase |
getChildAt(int childIndex) |
int |
getChildCount() |
double |
getHeight() |
double |
getRx() |
double |
getRy() |
double |
getWidth() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isAbsoluteHeight() |
boolean |
isAbsoluteRx() |
boolean |
isAbsoluteRy() |
boolean |
isAbsoluteWidth() |
boolean |
isAbsoluteX() |
boolean |
isAbsoluteY() |
boolean |
isAbsoluteZ() |
boolean |
isSetAbsoluteHeight() |
boolean |
isSetAbsoluteRx() |
boolean |
isSetAbsoluteRy() |
boolean |
isSetAbsoluteWidth() |
boolean |
isSetAbsoluteX() |
boolean |
isSetAbsoluteY() |
boolean |
isSetAbsoluteZ() |
boolean |
isSetHeight() |
boolean |
isSetRx() |
boolean |
isSetRy() |
boolean |
isSetWidth() |
boolean |
isSetX() |
boolean |
isSetY() |
boolean |
isSetZ() |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase. |
void |
setAbsoluteHeight(java.lang.Boolean absoluteHeight)
Set the value of absoluteHeight
|
void |
setAbsoluteRx(java.lang.Boolean absoluteRx)
Set the value of absoluteRx
|
void |
setAbsoluteRy(java.lang.Boolean absoluteRy)
Set the value of absoluteRy
|
void |
setAbsoluteWidth(java.lang.Boolean absoluteWidth)
Set the value of absoluteWidth
|
void |
setAbsoluteX(java.lang.Boolean absoluteX)
Set the value of absoluteX
|
void |
setAbsoluteY(java.lang.Boolean absoluteY)
Set the value of absoluteY
|
void |
setAbsoluteZ(java.lang.Boolean absoluteZ)
Set the value of absoluteZ
|
void |
setHeight(java.lang.Double height)
Set the value of height
|
void |
setRx(java.lang.Double rx)
Set the value of rx
|
void |
setRy(java.lang.Double ry)
Set the value of ry
|
void |
setWidth(java.lang.Double width)
Set the value of width
|
void |
setX(java.lang.Double x)
Set the value of x
|
void |
setY(java.lang.Double y)
Set the value of y
|
void |
setZ(java.lang.Double z)
Set the value of z
|
boolean |
unsetAbsoluteHeight()
Unsets the variable absoluteHeight
|
boolean |
unsetAbsoluteRx()
Unsets the variable absoluteRx
|
boolean |
unsetAbsoluteRy()
Unsets the variable absoluteRy
|
boolean |
unsetAbsoluteWidth()
Unsets the variable absoluteWidth
|
boolean |
unsetAbsoluteX()
Unsets the variable absoluteX
|
boolean |
unsetAbsoluteY()
Unsets the variable absoluteY
|
boolean |
unsetAbsoluteZ()
Unsets the variable absoluteZ
|
boolean |
unsetHeight()
Unsets the variable height
|
boolean |
unsetRx()
Unsets the variable rx
|
boolean |
unsetRy()
Unsets the variable ry
|
boolean |
unsetWidth()
Unsets the variable width
|
boolean |
unsetX()
Unsets the variable x
|
boolean |
unsetY()
Unsets the variable y
|
boolean |
unsetZ()
Unsets the variable z
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
equals, getFill, getFillRule, hashCode, isSetFill, isSetFillRule, setFill, setFillRule, unsetFill, unsetFillRulegetStroke, getStrokeDashArray, getStrokeWidth, isSetStroke, isSetStrokeDashArray, isSetStrokeWidth, setStroke, setStrokeDashArray, setStrokeWidth, unsetStroke, unsetStrokeDashArray, unsetStrokeWidthgetTransform, isSetTransform, setTransform, unsetTransformtoStringaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitremoveTreeNodeChangeListeneraddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate static final long serialVersionUID
private java.lang.Double x
private java.lang.Double y
private java.lang.Double z
private java.lang.Double width
private java.lang.Double height
private java.lang.Boolean absoluteX
private java.lang.Boolean absoluteY
private java.lang.Boolean absoluteZ
private java.lang.Boolean absoluteWidth
private java.lang.Boolean absoluteHeight
private java.lang.Double rx
private java.lang.Double ry
private java.lang.Boolean absoluteRx
private java.lang.Boolean absoluteRy
public Rectangle()
public Rectangle(Rectangle obj)
public double getRx()
public boolean isSetRx()
public void setRx(java.lang.Double rx)
public boolean unsetRx()
true, if rx was set before,
otherwise falsepublic double getRy()
public boolean isSetRy()
public void setRy(java.lang.Double ry)
public boolean isAbsoluteX()
isAbsoluteX in interface Point3Dpublic boolean isSetAbsoluteX()
isSetAbsoluteX in interface Point3Dpublic void setAbsoluteX(java.lang.Boolean absoluteX)
setAbsoluteX in interface Point3Dpublic boolean unsetAbsoluteX()
unsetAbsoluteX in interface Point3Dtrue, if absoluteX was set before,
otherwise falsepublic boolean isAbsoluteY()
isAbsoluteY in interface Point3Dpublic boolean isSetAbsoluteY()
isSetAbsoluteY in interface Point3Dpublic void setAbsoluteY(java.lang.Boolean absoluteY)
setAbsoluteY in interface Point3Dpublic boolean unsetAbsoluteY()
unsetAbsoluteY in interface Point3Dtrue, if absoluteY was set before,
otherwise falsepublic boolean isAbsoluteZ()
isAbsoluteZ in interface Point3Dpublic boolean isSetAbsoluteZ()
isSetAbsoluteZ in interface Point3Dpublic void setAbsoluteZ(java.lang.Boolean absoluteZ)
setAbsoluteZ in interface Point3Dpublic boolean unsetAbsoluteZ()
unsetAbsoluteZ in interface Point3Dtrue, if absoluteZ was set before,
otherwise falsepublic boolean isAbsoluteRx()
public boolean isSetAbsoluteRx()
public void setAbsoluteRx(java.lang.Boolean absoluteRx)
public boolean unsetAbsoluteRx()
true, if absoluteRx was set before,
otherwise falsepublic boolean isAbsoluteRy()
public boolean isSetAbsoluteRy()
public void setAbsoluteRy(java.lang.Boolean absoluteRy)
public boolean unsetAbsoluteRy()
true, if absoluteRy was set before,
otherwise falsepublic boolean isAbsoluteHeight()
public boolean isSetAbsoluteHeight()
public void setAbsoluteHeight(java.lang.Boolean absoluteHeight)
public boolean unsetAbsoluteHeight()
true, if absoluteHeight was set before,
otherwise falsepublic boolean isAbsoluteWidth()
public boolean isSetAbsoluteWidth()
public void setAbsoluteWidth(java.lang.Boolean absoluteWidth)
public boolean unsetAbsoluteWidth()
true, if absoluteWidth was set before,
otherwise falsepublic boolean unsetRy()
true, if ry was set before,
otherwise falsepublic void setX(java.lang.Double x)
public boolean unsetX()
public void setY(java.lang.Double y)
public boolean unsetY()
public void setZ(java.lang.Double z)
public boolean unsetZ()
public double getHeight()
public boolean isSetHeight()
public void setHeight(java.lang.Double height)
public boolean unsetHeight()
true, if height was set before,
otherwise falsepublic double getWidth()
public boolean isSetWidth()
public void setWidth(java.lang.Double width)
public boolean unsetWidth()
true, if width was set before,
otherwise falsepublic Rectangle clone()
SBaseSBase with the same properties
like this one.clone in interface SBaseclone in class GraphicalPrimitive2Dpublic void initDefaults()
TransformationinitDefaults in class GraphicalPrimitive2Dpublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class AbstractSBasepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class AbstractSBasepublic SBase getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class AbstractSBasepublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBaseSBase that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalPrimitive2DMap containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBaseSBase.
If the given attribute name is not recognized, nothing is done and
false is returned.
readAttribute in interface SBasereadAttribute in class GraphicalPrimitive2DattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.