public class GraphicalObject extends AbstractNamedSBase implements UniqueNamedSBase
CompartmentGlyph, GeneralGlyph,
SpeciesGlyph, ReactionGlyph, ReferenceGlyph, TextGlyph,
and SpeciesReferenceGlyph) are derived from the class GraphicalObject.
Each object of class GraphicalObject has a mandatory BoundingBox, which
specifies the position and the size of the object. While GraphicalObject is the
base class for most elements in the Layout package, it is not an abstract class.
It can be instantiated when used in the listOfAdditionalGraphicalObjects to describe
additional elements and relationships. Since it only describes a BoundingBox,
programs are encouraged to add Annotation objects that describe program-specific
graphical information.ignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
GraphicalObject() |
GraphicalObject(GraphicalObject graphicalObject) |
GraphicalObject(int level,
int version) |
GraphicalObject(String id) |
GraphicalObject(String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
GraphicalObject |
clone() |
BoundingBox |
createBoundingBox()
Creates and sets a
BoundingBox for this object. |
BoundingBox |
createBoundingBox(Dimensions dimensions) |
BoundingBox |
createBoundingBox(double width,
double height,
double depth)
Creates and sets a
BoundingBox for this object, with the
given parameters for Dimensions. |
BoundingBox |
createBoundingBox(double width,
double height,
double depth,
double x,
double y,
double z)
|
boolean |
equals(Object object) |
boolean |
getAllowsChildren() |
BoundingBox |
getBoundingBox() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
String |
getMetaidRef()
Returns the value of metaidRef
|
int |
hashCode() |
boolean |
isIdMandatory() |
boolean |
isSetBoundingBox() |
boolean |
isSetMetaidRef()
Returns whether metaidRef is set
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setBoundingBox(BoundingBox boundingBox)
This is the only required element (besides the SId) of the
GraphicalObject. |
void |
setMetaidRef(String metaidRef)
Sets the value of metaidRef which uniquely references elements in the model.
|
void |
unsetBoundingBox() |
boolean |
unsetMetaidRef()
Unsets the variable metaidRef
|
Map<String,String> |
writeXMLAttributes() |
getId, getName, isSetId, isSetName, isValidId, setId, setName, toString, unsetId, unsetNameaddCVTerm, 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, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic GraphicalObject()
public GraphicalObject(GraphicalObject graphicalObject)
graphicalObject - public GraphicalObject(int level,
int version)
level - version - public GraphicalObject(String id)
id - public GraphicalObject(String id, int level, int version)
id - level - version - public GraphicalObject clone()
clone in interface SBaseclone in class AbstractSBasepublic BoundingBox createBoundingBox()
BoundingBox for this object.BoundingBox.public BoundingBox createBoundingBox(Dimensions dimensions)
dimensions - public BoundingBox createBoundingBox(double width, double height, double depth)
BoundingBox for this object, with the
given parameters for Dimensions.width - height - depth - BoundingBox.public BoundingBox createBoundingBox(double width, double height, double depth, double x, double y, double z)
width - height - depth - x - y - z - BoundingBox.public boolean equals(Object object)
equals in interface SBaseequals in class AbstractNamedSBasepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSBasepublic BoundingBox getBoundingBox()
public TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic int hashCode()
hashCode in interface SBasehashCode in class AbstractNamedSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBasepublic boolean isSetBoundingBox()
public void setBoundingBox(BoundingBox boundingBox)
GraphicalObject. Because
this class is not an abstract class and can be instantiated, Annotation objects are
encouraged to be added.boundingBox - public void unsetBoundingBox()
public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractNamedSBasepublic String getMetaidRef()
public boolean isSetMetaidRef()
public void setMetaidRef(String metaidRef)
metaidRef - public boolean unsetMetaidRef()
true, if metaidRef was set before,
otherwise falsepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractNamedSBaseCopyright © 2009–2016. All rights reserved.