public class LayoutModelPlugin extends AbstractSBasePlugin
Layout package extends the Model class with the
addition of one child element: the listOfLayouts. A Model may
contain at most one such list, but the list itself can hold many
different Layouts.| Constructor and Description |
|---|
LayoutModelPlugin(LayoutModelPlugin elm)
Creates a new instance
LayoutModelPlugin cloned from the given LayoutModelPlugin. |
LayoutModelPlugin(Model model)
Creates a new instance
LayoutModelPlugin associate it with the given Model. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Layout layout)
Adds the given
Layout to the listOfLayouts. |
void |
addLayout(Layout layout)
Adds the given
Layout to the listOfLayouts. |
LayoutModelPlugin |
clone()
Creates a new instance of
SBasePlugin from this SBasePlugin. |
Layout |
createLayout()
Creates a new
Layout and adds it to the current list of layouts. |
Layout |
createLayout(java.lang.String id)
Creates a new
Layout and adds it to the current list of layouts. |
boolean |
equals(java.lang.Object obj) |
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()
Returns the number of
Layouts of this LayoutModelPlugin. |
ListOf<Layout> |
getListOfLayouts() |
Model |
getModel() |
int |
getNumLayouts()
Returns the number of
Layouts of this LayoutModelPlugin. |
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.
|
int |
hashCode() |
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)
The listOfLayouts element must contain at least one
Layout. |
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. |
fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getExtendedSBase, getLevel, getPackageVersion, getSBMLDocument, getVersion, isSetExtendedSBase, isSetPackageVersion, removeFromParent, setExtendedSBase, setNamespace, setPackageVersionaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetpublic LayoutModelPlugin(LayoutModelPlugin elm)
LayoutModelPlugin cloned from the given LayoutModelPlugin.elm - the LayoutModelPlugin we want to clone.public LayoutModelPlugin(Model model)
LayoutModelPlugin associate it with the given Model.model - the Model where this LayoutModelPlugin belong.public void add(Layout layout)
Layout to the listOfLayouts.
The listOfLayouts is initialized if necessary.
layout - the Layout instance to add.addLayout(Layout)public void addLayout(Layout layout)
Layout to the listOfLayouts.
The listOfLayouts is initialized if necessary.
layout - the Layout instance to add.public Layout createLayout()
Layout and adds it to the current list of layouts.Layout.public Layout createLayout(java.lang.String id)
Layout and adds it to the current list of layouts.public int hashCode()
hashCode in interface SBasePluginhashCode in class AbstractSBasePluginpublic boolean equals(java.lang.Object obj)
equals in interface SBasePluginequals in class AbstractSBasePluginpublic boolean getAllowsChildren()
public SBase getChildAt(int index)
public int getChildCount()
public Layout getLayout(int i)
i - public int getLayoutCount()
Layouts of this LayoutModelPlugin.Layouts of this LayoutModelPlugin.public Model getModel()
public int getNumLayouts()
Layouts of this LayoutModelPlugin.Layouts of this LayoutModelPlugin.getLayoutCount()public SBMLDocument getParent()
getParent in interface javax.swing.tree.TreeNodegetParent in class AbstractTreeNodepublic SBMLDocument getParentSBMLObject()
SBasePluginSBase object to which this plugin object connected.getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class AbstractSBasePluginSBase 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)
SBasePluginSBasePlugin.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)
Layout.listOfLayouts - 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()
SBasePluginMap containing the XML attributes of this object.writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginMap containing the XML attributes of this object.public LayoutModelPlugin clone()
SBasePluginSBasePlugin from this SBasePlugin.clone in interface SBasePluginclone in class AbstractSBasePluginSBasePlugin from this SBasePlugin.public java.lang.String getElementNamespace()
SBasePlugingetElementNamespace in interface SBasePlugingetElementNamespace in class AbstractSBasePluginSBasePlugin.getURI()public java.lang.String getPackageName()
SBasePluginpublic java.lang.String getPrefix()
SBasePluginpublic java.lang.String getURI()
SBasePluginSBasePlugin.getElementNamespace()