java.io.Serializable
, java.lang.Cloneable
, javax.swing.tree.TreeNode
, SpatialNamedSBase
, NamedSBase
, SBase
, TreeNodeWithChangeSupport
public class CSGeometry extends GeometryDefinition
JSBML_WRONG_SBO_TERM
Constructor | Description |
---|---|
CSGeometry() |
|
CSGeometry(int level,
int version) |
|
CSGeometry(java.lang.String id,
int level,
int version) |
|
CSGeometry(CSGeometry csg) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addCSGObject(CSGObject csgo) |
Adds a new
CSGObject to the listOfCSGObjects. |
CSGeometry |
clone() |
Creates a deep copy of this object, i.e., a new
SBase with the same
properties
like this one. |
CSGObject |
createCSGObject() |
Creates a new CSGObject element and adds it to the ListOfCSGObjects list
|
CSGObject |
createCSGObject(java.lang.String id) |
Creates a new
CSGObject element and adds it to the ListOfCSGObjects list |
boolean |
equals(java.lang.Object obj) |
|
boolean |
getAllowsChildren() |
|
javax.swing.tree.TreeNode |
getChildAt(int index) |
|
int |
getChildCount() |
|
int |
getCSGObjectCount() |
Returns the number of
CSGObject s in this
CSGeometry . |
java.lang.String |
getElementName() |
Returns the XML element name of this object.
|
ListOf<CSGObject> |
getListOfCSGObjects() |
Returns the listOfCSGObjects.
|
int |
getNumCSGObjects() |
Returns the number of
CSGObject s in this
CSGeometry . |
int |
hashCode() |
Returns a hash code value for this
SBase instance. |
boolean |
isSetListOfCSGObjects() |
Returns
true , if listOfCSGObjects contains at least one element. |
void |
removeCSGObject(int i) |
Removes an element from the listOfCSGObjects at the given index.
|
boolean |
removeCSGObject(CSGObject csgo) |
Removes an element from the listOfCSGObjects.
|
void |
setListOfCSGObjects(ListOf<CSGObject> listOfCSGObjects) |
Sets the given
ListOf<CSGObject> . |
boolean |
unsetListOfCSGObjects() |
Returns
true , if listOfCSGObjects contain at least one element,
otherwise false |
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, addResources, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isIdMandatory, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTerm
getSpatialId, initDefaults, isSetSpatialId, setSpatialId, unsetSpatialId
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
getIsActive, isActive, isSetIsActive, readAttribute, setIsActive, unsetIsActive, writeXMLAttributes
getId, getName, isIdMandatory, isSetId, isSetName, setId, setName, unsetId, unsetName
addCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasExtension, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTreeNodeChangeListener, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, 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
public CSGeometry()
public CSGeometry(CSGeometry csg)
csg
- public CSGeometry(int level, int version)
level
- version
- public CSGeometry(java.lang.String id, int level, int version)
id
- level
- version
- public CSGeometry clone()
SBase
SBase
with the same
properties
like this one.clone
in interface SBase
clone
in class AbstractSpatialNamedSBase
public boolean equals(java.lang.Object obj)
SBase
public boolean isSetListOfCSGObjects()
true
, if listOfCSGObjects contains at least one element.true
, if listOfCSGObjects contains at least one element,
otherwise false
public ListOf<CSGObject> getListOfCSGObjects()
public void setListOfCSGObjects(ListOf<CSGObject> listOfCSGObjects)
ListOf<CSGObject>
. If listOfCSGObjects
was defined before and contains some elements, they are all unset.listOfCSGObjects
- public boolean unsetListOfCSGObjects()
true
, if listOfCSGObjects contain at least one element,
otherwise false
true
, if listOfCSGObjects contain at least one element,
otherwise false
public boolean addCSGObject(CSGObject csgo)
CSGObject
to the listOfCSGObjects.
The listOfCSGObjects is initialized if necessary.
csgo
- the element to add to the listCollection#add
)public boolean removeCSGObject(CSGObject csgo)
csgo
- the element to be removed from the listList#remove(Object)
public void removeCSGObject(int i)
i
- the index where to remove the CSGObject
java.lang.IndexOutOfBoundsException
- if the listOf is not set or
if the index is out of bound (index < 0 || index > list.size).public CSGObject createCSGObject()
public CSGObject createCSGObject(java.lang.String id)
CSGObject
element and adds it to the ListOfCSGObjects listid
- CSGObject
elementpublic int hashCode()
SBase
SBase
instance.hashCode
in interface SBase
hashCode
in class GeometryDefinition
SBase
instance.Object.hashCode()
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class AbstractSpatialNamedSBase
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
getChildCount
in class AbstractSpatialNamedSBase
public javax.swing.tree.TreeNode getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
getChildAt
in class AbstractSpatialNamedSBase
public int getCSGObjectCount()
CSGObject
s in this
CSGeometry
.CSGObject
s in this
CSGeometry
.public int getNumCSGObjects()
CSGObject
s in this
CSGeometry
.CSGObject
s in this
CSGeometry
.getCSGObjectCount()
public java.lang.String getElementName()
SBase
getElementName
in interface SBase
getElementName
in class AbstractSBase