public class CubicBezier extends LineSegment
Constructor and Description |
---|
CubicBezier()   |
CubicBezier(CubicBezier orig)   |
CubicBezier(LayoutPkgNamespaces layoutns)   |
CubicBezier(LayoutPkgNamespaces layoutns,
double x1,
double y1,
double x2,
double y2)   |
CubicBezier(LayoutPkgNamespaces layoutns,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2)   |
CubicBezier(LayoutPkgNamespaces layoutns,
Point start,
Point end)   |
CubicBezier(LayoutPkgNamespaces layoutns,
Point start,
Point base1,
Point base2,
Point end)   |
CubicBezier(long level)   |
CubicBezier(long level,
long version)   |
CubicBezier(long level,
long version,
long pkgVersion)   |
CubicBezier(XMLNode node)   |
CubicBezier(XMLNode node,
long l2version)   |
Modifier and Type | Method and Description |
---|---|
CubicBezier |
cloneObject()
Creates and returns a deep copy of this
SBase object. |
void |
delete()
Explicitly deletes the underlying native object.
|
Point |
getBasePoint1()   |
Point |
getBasePoint2()   |
String |
getElementName()
Returns the XML element name of this object.
|
int |
getTypeCode()
Returns the libSBML type code for this object.
|
void |
initDefaults()   |
void |
setBasePoint1(double x,
double y)   |
void |
setBasePoint1(double x,
double y,
double z)   |
void |
setBasePoint1(Point p)   |
void |
setBasePoint2(double x,
double y)   |
void |
setBasePoint2(double x,
double y,
double z)   |
void |
setBasePoint2(Point p)   |
void |
straighten()   |
XMLNode |
toXML()   |
getEnd, getStart, setEnd, setEnd, setEnd, setStart, setStart, setStart
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getElementByMetaId, getElementBySId, getLevel, getLine, getListOfAllElements, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, unsetAnnotation, unsetCVTerms, unsetId, unsetMetaId, unsetModelHistory, unsetName, unsetNotes, unsetSBOTerm
public CubicBezier() throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(CubicBezier orig) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(LayoutPkgNamespaces layoutns) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(LayoutPkgNamespaces layoutns, double x1, double y1, double x2, double y2) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(LayoutPkgNamespaces layoutns, double x1, double y1, double z1, double x2, double y2, double z2) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(LayoutPkgNamespaces layoutns, Point start, Point end) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(LayoutPkgNamespaces layoutns, Point start, Point base1, Point base2, Point end) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(long level) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(long level, long version) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(long level, long version, long pkgVersion) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(XMLNode node) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier(XMLNode node, long l2version) throws SBMLConstructorException
SBMLConstructorException
public CubicBezier cloneObject()
SBase
object.
cloneObject
 in class LineSegment
SBase
object.public void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize()
methods for the objects. The finalize()
methods in turn call the CubicBezier.delete()
method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke CubicBezier.delete()
themselves.
delete
 in class LineSegment
public Point getBasePoint1()
public Point getBasePoint2()
public String getElementName()
This is overridden by subclasses to return a string appropriate to the
SBML component. For example, Model
defines it as returning
'model'
, CompartmentType
defines it as returning 'compartmentType'
,
and so on.
getElementName
 in class LineSegment
public int getTypeCode()
This method may return the type code of this SBML object, or it may
return SBML_UNKNOWN
. This
is because subclasses of SBase
are not required to implement this
method to return a type code. This method is meant primarily for the
LibSBML C interface, in which class and subclass information is not
readily available.
getTypeCode
 in class LineSegment
SBML_UNKNOWN
(the default).
CubicBezier.getElementName()
,
SBase.getPackageName()
public void initDefaults()
initDefaults
 in class LineSegment
public void setBasePoint1(double x, double y)
public void setBasePoint1(double x, double y, double z)
public void setBasePoint1(Point p)
public void setBasePoint2(double x, double y)
public void setBasePoint2(double x, double y, double z)
public void setBasePoint2(Point p)
public void straighten()
public XMLNode toXML()
toXML
 in class LineSegment