org.sbml.jsbml.ext.render
public class Text extends GraphicalPrimitive1D implements FontRenderStyle, Point3D
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Boolean |
absoluteX |
private java.lang.Boolean |
absoluteY |
private java.lang.Boolean |
absoluteZ |
private FontFamily |
fontFamily |
private java.lang.Short |
fontSize |
private java.lang.Boolean |
fontStyleItalic |
private java.lang.Boolean |
fontWeightBold |
private static long |
serialVersionUID
Generated serial version identifier
|
private TextAnchor |
textAnchor |
private VTextAnchor |
vTextAnchor |
private java.lang.Double |
x |
private java.lang.Double |
y |
private java.lang.Double |
z |
stroke, strokeDashArray, strokeWidthtransformignoredExtensions, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
Text() |
| Modifier and Type | Method and Description |
|---|---|
FontFamily |
getFontFamily() |
short |
getFontSize() |
TextAnchor |
getTextAnchor() |
VTextAnchor |
getVTextAnchor() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isAbsoluteX() |
boolean |
isAbsoluteY() |
boolean |
isAbsoluteZ() |
boolean |
isFontStyleItalic() |
boolean |
isFontWeightBold() |
boolean |
isSetAbsoluteX() |
boolean |
isSetAbsoluteY() |
boolean |
isSetAbsoluteZ() |
boolean |
isSetFontFamily() |
boolean |
isSetFontSize() |
boolean |
isSetFontStyleItalic() |
boolean |
isSetFontWeightBold() |
boolean |
isSetTextAnchor() |
boolean |
isSetVTextAnchor() |
boolean |
isSetX() |
boolean |
isSetY() |
boolean |
isSetZ() |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Sets the given attribute in this
SBase. |
void |
setAbsoluteX(java.lang.Boolean absoluteX)
Set the value of absoluteX
|
void |
setAbsoluteY(java.lang.Boolean absoluteY)
Set the value of absoluteY
|
void |
setAbsoluteZ(java.lang.Boolean absoluteZ)
Set the value of absoluteZ
|
void |
setFontFamily(FontFamily fontFamily)
Set the value of fontFamily
|
void |
setFontSize(short fontSize)
Set the value of fontSize
|
void |
setFontStyleItalic(boolean fontStyleItalic)
Set the value of fontStyleItalic
|
void |
setFontWeightBold(boolean fontWeightBold)
Set the value of fontWeightBold
|
void |
setTextAnchor(TextAnchor textAnchor)
Set the value of textAnchor
|
void |
setVTextAnchor(VTextAnchor vTextAnchor)
Set the value of VTextAnchor
|
void |
setX(java.lang.Double x)
Set the value of x
|
void |
setY(java.lang.Double y)
Set the value of y
|
void |
setZ(java.lang.Double z)
Set the value of z
|
boolean |
unsetAbsoluteX()
Unsets the variable absoluteX
|
boolean |
unsetAbsoluteY()
Unsets the variable absoluteY
|
boolean |
unsetAbsoluteZ()
Unsets the variable absoluteZ
|
boolean |
unsetFontFamily()
Unsets the variable fontFamily
|
boolean |
unsetFontSize()
Unsets the variable fontSize
|
boolean |
unsetFontStyleItalic()
Unsets the variable fontStyleItalic
|
boolean |
unsetFontWeightBold()
Unsets the variable fontWeightBold
|
boolean |
unsetTextAnchor()
Unsets the variable textAnchor
|
boolean |
unsetVTextAnchor()
Unsets the variable VTextAnchor
|
boolean |
unsetX()
Unsets the variable x
|
boolean |
unsetY()
Unsets the variable y
|
boolean |
unsetZ()
Unsets the variable z
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a map with all the attributes of this
SBase that
need to be written out in XML. |
clone, equals, getStroke, getStrokeDashArray, getStrokeWidth, hashCode, initDefaults, isSetStroke, isSetStrokeDashArray, isSetStrokeWidth, setStroke, setStrokeDashArray, setStrokeWidth, unsetStroke, unsetStrokeDashArray, unsetStrokeWidthgetTransform, isSetTransform, setTransform, unsetTransformtoStringaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitremoveTreeNodeChangeListeneraddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprivate static final long serialVersionUID
private java.lang.Boolean absoluteX
private java.lang.Boolean absoluteY
private java.lang.Boolean absoluteZ
private FontFamily fontFamily
private java.lang.Short fontSize
private java.lang.Boolean fontWeightBold
private java.lang.Boolean fontStyleItalic
private TextAnchor textAnchor
private VTextAnchor vTextAnchor
private java.lang.Double x
private java.lang.Double y
private java.lang.Double z
public FontFamily getFontFamily()
getFontFamily in interface FontRenderStylepublic short getFontSize()
getFontSize in interface FontRenderStylepublic TextAnchor getTextAnchor()
getTextAnchor in interface FontRenderStylepublic VTextAnchor getVTextAnchor()
getVTextAnchor in interface FontRenderStylepublic boolean isAbsoluteX()
isAbsoluteX in interface Point3Dpublic boolean isAbsoluteY()
isAbsoluteY in interface Point3Dpublic boolean isAbsoluteZ()
isAbsoluteZ in interface Point3Dpublic boolean isFontStyleItalic()
isFontStyleItalic in interface FontRenderStylepublic boolean isFontWeightBold()
isFontWeightBold in interface FontRenderStylepublic boolean isSetAbsoluteX()
isSetAbsoluteX in interface Point3Dpublic boolean isSetAbsoluteY()
isSetAbsoluteY in interface Point3Dpublic boolean isSetAbsoluteZ()
isSetAbsoluteZ in interface Point3Dpublic boolean isSetFontFamily()
isSetFontFamily in interface FontRenderStylepublic boolean isSetFontSize()
isSetFontSize in interface FontRenderStylepublic boolean isSetFontStyleItalic()
isSetFontStyleItalic in interface FontRenderStylepublic boolean isSetFontWeightBold()
isSetFontWeightBold in interface FontRenderStylepublic boolean isSetTextAnchor()
isSetTextAnchor in interface FontRenderStylepublic boolean isSetVTextAnchor()
isSetVTextAnchor in interface FontRenderStylepublic void setAbsoluteX(java.lang.Boolean absoluteX)
Point3DsetAbsoluteX in interface Point3Dpublic void setAbsoluteY(java.lang.Boolean absoluteY)
Point3DsetAbsoluteY in interface Point3Dpublic void setAbsoluteZ(java.lang.Boolean absoluteZ)
Point3DsetAbsoluteZ in interface Point3Dpublic void setFontFamily(FontFamily fontFamily)
FontRenderStylesetFontFamily in interface FontRenderStylepublic void setFontSize(short fontSize)
FontRenderStylesetFontSize in interface FontRenderStylepublic void setFontStyleItalic(boolean fontStyleItalic)
FontRenderStylesetFontStyleItalic in interface FontRenderStylepublic void setFontWeightBold(boolean fontWeightBold)
FontRenderStylesetFontWeightBold in interface FontRenderStylepublic void setTextAnchor(TextAnchor textAnchor)
FontRenderStylesetTextAnchor in interface FontRenderStylepublic void setVTextAnchor(VTextAnchor vTextAnchor)
FontRenderStylesetVTextAnchor in interface FontRenderStylepublic void setX(java.lang.Double x)
Point3Dpublic void setY(java.lang.Double y)
Point3Dpublic void setZ(java.lang.Double z)
Point3Dpublic boolean unsetAbsoluteX()
Point3DunsetAbsoluteX in interface Point3Dtrue, if absoluteX was set before,
otherwise falsepublic boolean unsetAbsoluteY()
Point3DunsetAbsoluteY in interface Point3Dtrue, if absoluteY was set before,
otherwise falsepublic boolean unsetAbsoluteZ()
Point3DunsetAbsoluteZ in interface Point3Dtrue, if absoluteZ was set before,
otherwise falsepublic boolean unsetFontFamily()
FontRenderStyleunsetFontFamily in interface FontRenderStyletrue, if fontFamily was set before,
otherwise falsepublic boolean unsetFontSize()
FontRenderStyleunsetFontSize in interface FontRenderStyletrue, if fontSize was set before,
otherwise falsepublic boolean unsetFontStyleItalic()
FontRenderStyleunsetFontStyleItalic in interface FontRenderStyletrue, if fontStyleItalic was set before,
otherwise falsepublic boolean unsetFontWeightBold()
FontRenderStyleunsetFontWeightBold in interface FontRenderStyletrue, if fontWeightBold was set before,
otherwise falsepublic boolean unsetTextAnchor()
FontRenderStyleunsetTextAnchor in interface FontRenderStyletrue, if textAnchor was set before,
otherwise falsepublic boolean unsetVTextAnchor()
FontRenderStyleunsetVTextAnchor in interface FontRenderStyletrue, if VTextAnchor was set before,
otherwise falsepublic boolean unsetX()
Point3Dpublic boolean unsetY()
Point3Dpublic boolean unsetZ()
Point3Dpublic java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBaseSBase that
need to be written out in XML.
The attribute name is used as a key and the attribute value as value. If a prefix is needed for the attribute name, it need to be set directly in this map.
writeXMLAttributes in interface SBasewriteXMLAttributes in class GraphicalPrimitive1DMap containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
SBaseSBase.
If the given attribute name is not recognized, nothing is done and
false is returned.
readAttribute in interface SBasereadAttribute in class GraphicalPrimitive1DattributeName - localName of the XML attributeprefix - prefix of the XML attributevalue - value of the XML attributetrue if the attribute has been successfully read.