public class RenderGroup extends GraphicalPrimitive2D implements org.sbml.jsbml.UniqueNamedSBase
RenderGroup class from the SBML render extension is used to group graphical primitives together
to create composite representations from simple primitives.
The RenderGroup class is derived from GraphicalPrimitive2D and inherits all its methods and attributes.
In addition to those, the class defines attributes to specify text render properties (@see Text),
curve decorations (@see RenderCurve), an id and a list of child elements which can be any
graphical primitive or other groups.
The attributes of a group are inherited by all children of the group unless they specify the attribute themselves.
GraphicalPrimitive2D.FillRulefill, fillRulestroke, strokeDashArray, strokeWidthtransform| Constructor and Description |
|---|
RenderGroup()
Creates an Group instance
|
RenderGroup(int level,
int version)
Creates a Group instance with a level and version.
|
RenderGroup(RenderGroup obj)
Clone constructor
|
RenderGroup(String id)
Creates a Group instance with an id.
|
RenderGroup(String id,
int level,
int version)
Creates a Group instance with an id, level, and version.
|
RenderGroup(String id,
String name,
int level,
int version)
Creates a Group instance with an id, name, level, and version.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildElement(Transformation2D pChild)
Adds the given element to the end of the list of children elements.
|
boolean |
addElement(Transformation2D field)
Adds a new
Transformation2D to the listOfElements. |
RenderGroup |
clone() |
RenderCurve |
createCurve()
Creates a new
RenderCurve element, adds it to the ListOfElements list and returns it. |
Ellipse |
createEllipse()
Creates a new
Ellipse element, adds it to the ListOfElements list and returns it. |
Image |
createImage()
Creates a new
Image element, adds it to the ListOfElements list and returns it. |
Polygon |
createPolygon()
Creates a new
Polygon element, adds it to the ListOfElements list and returns it. |
Rectangle |
createRectangle()
Creates a new
Rectangle element, adds it to the ListOfElements list and returns it. |
RenderGroup |
createRenderGroup()
Creates a new
RenderGroup element, adds it to the ListOfElements list and returns it. |
Text |
createText()
Creates a new
Text element, adds it to the ListOfElements list and returns it. |
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
Transformation2D |
getElement(int i)
Gets an element from the listOfElements at the given index.
|
Transformation2D |
getElement(String fieldId)
Gets an element from the listOfElements, with the given id.
|
int |
getElementCount()
Returns the number of
Transformation2Ds in this RenderGroup. |
String |
getElementName() |
String |
getEndHead() |
FontFamily |
getFontFamily() |
Short |
getFontSize() |
boolean |
getFontStyleItalic()
Returns the value of fontStyleItalic
|
boolean |
getFontWeightBold()
Returns the value of fontWeightBold
|
String |
getId() |
org.sbml.jsbml.ListOf<Transformation2D> |
getListOfElements()
Returns the listOfElements.
|
String |
getName() |
int |
getNumElements()
Returns the number of
Transformation2Ds in this RenderGroup. |
String |
getStartHead() |
TextAnchor |
getTextAnchor() |
VTextAnchor |
getVTextAnchor() |
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isFontStyleItalic()
Returns the value of fontStyleItalic
|
boolean |
isFontWeightBold()
Returns the value of fontWeightBold
|
boolean |
isIdMandatory() |
boolean |
isSetEndHead() |
boolean |
isSetFontFamily() |
boolean |
isSetFontSize() |
boolean |
isSetFontStyleItalic()
Returns whether fontStyleItalic is set
|
boolean |
isSetFontWeightBold() |
boolean |
isSetId() |
boolean |
isSetListOfElements()
Returns
true, if listOfElements contains at least one element. |
boolean |
isSetName() |
boolean |
isSetStartHead() |
boolean |
isSetTextAnchor() |
boolean |
isSetVTextAnchor() |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
Transformation2D |
removeElement(int i)
Removes an element from the listOfElements at the given index.
|
Transformation2D |
removeElement(String fieldId)
Removes an element from the listOfElements.
|
boolean |
removeElement(Transformation2D field)
Removes an element from the listOfElements.
|
void |
setEndHead(String endHead)
Set the value of endHead
|
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 |
setId(String id) |
void |
setListOfElements(org.sbml.jsbml.ListOf<Transformation2D> listOfElements)
Sets the given
ListOf<Transformation2D>. |
void |
setName(String name) |
void |
setStartHead(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
|
String |
toString() |
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
|
void |
unsetId()
Unsets the variable id
|
boolean |
unsetListOfElements()
Returns
true, if listOfElements contain at least one element,
otherwise false. |
void |
unsetName() |
boolean |
unsetStartHead()
Unsets the variable startHead
|
boolean |
unsetTextAnchor()
Unsets the variable textAnchor
|
boolean |
unsetVTextAnchor()
Unsets the variable vTextAnchor
|
Map<String,String> |
writeXMLAttributes() |
getFill, getFillRule, isSetFill, isSetFillRule, setFill, setFillRule, unsetFill, unsetFillRulegetStroke, getStrokeDashArray, getStrokeWidth, isSetStroke, isSetStrokeDashArray, isSetStrokeWidth, setStroke, setStrokeDashArray, setStrokeWidth, unsetStroke, unsetStrokeDashArray, unsetStrokeWidthgetTransform, isSetTransform, setTransform, unsetTransformaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, 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, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setPackageVersion, 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, waitaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, 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 RenderGroup()
public RenderGroup(String id)
id - public RenderGroup(int level,
int version)
level - version - public RenderGroup(String id, int level, int version)
id - level - version - public RenderGroup(String id, String name, int level, int version)
id - name - level - version - public RenderGroup(RenderGroup obj)
obj - public RenderGroup clone()
clone in interface org.sbml.jsbml.SBaseclone in class GraphicalPrimitive2Dpublic void initDefaults()
TransformationinitDefaults in class GraphicalPrimitive2Dpublic int hashCode()
hashCode in interface org.sbml.jsbml.SBasehashCode in class GraphicalPrimitive2Dpublic boolean equals(Object obj)
equals in interface org.sbml.jsbml.SBaseequals in class GraphicalPrimitive2Dpublic String toString()
toString in class Transformationpublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class org.sbml.jsbml.AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class org.sbml.jsbml.AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class org.sbml.jsbml.AbstractSBasepublic String getElementName()
getElementName in interface org.sbml.jsbml.SBasegetElementName in class org.sbml.jsbml.AbstractSBasepublic String getId()
getId in interface org.sbml.jsbml.NamedSBasepublic boolean isSetId()
isSetId in interface org.sbml.jsbml.NamedSBasepublic void setId(String id)
setId in interface org.sbml.jsbml.NamedSBasepublic void unsetId()
unsetId in interface org.sbml.jsbml.NamedSBasepublic FontFamily getFontFamily()
public boolean isSetFontFamily()
public void setFontFamily(FontFamily fontFamily)
fontFamily - public boolean unsetFontFamily()
true, if fontFamily was set before,
otherwise falsepublic Short getFontSize()
public boolean isSetFontSize()
public void setFontSize(Short fontSize)
fontSize - public boolean unsetFontSize()
true, if fontSize was set before,
otherwise falsepublic boolean getFontWeightBold()
public boolean isFontWeightBold()
public boolean isSetFontWeightBold()
public void setFontWeightBold(Boolean fontWeightBold)
fontWeightBold - public boolean unsetFontWeightBold()
true, if fontWeightBold was set before,
otherwise falsepublic boolean getFontStyleItalic()
public boolean isFontStyleItalic()
public boolean isSetFontStyleItalic()
public void setFontStyleItalic(Boolean fontStyleItalic)
fontStyleItalic - public boolean unsetFontStyleItalic()
true, if fontStyleItalic was set before,
otherwise falsepublic String getStartHead()
public boolean isSetStartHead()
public void setStartHead(String startHead)
startHead - public boolean unsetStartHead()
true, if startHead was set before,
otherwise falsepublic String getEndHead()
public boolean isSetEndHead()
public void setEndHead(String endHead)
endHead - public boolean unsetEndHead()
true, if endHead was set before,
otherwise falsepublic TextAnchor getTextAnchor()
public boolean isSetTextAnchor()
public void setTextAnchor(TextAnchor textAnchor)
textAnchor - public boolean unsetTextAnchor()
true, if textAnchor was set before,
otherwise falsepublic VTextAnchor getVTextAnchor()
public boolean isSetVTextAnchor()
public void setVTextAnchor(VTextAnchor vTextAnchor)
vTextAnchor - public boolean unsetVTextAnchor()
true, if vTextAnchor was set before,
otherwise falsepublic boolean isSetListOfElements()
true, if listOfElements contains at least one element.true, if listOfElements contains at least one element,
otherwise false.public org.sbml.jsbml.ListOf<Transformation2D> getListOfElements()
public void setListOfElements(org.sbml.jsbml.ListOf<Transformation2D> listOfElements)
ListOf<Transformation2D>. If listOfElements
was defined before and contains some elements, they are all unset.listOfElements - public boolean unsetListOfElements()
true, if listOfElements contain at least one element,
otherwise false.true, if listOfElements contain at least one element,
otherwise false.public boolean addElement(Transformation2D field)
Transformation2D to the listOfElements.
The listOfElements is initialized if necessary.
field - the element to add to the listCollection.add(E))public boolean removeElement(Transformation2D field)
field - the element to be removed from the list.List.remove(Object)public Transformation2D removeElement(String fieldId)
fieldId - the id of the element to be removed from the list.null.public Transformation2D removeElement(int i)
i - the index where to remove the Transformation2D.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public RenderCurve createCurve()
RenderCurve element, adds it to the ListOfElements list and returns it.public Ellipse createEllipse()
Ellipse element, adds it to the ListOfElements list and returns it.public Image createImage()
Image element, adds it to the ListOfElements list and returns it.public Polygon createPolygon()
Polygon element, adds it to the ListOfElements list and returns it.public Rectangle createRectangle()
Rectangle element, adds it to the ListOfElements list and returns it.public RenderGroup createRenderGroup()
RenderGroup element, adds it to the ListOfElements list and returns it.public Text createText()
Text element, adds it to the ListOfElements list and returns it.public Transformation2D getElement(int i)
i - the index of the Transformation2D element to get.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public Transformation2D getElement(String fieldId)
fieldId - the id of the Transformation2D element to get.null.public int getElementCount()
Transformation2Ds in this RenderGroup.Transformation2Ds in this RenderGroup.public int getNumElements()
Transformation2Ds in this RenderGroup.Transformation2Ds in this RenderGroup.getElementCount()public void addChildElement(Transformation2D pChild)
pChild - createEllipse(),
createRectangle(),
createPolygon(),
createText(),
createCurve(),
createRenderGroup(),
createImage()public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface org.sbml.jsbml.SBasewriteXMLAttributes in class GraphicalPrimitive2Dpublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface org.sbml.jsbml.SBasereadAttribute in class GraphicalPrimitive2Dpublic String getName()
getName in interface org.sbml.jsbml.NamedSBasepublic boolean isIdMandatory()
isIdMandatory in interface org.sbml.jsbml.NamedSBasepublic boolean isSetName()
isSetName in interface org.sbml.jsbml.NamedSBasepublic void setName(String name)
setName in interface org.sbml.jsbml.NamedSBasepublic void unsetName()
unsetName in interface org.sbml.jsbml.NamedSBaseCopyright © 2009–2016. All rights reserved.