public class SpeciesReferenceGlyph extends AbstractReferenceGlyph
SpeciesReferenceGlyph class describes the graphical connection
between a SpeciesGlyph and a ReactionGlyph (which would be
an arrow or some curve in most cases).ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
SpeciesReferenceGlyph() |
SpeciesReferenceGlyph(int level,
int version) |
SpeciesReferenceGlyph(SpeciesReferenceGlyph speciesReferenceGlyph) |
SpeciesReferenceGlyph(String id) |
SpeciesReferenceGlyph(String id,
int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
SpeciesReferenceGlyph |
clone() |
Curve |
createCurve() |
boolean |
equals(Object object) |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
Curve |
getCurve() |
ReactionGlyph |
getReactionGlyph() |
SpeciesReferenceRole |
getRole() |
String |
getSpeciesGlyph() |
SpeciesGlyph |
getSpeciesGlyphInstance() |
String |
getSpeciesReference() |
NamedSBase |
getSpeciesReferenceInstance()
Note that the return type of this method is
NamedSBase because it
could be possible to link some element from other packages to this glyph. |
SpeciesReferenceRole |
getSpeciesReferenceRole() |
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isSetCurve() |
boolean |
isSetSpeciesGlyph() |
boolean |
isSetSpeciesReference() |
boolean |
isSetSpeciesReferenceRole() |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setCurve(Curve curve)
The curve is an optional element of type
Curve. |
void |
setRole(SpeciesReferenceRole role)
The role attribute is of type
SpeciesReferenceRole and is used to specify
how the species reference should be displayed. |
void |
setSpeciesGlyph(String speciesGlyph)
The speciesGlyph attribute contains a reference to the id of a
SpeciesGlyph
object that is to be connected to the ReactionGlyph. |
void |
setSpeciesReference(SimpleSpeciesReference speciesReference)
See setSpeciesReference(String).
|
void |
setSpeciesReference(String speciesReference)
The speciesReference is an optional attribute that allows modelers to
connect the
SpeciesReferenceGlyph with a particular SpeciesReference
of the containing Model. |
void |
setSpeciesReferenceRole(SpeciesReferenceRole role) |
boolean |
unsetCurve() |
void |
unsetSpeciesReference() |
Map<String,String> |
writeXMLAttributes() |
getNamedSBaseInstance, getReference, getReferenceInstance, getSBaseInstance, isSetReference, setNamedSBase, setReference, setSBase, unsetReferencecreateBoundingBox, createBoundingBox, createBoundingBox, createBoundingBox, getAllowsChildren, getBoundingBox, 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, 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, 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 SpeciesReferenceGlyph()
public SpeciesReferenceGlyph(int level,
int version)
level - version - public SpeciesReferenceGlyph(SpeciesReferenceGlyph speciesReferenceGlyph)
speciesReferenceGlyph - public SpeciesReferenceGlyph(String id)
id - public SpeciesReferenceGlyph(String id, int level, int version)
id - level - version - public ReactionGlyph getReactionGlyph()
public SpeciesReferenceGlyph clone()
clone in interface SBaseclone in class AbstractReferenceGlyphpublic void initDefaults()
initDefaults in class GraphicalObjectpublic Curve createCurve()
public boolean equals(Object object)
equals in interface SBaseequals in class AbstractReferenceGlyphpublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class GraphicalObjectpublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class GraphicalObjectpublic Curve getCurve()
public String getSpeciesGlyph()
public SpeciesGlyph getSpeciesGlyphInstance()
public String getSpeciesReference()
public NamedSBase getSpeciesReferenceInstance()
NamedSBase because it
could be possible to link some element from other packages to this glyph.public SpeciesReferenceRole getSpeciesReferenceRole()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractReferenceGlyphpublic boolean isSetCurve()
public boolean isSetSpeciesGlyph()
public boolean isSetSpeciesReference()
public boolean isSetSpeciesReferenceRole()
public boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class GraphicalObjectpublic void setCurve(Curve curve)
Curve. When present, the glyphs
bounding box (as inherited from the GraphicalObject) is to be disregarded.
So as to make the drawing of these curves as easy as possible, the line segments
should be ordered depending on the role of the SpeciesReferenceGlyph. If
no role attribute is defined, the role to be assumed is taken from the role that
the SpeciesReference referenced via the attribute speciesReference has,
otherwise it is undefined.curve - public void setRole(SpeciesReferenceRole role)
SpeciesReferenceRole and is used to specify
how the species reference should be displayed. This attribute is optional and should
only be necessary if the optional speciesReference attribute is not given or if the
respective information from the model needs to be overridden.
To define more specific interactions, the recommended practice is to use the sboTerm
attribute on the SpeciesReference. If both role and sboTerm are specified and
they conflict, it is the role that takes precedence.role - public void setSpeciesReferenceRole(SpeciesReferenceRole role)
role - setRole(SpeciesReferenceRole)public SpeciesReferenceRole getRole()
getSpeciesReferenceRole()public void setSpeciesGlyph(String speciesGlyph)
SpeciesGlyph
object that is to be connected to the ReactionGlyph. This attribute is
mandatory so as to ensure unambiguity about which SpeciesGlyph has to be
connected with this ReactionGlyph.speciesGlyph - public void setSpeciesReference(SimpleSpeciesReference speciesReference)
speciesReference - public void setSpeciesReference(String speciesReference)
SpeciesReferenceGlyph with a particular SpeciesReference
of the containing Model.speciesReference - public boolean unsetCurve()
public void unsetSpeciesReference()
public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalObjectCopyright © 2009–2016. All rights reserved.