public 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 and Description |
|---|
TextGlyph() |
TextGlyph(int level,
int version) |
TextGlyph(String id) |
TextGlyph(String id,
int level,
int version) |
TextGlyph(TextGlyph textGlyph) |
| Modifier and Type | Method and Description |
|---|---|
TextGlyph |
clone() |
boolean |
equals(Object object) |
String |
getGraphicalObject() |
GraphicalObject |
getGraphicalObjectInstance()
Direct access to the
GraphicalObject linked to this
TextGlyph. |
String |
getOriginOfText() |
NamedSBase |
getOriginOfTextInstance() |
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(String attributeName,
String prefix,
String value) |
void |
setGraphicalObject(GraphicalObject graphicalObject) |
void |
setGraphicalObject(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 |
setOriginOfText(NamedSBase originOfText) |
void |
setOriginOfText(String originOfText)
Additionally the optional attribute originOfText holds the id of an entity in the
Model. |
void |
setText(String text)
The String text attribute facilitates adding of independent text, like a title or a comment
to the diagram.
|
void |
unsetGraphicalObject() |
Map<String,String> |
writeXMLAttributes() |
getNamedSBaseInstance, getReference, getReferenceInstance, getSBaseInstance, isSetReference, setNamedSBase, setReference, setSBase, 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, 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 TextGlyph()
public TextGlyph(int level,
int version)
level - version - public TextGlyph(String id)
id - public TextGlyph(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(Object object)
equals in interface SBaseequals in class AbstractReferenceGlyphpublic String getGraphicalObject()
public GraphicalObject getGraphicalObjectInstance()
GraphicalObject linked to this
TextGlyph.public String getOriginOfText()
public NamedSBase getOriginOfTextInstance()
public 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(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class GraphicalObjectpublic void setGraphicalObject(GraphicalObject graphicalObject)
graphicalObject - public void unsetGraphicalObject()
public void setGraphicalObject(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(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(String text)
text - public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalObjectCopyright © 2009–2017. All rights reserved.