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, fillRule
stroke, strokeDashArray, strokeWidth
transform
ignoredExtensions, ignoredXMLElements
listOfListeners, 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, unsetFillRule
getStroke, getStrokeDashArray, getStrokeWidth, isSetStroke, isSetStrokeDashArray, isSetStrokeWidth, setStroke, setStrokeDashArray, setStrokeWidth, unsetStroke, unsetStrokeDashArray, unsetStrokeWidth
getTransform, isSetTransform, setTransform, unsetTransform
toString
addCVTerm, 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, unsetSBOTerm
addAllChangeListeners, 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, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
removeTreeNodeChangeListener
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private 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 false
public double getRy()
public boolean isSetRy()
public void setRy(java.lang.Double ry)
public boolean isAbsoluteX()
isAbsoluteX
in interface Point3D
public boolean isSetAbsoluteX()
isSetAbsoluteX
in interface Point3D
public void setAbsoluteX(java.lang.Boolean absoluteX)
setAbsoluteX
in interface Point3D
public boolean unsetAbsoluteX()
unsetAbsoluteX
in interface Point3D
true
, if absoluteX was set before,
otherwise false
public boolean isAbsoluteY()
isAbsoluteY
in interface Point3D
public boolean isSetAbsoluteY()
isSetAbsoluteY
in interface Point3D
public void setAbsoluteY(java.lang.Boolean absoluteY)
setAbsoluteY
in interface Point3D
public boolean unsetAbsoluteY()
unsetAbsoluteY
in interface Point3D
true
, if absoluteY was set before,
otherwise false
public boolean isAbsoluteZ()
isAbsoluteZ
in interface Point3D
public boolean isSetAbsoluteZ()
isSetAbsoluteZ
in interface Point3D
public void setAbsoluteZ(java.lang.Boolean absoluteZ)
setAbsoluteZ
in interface Point3D
public boolean unsetAbsoluteZ()
unsetAbsoluteZ
in interface Point3D
true
, if absoluteZ was set before,
otherwise false
public boolean isAbsoluteRx()
public boolean isSetAbsoluteRx()
public void setAbsoluteRx(java.lang.Boolean absoluteRx)
public boolean unsetAbsoluteRx()
true
, if absoluteRx was set before,
otherwise false
public boolean isAbsoluteRy()
public boolean isSetAbsoluteRy()
public void setAbsoluteRy(java.lang.Boolean absoluteRy)
public boolean unsetAbsoluteRy()
true
, if absoluteRy was set before,
otherwise false
public boolean isAbsoluteHeight()
public boolean isSetAbsoluteHeight()
public void setAbsoluteHeight(java.lang.Boolean absoluteHeight)
public boolean unsetAbsoluteHeight()
true
, if absoluteHeight was set before,
otherwise false
public boolean isAbsoluteWidth()
public boolean isSetAbsoluteWidth()
public void setAbsoluteWidth(java.lang.Boolean absoluteWidth)
public boolean unsetAbsoluteWidth()
true
, if absoluteWidth was set before,
otherwise false
public boolean unsetRy()
true
, if ry was set before,
otherwise false
public 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 false
public double getWidth()
public boolean isSetWidth()
public void setWidth(java.lang.Double width)
public boolean unsetWidth()
true
, if width was set before,
otherwise false
public Rectangle clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class GraphicalPrimitive2D
public void initDefaults()
Transformation
initDefaults
in class GraphicalPrimitive2D
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSBase
public SBase getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSBase
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBase
SBase
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 SBase
writeXMLAttributes
in class GraphicalPrimitive2D
Map
containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
SBase
.
If the given attribute name is not recognized, nothing is done and
false
is returned.
readAttribute
in interface SBase
readAttribute
in class GraphicalPrimitive2D
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.