public class CubicBezier extends LineSegment
Layout package defines the
class CubicBezier. 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, ignoredXMLElementslistOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS| Constructor and Description |
|---|
CubicBezier() |
CubicBezier(CubicBezier cubicBezier) |
CubicBezier(int level,
int version) |
| Modifier and Type | Method and 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(Object object) |
Point |
getBasePoint1() |
Point |
getBasePoint2() |
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) |
createEnd, createEnd, createStart, createStart, getEnd, getStart, isSetEnd, isSetStart, setEnd, setStart, toStringgetType, isCubicBezier, isLineSegment, isSetType, readAttribute, removeEnd, removeStart, writeXMLAttributesaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, 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, 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(Object object)
equals in interface SBaseequals in class LineSegmentpublic Point getBasePoint1()
public Point getBasePoint2()
public TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class LineSegmentpublic int getChildCount()
getChildCount in interface 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 - Copyright © 2009–2016. All rights reserved.