public class GraphicalObject extends AbstractNamedSBase implements UniqueNamedSBase, IBoundingBox
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, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| 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()
Returns the
BoundingBox. |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
String |
getMetaidRef()
Returns the value of metaidRef
|
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetBoundingBox()
Returns
true is the BoundingBox is set. |
boolean |
isSetMetaidRef()
Returns whether metaidRef is set
|
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setBoundingBox(BoundingBox boundingBox)
Sets the
BoundingBox. |
void |
setMetaidRef(String metaidRef)
Sets the value of metaidRef which uniquely references elements in the model.
|
void |
unsetBoundingBox()
Unsets the
BoundingBox. |
boolean |
unsetMetaidRef()
Unsets the variable metaidRef
|
Map<String,String> |
writeXMLAttributes() |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, 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, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, 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 void initDefaults()
public BoundingBox createBoundingBox()
IBoundingBoxBoundingBox for this object.createBoundingBox in interface IBoundingBoxBoundingBox.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 AbstractSBasepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSBasepublic BoundingBox getBoundingBox()
IBoundingBoxBoundingBox.getBoundingBox in interface IBoundingBoxBoundingBox.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 AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isSetBoundingBox()
IBoundingBoxtrue is the BoundingBox is set.isSetBoundingBox in interface IBoundingBoxBoundingBox is set.public void setBoundingBox(BoundingBox boundingBox)
IBoundingBoxBoundingBox.setBoundingBox in interface IBoundingBoxboundingBox - the BoundingBox to set.public void unsetBoundingBox()
IBoundingBoxBoundingBox.unsetBoundingBox in interface IBoundingBoxpublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic 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 AbstractSBaseCopyright © 2009–2017. All rights reserved.