org.sbml.jsbml.ext.layout
public class LayoutModelPlugin extends AbstractSBasePlugin
Modifier and Type | Field and Description |
---|---|
protected ListOf<Layout> |
listOfLayouts |
private static long |
serialVersionUID |
extendedSBase, packageVersion
listOfListeners, parent, UNKNOWN_ATTRIBUTES, UNKNOWN_ELEMENTS
Constructor and Description |
---|
LayoutModelPlugin(LayoutModelPlugin elm) |
LayoutModelPlugin(Model model) |
Modifier and Type | Method and Description |
---|---|
void |
add(Layout layout) |
void |
addLayout(Layout layout) |
LayoutModelPlugin |
clone() |
Layout |
createLayout()
Creates a new layout and adds it to the current list of layouts.
|
Layout |
createLayout(java.lang.String id) |
private ListOf<Layout> |
createListOfLayout()
Creates a new
ListOf , adds it to this object as listOfLayouts
and returns a pointer to it. |
boolean |
equals(java.lang.Object object) |
boolean |
getAllowsChildren() |
SBase |
getChildAt(int index) |
int |
getChildCount() |
java.lang.String |
getElementNamespace()
Returns the XML namespace (URI) of the package extension of this plugin object.
|
Layout |
getLayout(int i) |
int |
getLayoutCount() |
ListOf<Layout> |
getListOfLayouts() |
Model |
getModel() |
java.lang.String |
getPackageName()
Returns the package name of this plugin object.
|
SBMLDocument |
getParent() |
SBMLDocument |
getParentSBMLObject()
Returns the parent
SBase object to which this plugin object connected. |
java.lang.String |
getPrefix()
Returns the prefix of the package extension of this plugin object.
|
java.lang.String |
getURI()
Gets the URI to which this element belongs to.
|
boolean |
isSetListOfLayouts() |
boolean |
readAttribute(java.lang.String attributeName,
java.lang.String prefix,
java.lang.String value)
Reads and sets the attribute if it is know from this
SBasePlugin . |
void |
setListOfLayouts(ListOf<Layout> listOfLayouts) |
java.lang.String |
toString() |
boolean |
unsetListOfLayouts()
Removes the
listOfLayouts from this Model and notifies
all registered instances of TreeNodeChangeListener . |
java.util.Map<java.lang.String,java.lang.String> |
writeXMLAttributes()
Returns a
Map containing the XML attributes of this object. |
getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, hashCode, isSetExtendedSBase
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySet
finalize, getClass, notify, notifyAll, wait, wait, wait
addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
private static final long serialVersionUID
public LayoutModelPlugin(LayoutModelPlugin elm)
elm
- public LayoutModelPlugin(Model model)
model
- public void add(Layout layout)
layout
- public void addLayout(Layout layout)
layout
- public Layout createLayout()
public Layout createLayout(java.lang.String id)
id
- private ListOf<Layout> createListOfLayout()
ListOf
, adds it to this object as listOfLayouts
and returns a pointer to it.ListOf
object.public boolean equals(java.lang.Object object)
equals
in interface SBasePlugin
equals
in class AbstractSBasePlugin
public boolean getAllowsChildren()
public SBase getChildAt(int index)
public int getChildCount()
public Layout getLayout(int i)
i
- public int getLayoutCount()
public Model getModel()
public SBMLDocument getParent()
getParent
in interface javax.swing.tree.TreeNode
getParent
in class AbstractTreeNode
public SBMLDocument getParentSBMLObject()
SBasePlugin
SBase
object to which this plugin object connected.getParentSBMLObject
in interface SBasePlugin
getParentSBMLObject
in class AbstractSBasePlugin
SBase
object to which this plugin object connected.public boolean isSetListOfLayouts()
public boolean readAttribute(java.lang.String attributeName, java.lang.String prefix, java.lang.String value)
SBasePlugin
SBasePlugin
.attributeName
- localName of the XML attributeprefix
- prefix of the XML attributevalue
- value of the XML attributetrue
if the attribute has been successfully read.public void setListOfLayouts(ListOf<Layout> listOfLayouts)
listOfLayouts
- public java.lang.String toString()
toString
in class AbstractTreeNode
public boolean unsetListOfLayouts()
listOfLayouts
from this Model
and notifies
all registered instances of TreeNodeChangeListener
.true
if calling this method lead to a change in this
data structure.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 AbstractSBasePlugin
Map
containing the XML attributes of this object.public LayoutModelPlugin clone()
clone
in interface SBasePlugin
clone
in class AbstractSBasePlugin
public java.lang.String getElementNamespace()
SBasePlugin
public java.lang.String getPackageName()
SBasePlugin
public java.lang.String getPrefix()
SBasePlugin
public java.lang.String getURI()
SBasePlugin