public 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 and Description |
|---|
CompartmentGlyph() |
CompartmentGlyph(CompartmentGlyph compartmentGlyph) |
CompartmentGlyph(int level,
int version) |
CompartmentGlyph(String id) |
CompartmentGlyph(String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
CompartmentGlyph |
clone() |
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(String attributeName,
String prefix,
String value) |
boolean |
setCompartment(Compartment compartment) |
boolean |
setCompartment(String compartment) |
void |
setOrder(double order)
The order attribute is an optional attribute of type
Double. |
boolean |
unsetCompartment() |
boolean |
unsetOrder()
Unsets the variable order
|
Map<String,String> |
writeXMLAttributes() |
equals, getNamedSBaseInstance, getReference, getReferenceInstance, hashCode, isSetReference, setNamedSBase, setReference, unsetReferencecreateBoundingBox, createBoundingBox, createBoundingBox, createBoundingBox, getAllowsChildren, getBoundingBox, getChildAt, getChildCount, getMetaidRef, isIdMandatory, isSetBoundingBox, isSetMetaidRef, setBoundingBox, setMetaidRef, unsetBoundingBox, unsetMetaidRefisValidIdaddCVTerm, 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, 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, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, 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, hashCode, 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, userObjectKeySetchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafpublic CompartmentGlyph()
public CompartmentGlyph(CompartmentGlyph compartmentGlyph)
compartmentGlyph - public CompartmentGlyph(int level,
int version)
level - version - public CompartmentGlyph(String id)
id - public CompartmentGlyph(String id, int level, int version)
id - level - version - public CompartmentGlyph clone()
clone in interface SBaseclone in class AbstractReferenceGlyphpublic void initDefaults()
initDefaults in class GraphicalObjectpublic 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(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class GraphicalObjectpublic boolean setCompartment(Compartment compartment)
setCompartment in interface CompartmentalizedSBasepublic boolean setCompartment(String compartment)
setCompartment in interface CompartmentalizedSBasepublic void setOrder(double order)
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 - public boolean unsetCompartment()
unsetCompartment in interface CompartmentalizedSBasepublic boolean unsetOrder()
true, if order was set before,
otherwise falsepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalObjectCopyright © 2009–2016. All rights reserved.