org.sbml.jsbml.ext.render
public class Group extends GraphicalPrimitive2D
GraphicalPrimitive2D.FillRule
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
endHead |
private FontFamily |
fontFamily |
private java.lang.Short |
fontSize |
private java.lang.Boolean |
fontStyleItalic |
private java.lang.Boolean |
fontWeightBold |
private java.lang.String |
id |
private static long |
serialVersionUID
Generated serial version identifier
|
private java.lang.String |
startHead |
private TextAnchor |
textAnchor |
private VTextAnchor |
vTextAnchor |
fill, fillRule
stroke, strokeDashArray, strokeWidth
transform
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
Group()
Creates an Group instance
|
Group(Group obj)
Clone constructor
|
Group(int level,
int version)
Creates a Group instance with a level and version.
|
Group(java.lang.String id)
Creates a Group instance with an id.
|
Group(java.lang.String id,
int level,
int version)
Creates a Group instance with an id, level, and version.
|
Group(java.lang.String id,
java.lang.String name,
int level,
int version)
Creates a Group instance with an id, name, level, and version.
|
Modifier and Type | Method and Description |
---|---|
Group |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
boolean |
getAllowsChildren() |
SBase |
getChildAt(int childIndex) |
int |
getChildCount() |
java.lang.String |
getEndHead() |
FontFamily |
getFontFamily() |
java.lang.Short |
getFontSize() |
java.lang.String |
getId() |
java.lang.String |
getStartHead() |
TextAnchor |
getTextAnchor() |
VTextAnchor |
getVTextAnchor() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isFontStyleItalic() |
boolean |
isFontWeightBold() |
boolean |
isSetEndHead() |
boolean |
isSetFontFamily() |
boolean |
isSetFontSize() |
boolean |
isSetFontStyleItalic() |
boolean |
isSetFontWeightBold() |
boolean |
isSetId() |
boolean |
isSetStartHead() |
boolean |
isSetTextAnchor() |
boolean |
isSetVTextAnchor() |
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 |
setEndHead(java.lang.String endHead)
Set the value of endHead
|
void |
setFontFamily(FontFamily fontFamily)
Set the value of fontFamily
|
void |
setFontSize(java.lang.Short fontSize)
Set the value of fontSize
|
void |
setFontStyleItalic(java.lang.Boolean fontStyleItalic)
Set the value of fontStyleItalic
|
void |
setFontWeightBold(java.lang.Boolean fontWeightBold)
Set the value of fontWeightBold
|
void |
setId(java.lang.String id)
Set the value of id
|
void |
setStartHead(java.lang.String startHead)
Set the value of startHead
|
void |
setTextAnchor(TextAnchor textAnchor)
Set the value of textAnchor
|
void |
setVTextAnchor(VTextAnchor vTextAnchor)
Set the value of vTextAnchor
|
boolean |
unsetEndHead()
Unsets the variable endHead
|
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 |
unsetId()
Unsets the variable id
|
boolean |
unsetStartHead()
Unsets the variable startHead
|
boolean |
unsetTextAnchor()
Unsets the variable textAnchor
|
boolean |
unsetVTextAnchor()
Unsets the variable vTextAnchor
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes() |
getFill, getFillRule, isSetFill, isSetFillRule, setFill, setFillRule, unsetFill, unsetFillRule
getStroke, getStrokeDashArray, getStrokeWidth, 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.String id
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.String startHead
private java.lang.String endHead
public Group()
public Group(java.lang.String id)
id
- public Group(int level, int version)
level
- version
- public Group(java.lang.String id, int level, int version)
id
- level
- version
- public Group(java.lang.String id, java.lang.String name, int level, int version)
id
- name
- level
- version
- public Group(Group obj)
public Group clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class GraphicalPrimitive2D
public void initDefaults()
Transformation
initDefaults
in class GraphicalPrimitive2D
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class GraphicalPrimitive1D
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class GraphicalPrimitive1D
public SBase getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class GraphicalPrimitive1D
public java.lang.String getId()
public boolean isSetId()
public void setId(java.lang.String id)
public boolean unsetId()
true
, if id was set before,
otherwise false
public FontFamily getFontFamily()
public boolean isSetFontFamily()
public void setFontFamily(FontFamily fontFamily)
public boolean unsetFontFamily()
true
, if fontFamily was set before,
otherwise false
public java.lang.Short getFontSize()
public boolean isSetFontSize()
public void setFontSize(java.lang.Short fontSize)
public boolean unsetFontSize()
true
, if fontSize was set before,
otherwise false
public boolean isFontWeightBold()
public boolean isSetFontWeightBold()
public void setFontWeightBold(java.lang.Boolean fontWeightBold)
public boolean unsetFontWeightBold()
true
, if fontWeightBold was set before,
otherwise false
public boolean isFontStyleItalic()
public boolean isSetFontStyleItalic()
public void setFontStyleItalic(java.lang.Boolean fontStyleItalic)
public boolean unsetFontStyleItalic()
true
, if fontStyleItalic was set before,
otherwise false
public java.lang.String getStartHead()
public boolean isSetStartHead()
public void setStartHead(java.lang.String startHead)
public boolean unsetStartHead()
true
, if startHead was set before,
otherwise false
public java.lang.String getEndHead()
public boolean isSetEndHead()
public void setEndHead(java.lang.String endHead)
public boolean unsetEndHead()
true
, if endHead was set before,
otherwise false
public TextAnchor getTextAnchor()
public boolean isSetTextAnchor()
public void setTextAnchor(TextAnchor textAnchor)
public boolean unsetTextAnchor()
true
, if textAnchor was set before,
otherwise false
public VTextAnchor getVTextAnchor()
public boolean isSetVTextAnchor()
public void setVTextAnchor(VTextAnchor vTextAnchor)
public boolean unsetVTextAnchor()
true
, if vTextAnchor was set before,
otherwise false
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
writeXMLAttributes
in interface SBase
writeXMLAttributes
in class GraphicalPrimitive2D
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 GraphicalPrimitive2D
attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.