org.sbml.jsbml.ext.spatial
public class SpatialModelPlugin extends AbstractSpatialSBasePlugin implements IdManager
Modifier and Type | Field and Description |
---|---|
private Geometry |
geometry |
private static org.apache.log4j.Logger |
logger
A logger for this class.
|
private static long |
serialVersionUID
Generated serial version ID
|
private java.util.HashMap<java.lang.String,SpatialNamedSBase> |
spatialIdMap |
extendedSBase, packageVersion
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
SpatialModelPlugin() |
SpatialModelPlugin(Model model) |
SpatialModelPlugin(SpatialModelPlugin spatialModelPlugin) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(SBase sbase)
|
SpatialModelPlugin |
clone()
Creates a new instance of
SBasePlugin from this SBasePlugin . |
Geometry |
createGeometry()
Creates a new
Geometry , adds it to this object
and returns a pointer to it. |
boolean |
getAllowsChildren() |
Geometry |
getChildAt(int index) |
int |
getChildCount() |
Model |
getExtendedSBase()
Returns the SBase object that is extended by this plug-in.
|
Geometry |
getGeometry()
Returns the value of geometry
|
boolean |
isSetGeometry()
Returns whether geometry is set
|
boolean |
register(SBase sbase)
|
void |
setGeometry(Geometry geometry)
Sets the value of geometry
|
boolean |
unregister(SBase sbase)
|
boolean |
unsetGeometry()
Unsets the variable geometry
|
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a
Map containing the XML attributes of this object. |
getElementNamespace, getModel, getPackageName, getParent, getParentSBMLObject, getPrefix, getURI, readAttribute
equals, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase, removeFromParent, setExtendedSBase
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
private Geometry geometry
private java.util.HashMap<java.lang.String,SpatialNamedSBase> spatialIdMap
private static final transient org.apache.log4j.Logger logger
public SpatialModelPlugin()
public SpatialModelPlugin(Model model)
model
- public SpatialModelPlugin(SpatialModelPlugin spatialModelPlugin)
spatialModelPlugin
- public Geometry getGeometry()
public Geometry createGeometry()
Geometry
, adds it to this object
and returns a pointer to it.Geometry
object.public boolean isSetGeometry()
public void setGeometry(Geometry geometry)
public boolean unsetGeometry()
true
, if geometry was set before,
otherwise false
public Model getExtendedSBase()
SBasePlugin
getExtendedSBase
in interface SBasePlugin
getExtendedSBase
in class AbstractSBasePlugin
public java.util.Map<java.lang.String,java.lang.String> writeXMLAttributes()
SBasePlugin
Map
containing the XML attributes of this object.writeXMLAttributes
in interface SBasePlugin
writeXMLAttributes
in class AbstractSpatialSBasePlugin
Map
containing the XML attributes of this object.public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public Geometry getChildAt(int index)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public SpatialModelPlugin clone()
SBasePlugin
SBasePlugin
from this SBasePlugin
.clone
in interface SBasePlugin
clone
in class AbstractSBasePlugin
SBasePlugin
from this SBasePlugin
.public boolean unregister(SBase sbase)
IdManager
unregister
in interface IdManager
true
if this operation was successfully performed,
false
otherwise.