org.sbml.jsbml.ext.layout
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.Type| Modifier and Type | Field and Description |
|---|---|
private Point |
basePoint1 |
private Point |
basePoint2 |
private static long |
serialVersionUID
Generated serial version identifier.
|
end, startignoredExtensions, 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()
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) |
createEnd, createEnd, createStart, createStart, getEnd, getStart, isSetEnd, isSetStart, setEnd, setStart, toStringgetType, isCubicBezier, isLineSegment, isSetType, readAttribute, removeEnd, removeStart, setType, 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, userObjectKeySetprivate static final long serialVersionUID
private Point basePoint1
private Point basePoint2
public CubicBezier()
public CubicBezier(CubicBezier cubicBezier)
cubicBezier - public CubicBezier(int level,
int version)
level - version - public CubicBezier clone()
SBaseSBase with the same properties
like this one.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)
SBasepublic 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()
SBaseSBase instance.hashCode in interface SBasehashCode in class LineSegmentSBase 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 -