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, strokeWidth
transform
ignoredExtensions, ignoredXMLElements
listOfListeners, 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)
If the attribute is an id or name attribute, it will set the id or name
of this object with the value of the XML attribute ('value').
|
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() |
clone, getAllowsChildren, getChildAt, getChildCount, getStroke, getStrokeDashArray, getStrokeWidth, initDefaults, isSetStroke, isSetStrokeDashArray, isSetStrokeWidth, setStroke, setStrokeDashArray, setStrokeWidth, unsetStroke, unsetStrokeDashArray, unsetStrokeWidth
getTransform, isSetTransform, setTransform, unsetTransform
toString
addCVTerm, addDeclaredNamespace, addExtension, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, equals, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hashCode, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregister, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
removeTreeNodeChangeListener
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private 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 FontRenderStyle
public short getFontSize()
getFontSize
in interface FontRenderStyle
public TextAnchor getTextAnchor()
getTextAnchor
in interface FontRenderStyle
public VTextAnchor getVTextAnchor()
getVTextAnchor
in interface FontRenderStyle
public boolean isAbsoluteX()
isAbsoluteX
in interface Point3D
public boolean isAbsoluteY()
isAbsoluteY
in interface Point3D
public boolean isAbsoluteZ()
isAbsoluteZ
in interface Point3D
public boolean isFontStyleItalic()
isFontStyleItalic
in interface FontRenderStyle
public boolean isFontWeightBold()
isFontWeightBold
in interface FontRenderStyle
public boolean isSetAbsoluteX()
isSetAbsoluteX
in interface Point3D
public boolean isSetAbsoluteY()
isSetAbsoluteY
in interface Point3D
public boolean isSetAbsoluteZ()
isSetAbsoluteZ
in interface Point3D
public boolean isSetFontFamily()
isSetFontFamily
in interface FontRenderStyle
public boolean isSetFontSize()
isSetFontSize
in interface FontRenderStyle
public boolean isSetFontStyleItalic()
isSetFontStyleItalic
in interface FontRenderStyle
public boolean isSetFontWeightBold()
isSetFontWeightBold
in interface FontRenderStyle
public boolean isSetTextAnchor()
isSetTextAnchor
in interface FontRenderStyle
public boolean isSetVTextAnchor()
isSetVTextAnchor
in interface FontRenderStyle
public void setAbsoluteX(java.lang.Boolean absoluteX)
Point3D
setAbsoluteX
in interface Point3D
public void setAbsoluteY(java.lang.Boolean absoluteY)
Point3D
setAbsoluteY
in interface Point3D
public void setAbsoluteZ(java.lang.Boolean absoluteZ)
Point3D
setAbsoluteZ
in interface Point3D
public void setFontFamily(FontFamily fontFamily)
FontRenderStyle
setFontFamily
in interface FontRenderStyle
public void setFontSize(short fontSize)
FontRenderStyle
setFontSize
in interface FontRenderStyle
public void setFontStyleItalic(boolean fontStyleItalic)
FontRenderStyle
setFontStyleItalic
in interface FontRenderStyle
public void setFontWeightBold(boolean fontWeightBold)
FontRenderStyle
setFontWeightBold
in interface FontRenderStyle
public void setTextAnchor(TextAnchor textAnchor)
FontRenderStyle
setTextAnchor
in interface FontRenderStyle
public void setVTextAnchor(VTextAnchor vTextAnchor)
FontRenderStyle
setVTextAnchor
in interface FontRenderStyle
public void setX(java.lang.Double x)
Point3D
public void setY(java.lang.Double y)
Point3D
public void setZ(java.lang.Double z)
Point3D
public boolean unsetAbsoluteX()
Point3D
unsetAbsoluteX
in interface Point3D
true
, if absoluteX was set before,
otherwise false
public boolean unsetAbsoluteY()
Point3D
unsetAbsoluteY
in interface Point3D
true
, if absoluteY was set before,
otherwise false
public boolean unsetAbsoluteZ()
Point3D
unsetAbsoluteZ
in interface Point3D
true
, if absoluteZ was set before,
otherwise false
public boolean unsetFontFamily()
FontRenderStyle
unsetFontFamily
in interface FontRenderStyle
true
, if fontFamily was set before,
otherwise false
public boolean unsetFontSize()
FontRenderStyle
unsetFontSize
in interface FontRenderStyle
true
, if fontSize was set before,
otherwise false
public boolean unsetFontStyleItalic()
FontRenderStyle
unsetFontStyleItalic
in interface FontRenderStyle
true
, if fontStyleItalic was set before,
otherwise false
public boolean unsetFontWeightBold()
FontRenderStyle
unsetFontWeightBold
in interface FontRenderStyle
true
, if fontWeightBold was set before,
otherwise false
public boolean unsetTextAnchor()
FontRenderStyle
unsetTextAnchor
in interface FontRenderStyle
true
, if textAnchor was set before,
otherwise false
public boolean unsetVTextAnchor()
FontRenderStyle
unsetVTextAnchor
in interface FontRenderStyle
true
, if VTextAnchor was set before,
otherwise false
public boolean unsetX()
Point3D
public boolean unsetY()
Point3D
public boolean unsetZ()
Point3D
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class GraphicalPrimitive1D
Map
containing the XML attributes of this object.public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBase
readAttribute
in interface SBase
readAttribute
in class GraphicalPrimitive1D
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.