java.io.Serializable, java.lang.Cloneable, javax.swing.tree.TreeNode, SBase, TreeNodeWithChangeSupportpublic class CubicBezier extends LineSegment
Layout package.
It represents a Bezier curve, and is readily available in
most graphics APIs. The class CubicBezier is derived from LineSegment.
It consists of four elements: the two inherited elements 'start' and 'end', which
specify the starting point and the endpoint of the cubic bezier curve, and two elements
'basePoint1' and 'basePoint2', which specify the two additional base points that are
needed to describe a cubic bezier curve. These basepoints also allow tools that cannot
render bezier curves to approximate them by directly connecting the four points.
CurveSegment.TypeignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor | Description |
|---|---|
CubicBezier() |
|
CubicBezier(int level,
int version) |
|
CubicBezier(CubicBezier cubicBezier) |
| Modifier and Type | Method | Description |
|---|---|---|
CubicBezier |
clone() |
|
Point |
createBasePoint1() |
Creates, sets and returns a
Point |
Point |
createBasePoint1(double x,
double y,
double z) |
Creates, sets and returns a
Point based on the
given values. |
Point |
createBasePoint2() |
Creates, sets and returns a
Point |
Point |
createBasePoint2(double x,
double y,
double z) |
Creates, sets and returns a
Point based on the
given values. |
boolean |
equals(java.lang.Object object) |
|
Point |
getBasePoint1() |
|
Point |
getBasePoint2() |
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
|
int |
getChildCount() |
|
int |
hashCode() |
|
boolean |
isSetBasePoint1() |
|
boolean |
isSetBasePoint2() |
|
Point |
removeBasePoint1() |
|
Point |
removeBasePoint2() |
|
void |
setBasePoint1(Point basePoint1) |
basePoint1 specifies represents the base point closer
to the start point.
|
void |
setBasePoint2(Point basePoint2) |
|
void |
unsetBasePoint1() |
Unsets the Base point 1 (and fires appropriate event)
|
void |
unsetBasePoint2() |
Unsets the Base point 2 (and fires appropriate event)
|
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, getAllowsChildren, 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, userObjectKeySetgetType, isCubicBezier, isLineSegment, isSetType, readAttribute, removeEnd, removeStart, writeXMLAttributescreateEnd, createEnd, createStart, createStart, getEnd, getStart, isSetEnd, isSetStart, setEnd, setStart, unsetEnd, unsetStartfinalize, 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 CubicBezier()
public CubicBezier(CubicBezier cubicBezier)
cubicBezier - public CubicBezier(int level,
int version)
level - version - public CubicBezier clone()
clone in interface SBaseclone in class LineSegmentpublic Point createBasePoint1()
PointPoint object.public Point createBasePoint1(double x, double y, double z)
Point based on the
given values.x - y - z - Point object.public Point createBasePoint2()
PointPoint object.public Point createBasePoint2(double x, double y, double z)
Point based on the
given values.x - y - z - Point object.public boolean equals(java.lang.Object object)
equals in interface SBaseequals in class LineSegmentpublic Point getBasePoint1()
public Point getBasePoint2()
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt in interface javax.swing.tree.TreeNodegetChildAt in class LineSegmentpublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodegetChildCount in class LineSegmentpublic int hashCode()
hashCode in interface SBasehashCode in class LineSegmentpublic boolean isSetBasePoint1()
public boolean isSetBasePoint2()
public Point removeBasePoint1()
public Point removeBasePoint2()
public void setBasePoint1(Point basePoint1)
basePoint1 - public void setBasePoint2(Point basePoint2)
basePoint2 - public void unsetBasePoint1()
public void unsetBasePoint2()
Copyright © 2009–2022. All rights reserved.