public class LineSegment extends CurveSegment
LineSegment class consists of the mandatory attribute xsi:type and two child
elements of type Point. One is called 'start' and represents the starting point
of the line, the other is called 'end' and represents the endpoint of the line. The
LineSegment class is also the base class for CubicBezier, which represent
curved lines instead of straight ones.CurveSegment.TypeignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
LineSegment() |
LineSegment(CurveSegment lineSegment) |
LineSegment(int level,
int version) |
LineSegment(LineSegment lineSegment) |
| Modifier and Type | Method and Description |
|---|---|
LineSegment |
clone() |
Point |
createEnd()
Creates, sets and returns a
Point |
Point |
createEnd(double x,
double y,
double z)
Creates, sets and returns a
Point based on the
given values. |
Point |
createStart()
Creates, sets and returns a
Point |
Point |
createStart(double x,
double y,
double z)
Creates, sets and returns a
Point based on the
given values. |
boolean |
equals(Object object) |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
Point |
getEnd()
|
Point |
getStart()
|
int |
hashCode() |
boolean |
isSetEnd()
|
boolean |
isSetStart()
|
void |
setEnd(Point end)
|
void |
setStart(Point start)
|
getType, isCubicBezier, isLineSegment, isSetType, readAttribute, removeEnd, removeStart, writeXMLAttributesaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isReadingInProgress, 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 LineSegment()
public LineSegment(int level,
int version)
level - version - public LineSegment(LineSegment lineSegment)
lineSegment - public LineSegment(CurveSegment lineSegment)
lineSegment - public LineSegment clone()
clone in interface SBaseclone in class AbstractSBasepublic Point createEnd()
PointcreateEnd in class CurveSegmentPoint object.public Point createEnd(double x, double y, double z)
Point based on the
given values.createEnd in class CurveSegmentx - y - z - Point object.public Point createStart()
PointcreateStart in class CurveSegmentPoint object.public Point createStart(double x, double y, double z)
Point based on the
given values.createStart in class CurveSegmentx - y - z - Point object.public boolean equals(Object object)
equals in interface SBaseequals in class CurveSegmentpublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic Point getEnd()
CurveSegmentgetEnd in class CurveSegmentEnd Point of this CurveSegment.public Point getStart()
CurveSegmentgetStart in class CurveSegmentStart Point of this CurveSegment.public int hashCode()
hashCode in interface SBasehashCode in class CurveSegmentpublic boolean isSetEnd()
CurveSegmentisSetEnd in class CurveSegmenttrue if the End Point is set.public boolean isSetStart()
CurveSegmentisSetStart in class CurveSegmenttrue if the Start Point is set.public void setEnd(Point end)
CurveSegmentsetEnd in class CurveSegmentend - the End Point to setpublic void setStart(Point start)
CurveSegmentsetStart in class CurveSegmentstart - the Start Point to setCopyright © 2009–2016. All rights reserved.