java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, CompartmentalizedSBase, IBoundingBox, NamedSBase, SBase, UniqueNamedSBase, UniqueSId, TreeNodeWithChangeSupportpublic class CompartmentGlyph extends AbstractReferenceGlyph implements CompartmentalizedSBase
CompartmentGlyph class is derived from GraphicalObject
and inherits its attributes. Additionally it has tow optional attributes:
compartment and order.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor | Description |
|---|---|
CompartmentGlyph() |
Creates a new instance of
CompartmentGlyph. |
CompartmentGlyph(int level,
int version) |
Creates a new instance of
CompartmentGlyph. |
CompartmentGlyph(java.lang.String id) |
Creates a new instance of
CompartmentGlyph. |
CompartmentGlyph(java.lang.String id,
int level,
int version) |
Creates a new instance of
CompartmentGlyph. |
CompartmentGlyph(CompartmentGlyph compartmentGlyph) |
Creates a new instance of
CompartmentGlyph. |
| Modifier and Type | Method | Description |
|---|---|---|
CompartmentGlyph |
clone() |
|
java.lang.String |
getCompartment() |
|
NamedSBase |
getCompartmentInstance() |
|
double |
getOrder() |
Returns the value of order
|
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isCompartmentMandatory() |
|
boolean |
isSetCompartment() |
|
boolean |
isSetCompartmentInstance() |
|
boolean |
isSetOrder() |
Returns whether order is set
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
|
boolean |
setCompartment(java.lang.String compartment) |
|
boolean |
setCompartment(Compartment compartment) |
|
void |
setOrder(double order) |
Sets the oder.
|
boolean |
unsetCompartment() |
|
boolean |
unsetOrder() |
Unsets the variable order
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
isValidIdequals, getNamedSBaseInstance, getReference, getReferenceInstance, getSBaseInstance, hashCode, isSetReference, setNamedSBase, setReference, setSBase, unsetReferenceaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, 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, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, 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, userObjectKeySetcreateBoundingBox, createBoundingBox, createBoundingBox, createBoundingBox, getAllowsChildren, getBoundingBox, getChildAt, getChildCount, getMetaidRef, isIdMandatory, isSetBoundingBox, isSetMetaidRef, setBoundingBox, setMetaidRef, unsetBoundingBox, unsetMetaidRefgetId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetNamefinalize, getClass, notify, notifyAll, wait, wait, waitaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, equals, 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, hasExtension, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafaddAllChangeListeners, 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 CompartmentGlyph()
CompartmentGlyph.public CompartmentGlyph(CompartmentGlyph compartmentGlyph)
CompartmentGlyph.compartmentGlyph - the CompartmentGlyph to clone.public CompartmentGlyph(int level,
int version)
CompartmentGlyph.level - the SBML levelversion - the SBML versionpublic CompartmentGlyph(java.lang.String id)
CompartmentGlyph.id - the idpublic CompartmentGlyph(java.lang.String id,
int level,
int version)
CompartmentGlyph.id - the idlevel - the SBML levelversion - the SBML versionpublic CompartmentGlyph clone()
clone in interface SBaseclone in class AbstractReferenceGlyphpublic void initDefaults()
initDefaults in class GraphicalObjectpublic java.lang.String getCompartment()
getCompartment in interface CompartmentalizedSBasepublic NamedSBase getCompartmentInstance()
getCompartmentInstance in interface CompartmentalizedSBasepublic double getOrder()
public boolean isCompartmentMandatory()
isCompartmentMandatory in interface CompartmentalizedSBasepublic boolean isSetCompartment()
isSetCompartment in interface CompartmentalizedSBasepublic boolean isSetCompartmentInstance()
isSetCompartmentInstance in interface CompartmentalizedSBasepublic boolean isSetOrder()
public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
readAttribute in interface SBasereadAttribute in class GraphicalObjectpublic boolean setCompartment(Compartment compartment)
setCompartment in interface CompartmentalizedSBasepublic boolean setCompartment(java.lang.String compartment)
setCompartment in interface CompartmentalizedSBasepublic void setOrder(double order)
The order attribute is an optional attribute of type Double. It is there
to handle the case where compartments in a layout overlap, and tools want to
clearly disambiguate which CompartmentGlyph is on top of the other.
The order attribute follows the coordinate system. There are z dimension points
into a screen; thus, an element with a lower order value will be in front
of an elements with a higher value. If not specified, the order is undefined
and tools are free to display the compartment glyphs in the order that best fits their
needs.
Note: if z coordinates are used (and this order is seemingly redundant), the order can still be used to disambiguate drawing order.
order - the oderpublic boolean unsetCompartment()
unsetCompartment in interface CompartmentalizedSBasepublic boolean unsetOrder()
true, if order was set before,
otherwise falsepublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalObjectCopyright © 2009–2022. All rights reserved.