java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SBasePlugin
, TreeNodeWithChangeSupport
public class RenderGraphicalObjectPlugin extends AbstractRenderPlugin
GraphicalObject
class with an extra attribute.Constructor | Description |
---|---|
RenderGraphicalObjectPlugin(GraphicalObject graphicalObject) |
Creates a new
RenderGraphicalObjectPlugin instance. |
RenderGraphicalObjectPlugin(RenderGraphicalObjectPlugin obj) |
Clone constructor
|
Modifier and Type | Method | Description |
---|---|---|
RenderGraphicalObjectPlugin |
clone() |
Creates a new instance of
SBasePlugin from this SBasePlugin . |
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getObjectRole() |
Returns the value of
objectRole . |
int |
hashCode() |
|
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isSetObjectRole() |
Returns whether
objectRole is set. |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
Reads and sets the attribute if it is know from this
SBasePlugin . |
void |
setObjectRole(java.lang.String objectRole) |
Sets the value of objectRole
|
boolean |
unsetObjectRole() |
Unsets the variable objectRole.
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
Returns a
Map containing the XML attributes of this object. |
getAllowsChildren, getChildAt, getChildCount, getPackageName, getPrefix, getRenderInformation, getURI, isSetRenderInformation, setRenderInformation, unsetRenderInformation
fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getElementNamespace, getExtendedSBase, getLevel, getPackageVersion, getParentSBMLObject, getSBMLDocument, getVersion, isSetExtendedSBase, isSetPackageVersion, removeFromParent, setExtendedSBase, setNamespace, setPackageVersion
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getParent, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySet
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public RenderGraphicalObjectPlugin(GraphicalObject graphicalObject)
RenderGraphicalObjectPlugin
instance.graphicalObject
- the GraphicalObject
that is extendedpublic RenderGraphicalObjectPlugin(RenderGraphicalObjectPlugin obj)
obj
- the RenderGraphicalObjectPlugin
instance to clonepublic RenderGraphicalObjectPlugin clone()
SBasePlugin
SBasePlugin
from this SBasePlugin
.clone
in interface SBasePlugin
clone
in class AbstractSBasePlugin
SBasePlugin
from this SBasePlugin
.public void initDefaults()
AbstractRenderPlugin
initDefaults
in class AbstractRenderPlugin
public int hashCode()
hashCode
in interface SBasePlugin
hashCode
in class AbstractSBasePlugin
public boolean equals(java.lang.Object obj)
equals
in interface SBasePlugin
equals
in class AbstractSBasePlugin
public java.lang.String getObjectRole()
objectRole
.objectRole
.public boolean isSetObjectRole()
objectRole
is set.objectRole
is set.public void setObjectRole(java.lang.String objectRole)
objectRole
- the value of objectRole to be set.public boolean unsetObjectRole()
true
if objectRole was set before, otherwise false
.public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePlugin
Map
containing the XML attributes of this object.writeXMLAttributes
in interface SBasePlugin
writeXMLAttributes
in class AbstractRenderPlugin
Map
containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBasePlugin
SBasePlugin
.readAttribute
in interface SBasePlugin
readAttribute
in class AbstractRenderPlugin
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.