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.| Modifier and Type | Field and Description |
|---|---|
protected ListOf<Layout> |
listOfLayouts |
elementNamespace, extendedSBase, packageVersionlistOfListeners, parent, resourceBundle| 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() |
Layout |
createLayout()
Creates a new
Layout and adds it to the current list of layouts. |
Layout |
createLayout(String id)
Creates a new
Layout and adds it to the current list of layouts. |
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
SBase |
getChildAt(int index) |
int |
getChildCount() |
String |
getElementNamespace() |
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. |
String |
getPackageName() |
SBMLDocument |
getParent() |
SBMLDocument |
getParentSBMLObject() |
String |
getPrefix() |
String |
getURI() |
int |
hashCode() |
boolean |
isSetListOfLayouts() |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
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. |
Map<String,String> |
writeXMLAttributes() |
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, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, notifyChildChange, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitaddAllChangeListeners, 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(String id)
Layout and adds it to the current list of layouts.public int hashCode()
hashCode in interface SBasePluginhashCode in class AbstractSBasePluginpublic boolean equals(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 TreeNodegetParent in class AbstractTreeNodepublic SBMLDocument getParentSBMLObject()
getParentSBMLObject in interface SBasePlugingetParentSBMLObject in class AbstractSBasePluginpublic boolean isSetListOfLayouts()
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 Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasePluginwriteXMLAttributes in class AbstractSBasePluginpublic LayoutModelPlugin clone()
clone in interface SBasePluginclone in class AbstractSBasePluginpublic String getElementNamespace()
getElementNamespace in interface SBasePlugingetElementNamespace in class AbstractSBasePluginpublic String getPackageName()
public String getPrefix()
public String getURI()
Copyright © 2009–2016. All rights reserved.