public class LineSegment extends SBase
Constructor and Description |
---|
LineSegment()   |
LineSegment(LayoutPkgNamespaces layoutns)   |
LineSegment(LayoutPkgNamespaces layoutns,
double x1,
double y1,
double x2,
double y2)   |
LineSegment(LayoutPkgNamespaces layoutns,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2)   |
LineSegment(LayoutPkgNamespaces layoutns,
Point start,
Point end)   |
LineSegment(LineSegment orig)   |
LineSegment(long level)   |
LineSegment(long level,
long version)   |
LineSegment(long level,
long version,
long pkgVersion)   |
LineSegment(XMLNode node)   |
LineSegment(XMLNode node,
long l2version)   |
Modifier and Type | Method and Description |
---|---|
LineSegment |
cloneObject()
Creates and returns a deep copy of this
SBase object. |
void |
delete()
Explicitly deletes the underlying native object.
|
String |
getElementName()
Returns the XML element name of this object.
|
Point |
getEnd()   |
Point |
getStart()   |
int |
getTypeCode()
Returns the libSBML type code for this object.
|
void |
initDefaults()   |
void |
setEnd(double x,
double y)   |
void |
setEnd(double x,
double y,
double z)   |
void |
setEnd(Point end)   |
void |
setStart(double x,
double y)   |
void |
setStart(double x,
double y,
double z)   |
void |
setStart(Point start)   |
XMLNode |
toXML()   |
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 LineSegment() throws SBMLConstructorException
SBMLConstructorException
public LineSegment(LayoutPkgNamespaces layoutns) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(LayoutPkgNamespaces layoutns, double x1, double y1, double x2, double y2) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(LayoutPkgNamespaces layoutns, double x1, double y1, double z1, double x2, double y2, double z2) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(LayoutPkgNamespaces layoutns, Point start, Point end) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(LineSegment orig) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(long level) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(long level, long version) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(long level, long version, long pkgVersion) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(XMLNode node) throws SBMLConstructorException
SBMLConstructorException
public LineSegment(XMLNode node, long l2version) throws SBMLConstructorException
SBMLConstructorException
public LineSegment cloneObject()
SBase
object.
cloneObject
 in class SBase
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 LineSegment.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 LineSegment.delete()
themselves.
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 SBase
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 SBase
SBML_UNKNOWN
(the default).
LineSegment.getElementName()
,
SBase.getPackageName()
public void initDefaults()
public void setEnd(double x, double y)
public void setEnd(double x, double y, double z)
public void setStart(double x, double y)
public void setStart(double x, double y, double z)