java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SBase
, TreeNodeWithChangeSupport
public 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.Type
JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
CubicBezier() |
|
CubicBezier(int level,
int version) |
|
CubicBezier(CubicBezier cubicBezier) |
Modifier and Type | Method | Description |
---|---|---|
CubicBezier |
clone() |
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
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() |
Returns a hash code value for this
SBase instance. |
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, 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, 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, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, 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, userObjectKeySet
getType, isCubicBezier, isLineSegment, isSetType, readAttribute, removeEnd, removeStart, writeXMLAttributes
createEnd, createEnd, createStart, createStart, getEnd, getStart, isSetEnd, isSetStart, setEnd, setStart, unsetEnd, unsetStart
removeTreeNodeChangeListener
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
public CubicBezier()
public CubicBezier(CubicBezier cubicBezier)
cubicBezier
- public CubicBezier(int level, int version)
level
- version
- public CubicBezier clone()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class LineSegment
public Point createBasePoint1()
Point
Point
object.public Point createBasePoint1(double x, double y, double z)
Point
based on the
given values.x
- y
- z
- Point
object.public Point createBasePoint2()
Point
Point
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)
SBase
public Point getBasePoint1()
public Point getBasePoint2()
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class LineSegment
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class LineSegment
public int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class LineSegment
SBase
instance.Object.hashCode()
public 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()