public class Curve extends AbstractSBase implements ICurve
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 ICurve. |
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) |
CurveSegment |
removeCurveSegment(int i) |
void |
setListOfCurveSegments(ListOf<CurveSegment> listOfCurveSegments)
The listOfCurveSegments element contains arbitrary number of curve 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. |
addCVTerm, 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, toString, 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, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitremoveTreeNodeChangeListeneraddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, 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)
addCurveSegment in interface ICurveList.add(Object)public void addCurveSegment(int index,
CurveSegment element)
addCurveSegment in interface ICurvepublic 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()
ICurveCubicBezier instance, adds it to this ICurve.
and returns it.createCubicBezier in interface ICurvepublic 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)
getCurveSegment in interface ICurvepublic int getCurveSegmentCount()
getCurveSegmentCount in interface ICurvepublic ListOf<CurveSegment> getListOfCurveSegments()
getListOfCurveSegments in interface ICurvepublic int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isSetListOfCurveSegments()
isSetListOfCurveSegments in interface ICurvepublic boolean removeCurveSegment(CurveSegment cs)
removeCurveSegment in interface ICurvepublic CurveSegment removeCurveSegment(int i)
i - public void setListOfCurveSegments(ListOf<CurveSegment> listOfCurveSegments)
ICurveLineSegment or of type CubicBezier. Here,
both classes are child classes of the abstract type CurveSegment.setListOfCurveSegments in interface ICurvepublic boolean unsetListOfCurveSegments()
ICurve#listOfCurveSegments from this
Model and notifies
all registered instances of
TreeNodeChangeListener.unsetListOfCurveSegments in interface ICurvetrue if calling this method lead to a change in this
data structure.Copyright © 2009–2017. All rights reserved.