public class Curve extends AbstractNamedSBase
Curve class describes how to connect elements in a diagram defined with
the use of the Layout package. A curve is fully specified by a mandatory
listOfCurveSegments element and is used in four places in the Layout
package: SpeciesReferenceGlyph, ReactionGlyph,
ReferenceGlyph, and GeneralGlyph.ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
Curve() |
Curve(Curve curve) |
Curve(int level,
int version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCurveSegment(CurveSegment curveSegment) |
void |
addCurveSegment(int index,
CurveSegment element) |
Curve |
clone() |
CubicBezier |
createCubicBezier()
Creates a new
CubicBezier instance, adds it to this Curve. |
CubicBezier |
createCubicBezier(Point start,
Point basePoint1,
Point basePoint2,
Point end) |
LineSegment |
createLineSegment()
Creates a new
LineSegment instance, adds it to this Curve and returns it. |
LineSegment |
createLineSegment(Point start,
Point end) |
boolean |
equals(Object object) |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
CurveSegment |
getCurveSegment(int n) |
int |
getCurveSegmentCount() |
ListOf<CurveSegment> |
getListOfCurveSegments() |
int |
hashCode() |
boolean |
isIdMandatory() |
boolean |
isSetListOfCurveSegments() |
boolean |
removeCurveSegment(CurveSegment cs) |
void |
setListOfCurveSegments(ListOf<CurveSegment> listOfCurveSegments)
The listOfCurveSegments element contains arbitrary number of cuve segments that
can be either of type
LineSegment or of type CubicBezier. |
boolean |
unsetListOfCurveSegments()
Removes the
listOfCurveSegments from this
Model and notifies
all registered instances of
TreeNodeChangeListener. |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, readAttribute, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm, writeXMLAttributesaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, 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, readAttribute, 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, unsetSBOTerm, writeXMLAttributesaddAllChangeListeners, 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 Curve()
public Curve(Curve curve)
curve - public Curve(int level,
int version)
level - version - public boolean addCurveSegment(CurveSegment curveSegment)
curveSegment - List#add(Object)public void addCurveSegment(int index,
CurveSegment element)
index - element - public Curve clone()
clone in interface SBaseclone in class AbstractSBasepublic LineSegment createLineSegment()
LineSegment instance, adds it to this Curve and returns it.LineSegment instancepublic LineSegment createLineSegment(Point start, Point end)
start - end - public CubicBezier createCubicBezier()
CubicBezier instance, adds it to this Curve.
and returns it.CubicBezier instancepublic CubicBezier createCubicBezier(Point start, Point basePoint1, Point basePoint2, Point end)
start - basePoint1 - basePoint2 - end - public boolean equals(Object object)
equals in interface SBaseequals in class AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic CurveSegment getCurveSegment(int n)
n - public int getCurveSegmentCount()
public ListOf<CurveSegment> getListOfCurveSegments()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isSetListOfCurveSegments()
public boolean removeCurveSegment(CurveSegment cs)
cs - public void setListOfCurveSegments(ListOf<CurveSegment> listOfCurveSegments)
LineSegment or of type CubicBezier. Here,
both classes are child classes of the abstract type CurveSegment.listOfCurveSegments - public boolean unsetListOfCurveSegments()
listOfCurveSegments from this
Model and notifies
all registered instances of
TreeNodeChangeListener.true if calling this method lead to a change in this
data structure.Copyright © 2009–2016. All rights reserved.