org.sbml.jsbml.ext.layout
public class Curve extends AbstractNamedSBase
Curve
class describes how to connect elements in a diagram defined with
the use of the Layout
package. A curve is fully specified by a mandatory
listOfCurveSegments element and is used in four places in the Layout
package: SpeciesReferenceGlyph
, ReactionGlyph
,
ReferenceGlyph
, and GeneralGlyph
.Modifier and Type | Field and Description |
---|---|
(package private) ListOf<CurveSegment> |
listOfCurveSegments |
private static long |
serialVersionUID
Generated serial version identifier.
|
ignoredExtensions, ignoredXMLElements
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
Curve() |
Curve(Curve curve) |
Curve(int level,
int version) |
Modifier and Type | Method and Description |
---|---|
boolean |
addCurveSegment(CurveSegment curveSegment) |
void |
addCurveSegment(int index,
CurveSegment element) |
Curve |
clone()
Creates a deep copy of this object, i.e., a new
SBase with the same properties
like this one. |
CubicBezier |
createCubicBezier()
Creates a new
CubicBezier instance, adds it to this Curve and returns it. |
LineSegment |
createLineSegment()
Creates a new
LineSegment instance, adds it to this Curve and returns it. |
boolean |
equals(java.lang.Object object)
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
int |
getChildCount() |
CurveSegment |
getCurveSegment(int n) |
int |
getCurveSegmentCount() |
ListOf<CurveSegment> |
getListOfCurveSegments() |
int |
hashCode()
Returns a hash code value for this
SBase instance. |
private void |
initDefaults() |
boolean |
isIdMandatory()
This method can be used to query if the identifier of this
NamedSBase is required to be defined (i.e., not null )
in the definition of SBML. |
boolean |
isSetListOfCurveSegments() |
boolean |
removeCurveSegment(CurveSegment cs) |
void |
setListOfCurveSegments(ListOf<CurveSegment> listOfCurveSegments)
The listOfCurveSegments element contains arbitrary number of cuve segments that
can be either of type
LineSegment or of type CubicBezier . |
boolean |
unsetListOfCurveSegments()
Removes the
#listOfLineSegments from this Model and notifies
all registered instances of TreeNodeChangeListener . |
getId, getName, isSetId, isSetName, isValidId, readAttribute, setId, setName, toString, unsetId, unsetName, writeXMLAttributes
addCVTerm, 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, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTerm
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
ListOf<CurveSegment> listOfCurveSegments
public Curve()
public Curve(Curve curve)
curve
- public Curve(int level, int version)
level
- version
- public boolean addCurveSegment(CurveSegment curveSegment)
curveSegment
- public void addCurveSegment(int index, CurveSegment element)
index
- element
- public Curve clone()
SBase
SBase
with the same properties
like this one.clone
in interface SBase
clone
in class AbstractSBase
public LineSegment createLineSegment()
LineSegment
instance, adds it to this Curve
and returns it.LineSegment
instancepublic CubicBezier createCubicBezier()
CubicBezier
instance, adds it to this Curve
and returns it.CubicBezier
instancepublic boolean equals(java.lang.Object object)
SBase
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSBase
public CurveSegment getCurveSegment(int n)
n
- public int getCurveSegmentCount()
public ListOf<CurveSegment> getListOfCurveSegments()
public int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class AbstractNamedSBase
SBase
instance.Object.hashCode()
private void initDefaults()
public boolean isIdMandatory()
NamedSBase
NamedSBase
is required to be defined (i.e., not null
)
in the definition of SBML.true
if the identifier of this element must be set in
order to create a valid SBML representation. false
otherwise, i.e., if the identifier can be understood as an optional
attribute.public boolean isSetListOfCurveSegments()
public boolean removeCurveSegment(CurveSegment cs)
cs
- public void setListOfCurveSegments(ListOf<CurveSegment> listOfCurveSegments)
LineSegment
or of type CubicBezier
. Here,
both classes are child classes of the abstract type CurveSegment
.listOfCurveSegments
- public boolean unsetListOfCurveSegments()
#listOfLineSegments
from this Model
and notifies
all registered instances of TreeNodeChangeListener
.true
if calling this method lead to a change in this
data structure.