java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, IBoundingBox, NamedSBase, SBase, UniqueNamedSBase, UniqueSId, TreeNodeWithChangeSupportpublic class TextGlyph extends AbstractReferenceGlyph
TextGlyph class describes the position and dimension of text labels. It inherits
from GraphicalObject and adds the attributes graphicalObject, text and originOfText.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor | Description |
|---|---|
TextGlyph() |
|
TextGlyph(int level,
int version) |
|
TextGlyph(java.lang.String id) |
|
TextGlyph(java.lang.String id,
int level,
int version) |
|
TextGlyph(TextGlyph textGlyph) |
| Modifier and Type | Method | Description |
|---|---|---|
TextGlyph |
clone() |
|
boolean |
equals(java.lang.Object object) |
|
java.lang.String |
getGraphicalObject() |
|
GraphicalObject |
getGraphicalObjectInstance() |
Direct access to the
GraphicalObject linked to this
TextGlyph. |
java.lang.String |
getOriginOfText() |
|
NamedSBase |
getOriginOfTextInstance() |
|
java.lang.String |
getText() |
|
int |
hashCode() |
|
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isSetGraphicalObject() |
|
boolean |
isSetGraphicalObjectInstance() |
Method to test if an instance of a
GraphicalObject with the id
given by getGraphicalObject() can be found in the Model. |
boolean |
isSetOriginOfText() |
|
boolean |
isSetText() |
|
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value) |
|
void |
setGraphicalObject(java.lang.String graphicalObject) |
The graphicalObject attribute contains the id of any
GraphicalObject and specifies that
the TextGlyph should be considered to be a label to that object. |
void |
setGraphicalObject(GraphicalObject graphicalObject) |
|
void |
setOriginOfText(java.lang.String originOfText) |
Additionally the optional attribute originOfText holds the id of an entity in the
Model. |
void |
setOriginOfText(NamedSBase originOfText) |
|
void |
setText(java.lang.String text) |
The String text attribute facilitates adding of independent text, like a title or a comment
to the diagram.
|
void |
unsetGraphicalObject() |
|
void |
unsetOriginOfText() |
Unsets the origin of text
|
void |
unsetText() |
Unsets the
text attribute |
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
isValidIdgetNamedSBaseInstance, getReference, getReferenceInstance, getSBaseInstance, 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, isSetId, isSetName, setId, setName, unsetId, unsetNamefinalize, getClass, notify, notifyAll, wait, wait, waitaddCVTerm, 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, hasExtension, 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, 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 TextGlyph()
public TextGlyph(int level,
int version)
level - version - public TextGlyph(java.lang.String id)
id - public TextGlyph(java.lang.String id,
int level,
int version)
id - level - version - public TextGlyph(TextGlyph textGlyph)
textGlyph - public TextGlyph clone()
clone in interface SBaseclone in class AbstractReferenceGlyphpublic void initDefaults()
initDefaults in class GraphicalObjectpublic boolean equals(java.lang.Object object)
equals in interface SBaseequals in class AbstractReferenceGlyphpublic java.lang.String getGraphicalObject()
public GraphicalObject getGraphicalObjectInstance()
GraphicalObject linked to this
TextGlyph.public java.lang.String getOriginOfText()
public NamedSBase getOriginOfTextInstance()
public java.lang.String getText()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractReferenceGlyphpublic boolean isSetGraphicalObject()
public boolean isSetGraphicalObjectInstance()
GraphicalObject with the id
given by getGraphicalObject() can be found in the Model.public boolean isSetOriginOfText()
public boolean isSetText()
public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
readAttribute in interface SBasereadAttribute in class GraphicalObjectpublic void setGraphicalObject(GraphicalObject graphicalObject)
graphicalObject - public void unsetGraphicalObject()
public void setGraphicalObject(java.lang.String graphicalObject)
GraphicalObject and specifies that
the TextGlyph should be considered to be a label to that object. This allows modelers to
indicate that the label is to be moved together with the object. If the graphicalObject attribute
is used together with the metaidRef they need to refer to the same object in the Layout.graphicalObject - public void setOriginOfText(NamedSBase originOfText)
originOfText - public void setOriginOfText(java.lang.String originOfText)
Model.
If it is specified, the text to be displayed is taken from the name attribute of the referenced
object. If both attributes originOfText and text are specified, the text attribute value
overrides the value of originOfText.originOfText - public void setText(java.lang.String text)
text - public void unsetOriginOfText()
public void unsetText()
text attributepublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalObjectCopyright © 2009–2022. All rights reserved.