ICurvepublic class Polygon extends GraphicalPrimitive2D implements ICurve
GraphicalPrimitive2D.FillRuleignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamestroke, strokeDashArray, strokeWidthfill, fillRuletransform| Constructor | Description |
|---|---|
Polygon() |
Creates an Polygon instance
|
Polygon(Polygon obj) |
Clone constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addCurveSegment(int index,
CurveSegment element) |
|
boolean |
addCurveSegment(CurveSegment curveSegment) |
Adds a new
CurveSegment to the listOfCurveSegments. |
boolean |
addElement(RenderPoint element) |
|
Polygon |
clone() |
|
CubicBezier |
createCubicBezier() |
Creates a new
CubicBezier instance and adds it to the
listOfCurveSegments list. |
LineSegment |
createLineSegment() |
Creates a new
LineSegment instance and adds it to the
listOfCurveSegments list. |
RenderCubicBezier |
createRenderCubicBezier() |
Creates a new
RenderCubicBezier instance and adds it to the
ListOfElements list |
RenderPoint |
createRenderPoint() |
Creates a new
RenderPoint instance and adds it to the
ListOfElements list |
boolean |
equals(java.lang.Object obj) |
|
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex) |
The listOfElements and listOfCurveSegments will take the indices 0 and 1,
or 0 (if only one is set).
|
int |
getChildCount() |
|
CurveSegment |
getCurveSegment(int i) |
Gets an element from the
listOfCurveSegments at the given index. |
int |
getCurveSegmentCount() |
Returns the number of
CurveSegments in this
RenderCurve. |
org.sbml.jsbml.ListOf<CurveSegment> |
getListOfCurveSegments() |
Returns the
listOfCurveSegments. |
org.sbml.jsbml.ListOf<RenderPoint> |
getListOfElements() |
|
int |
getNumCurveSegments() |
Returns the number of
CurveSegments in this
RenderCurve. |
int |
hashCode() |
|
void |
initDefaults() |
Initializes the default values using the namespace.
|
boolean |
isListOfCurveSegmentsEmpty() |
|
boolean |
isListOfElementsEmpty() |
|
boolean |
isSetListOfCurveSegments() |
Returns
true if listOfCurveSegments contains at least
one element. |
boolean |
isSetListOfElements() |
|
CurveSegment |
removeCurveSegment(int i) |
Removes an element from the
listOfCurveSegments at the given
index. |
boolean |
removeCurveSegment(CurveSegment curveSegment) |
Removes an element from the
listOfCurveSegments. |
void |
removeElement(int i) |
|
boolean |
removeElement(RenderPoint element) |
|
void |
setListOfCurveSegments(org.sbml.jsbml.ListOf<CurveSegment> listOfCurveSegments) |
Sets the given
ListOf<CurveSegment>. |
void |
setListOfElements(org.sbml.jsbml.ListOf<RenderPoint> listOfElements) |
Set the value of listOfElements
|
boolean |
unsetListOfCurveSegments() |
|
boolean |
unsetListOfElements() |
Unsets the variable listOfElements
|
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, 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, userObjectKeySetaddStrokeDash, getStroke, getStrokeDash, getStrokeDashArray, getStrokeWidth, isSetStroke, isSetStrokeDashArray, isSetStrokeWidth, setStroke, setStrokeDashArray, setStrokeDashArray, setStrokeWidth, unsetStroke, unsetStrokeDashArray, unsetStrokeWidthgetFill, getFillRule, isSetFill, isSetFillRule, readAttribute, setFill, setFillRule, unsetFill, unsetFillRule, writeXMLAttributesfinalize, getClass, notify, notifyAll, wait, wait, waitisSetTransform, setTransformgetTransform, unsetTransformaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic boolean addElement(RenderPoint element)
element - public Polygon clone()
clone in class GraphicalPrimitive2Dpublic boolean getAllowsChildren()
getAllowsChildren in class org.sbml.jsbml.AbstractSBasepublic javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in class org.sbml.jsbml.AbstractSBasepublic int getChildCount()
getChildCount in class org.sbml.jsbml.AbstractSBasepublic org.sbml.jsbml.ListOf<RenderPoint> getListOfElements()
public void initDefaults()
TransformationinitDefaults in class GraphicalPrimitive2Dpublic boolean isSetListOfElements()
public boolean isListOfElementsEmpty()
true iff listOfElements is not null, but empty
(relevant for validation)public void setListOfElements(org.sbml.jsbml.ListOf<RenderPoint> listOfElements)
listOfElements - public boolean unsetListOfElements()
true, if listOfElements was set before,
otherwise falsepublic boolean removeElement(RenderPoint element)
element - public void removeElement(int i)
i - public RenderCubicBezier createRenderCubicBezier()
RenderCubicBezier instance and adds it to the
ListOfElements listRenderCubicBezier instancepublic RenderPoint createRenderPoint()
RenderPoint instance and adds it to the
ListOfElements listRenderPoint instancepublic boolean isSetListOfCurveSegments()
true if listOfCurveSegments contains at least
one element.isSetListOfCurveSegments in interface ICurvetrue if listOfCurveSegments contains at least
one element, otherwise false.public boolean isListOfCurveSegmentsEmpty()
true iff listOfCurveSegments is not null, but empty
(relevant for validation)public org.sbml.jsbml.ListOf<CurveSegment> getListOfCurveSegments()
listOfCurveSegments.
Creates it if it does not already exist.getListOfCurveSegments in interface ICurvelistOfCurveSegments.public void setListOfCurveSegments(org.sbml.jsbml.ListOf<CurveSegment> listOfCurveSegments)
ListOf<CurveSegment>.
If listOfCurveSegments was defined before and contains some
elements, they are all unset.setListOfCurveSegments in interface ICurvelistOfCurveSegments - the list of CurveSegmentspublic boolean unsetListOfCurveSegments()
unsetListOfCurveSegments in interface ICurvetrue if listOfCurveSegments contains at least
one element, otherwise false.public boolean addCurveSegment(CurveSegment curveSegment)
CurveSegment to the listOfCurveSegments.
The listOfCurveSegments is initialized if necessary.
addCurveSegment in interface ICurvecurveSegment - the element to add to the listtrue (as specified by Collection.add(E))Collection.add(Object)public void addCurveSegment(int index,
CurveSegment element)
addCurveSegment in interface ICurvepublic boolean removeCurveSegment(CurveSegment curveSegment)
listOfCurveSegments.removeCurveSegment in interface ICurvecurveSegment - the element to be removed from the list.true if the list contained the specified element and it was
removed.List.remove(Object)public CurveSegment removeCurveSegment(int i)
listOfCurveSegments at the given
index.i - the index where to remove the CurveSegment.java.lang.IndexOutOfBoundsException - if the listOf is not set or if the index is
out of bound ((i < 0) || (i > listOfCurveSegments)).public LineSegment createLineSegment()
LineSegment instance and adds it to the
listOfCurveSegments list.listOfCurveSegmentspublic CubicBezier createCubicBezier()
CubicBezier instance and adds it to the
listOfCurveSegments list.createCubicBezier in interface ICurvelistOfCurveSegmentspublic CurveSegment getCurveSegment(int i)
listOfCurveSegments at the given index.getCurveSegment in interface ICurvei - the index of the CurveSegment element to get.java.lang.IndexOutOfBoundsException - if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public int getCurveSegmentCount()
CurveSegments in this
RenderCurve.getCurveSegmentCount in interface ICurveCurveSegments in this
RenderCurve.public int getNumCurveSegments()
CurveSegments in this
RenderCurve.CurveSegments in this
RenderCurve.getCurveSegmentCount()public int hashCode()
hashCode in class GraphicalPrimitive2Dpublic boolean equals(java.lang.Object obj)
equals in class GraphicalPrimitive2DCopyright © 2009–2022. All rights reserved.