public class ListOfDrawables extends ListOf
Transformation2D.
Layouts can contain ListOfDrawables which holds all
Transformation2D objects for a certain group.
| Constructor and Description |
|---|
ListOfDrawables()
Constructor which instantiates an empty
ListOfDrawables object. |
ListOfDrawables(ListOfDrawables source)
Copy constructor.
|
ListOfDrawables(long level)
Constructor which instantiates an empty
ListOfDrawables object. |
ListOfDrawables(long level,
long version)
Constructor which instantiates an empty
ListOfDrawables object. |
ListOfDrawables(long level,
long version,
long pkgVersion)
Constructor which instantiates an empty
ListOfDrawables object. |
ListOfDrawables(RenderPkgNamespaces renderns)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
ListOfDrawables |
cloneObject()
Creates and returns a deep copy of the
ListOfDrawables object. |
void |
delete()
Explicitly deletes the underlying native object.
|
SBase |
get(long i)
Returns a pointer to the
Transformation2D with the given index or null if
the index is invalid. |
Transformation2D |
get(java.lang.String id)
|
java.lang.String |
getElementName()
Returns the name of this element.
|
int |
getItemTypeCode()
Get the type code of the objects contained in this
ListOf. |
boolean |
isValidTypeForList(SBase item)  |
SBase |
remove(long n)
Removes the nth item from this
ListOfDrawables items and returns a pointer to
it. |
Transformation2D |
remove(java.lang.String sid)
Removes item in this
ListOfDrawables items with the given identifier. |
append, appendAndOwn, appendFrom, clear, clear, connectToChild, getElementByMetaId, getElementBySId, getTypeCode, insert, insertAndOwn, removeFromParentAndDelete, sizeaddCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getId, getIdAttribute, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getName, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumDisabledPlugins, getNumPlugins, getPackageCoreVersion, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetId, isSetIdAttribute, isSetMetaId, isSetModelHistory, isSetName, isSetNotes, isSetSBOTerm, isSetUserData, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setId, setIdAttribute, setMetaId, setModelHistory, setName, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetId, unsetIdAttribute, unsetMetaId, unsetModelHistory, unsetName, unsetNotes, unsetSBOTerm, unsetUserDatapublic ListOfDrawables(long level, long version, long pkgVersion) throws SBMLConstructorException
ListOfDrawables object.SBMLConstructorExceptionpublic ListOfDrawables(long level, long version) throws SBMLConstructorException
ListOfDrawables object.SBMLConstructorExceptionpublic ListOfDrawables(long level) throws SBMLConstructorException
ListOfDrawables object.SBMLConstructorExceptionpublic ListOfDrawables() throws SBMLConstructorException
ListOfDrawables object.SBMLConstructorExceptionpublic ListOfDrawables(RenderPkgNamespaces renderns) throws SBMLConstructorException
SBMLConstructorExceptionpublic ListOfDrawables(ListOfDrawables source) throws SBMLConstructorException
ListOfDrawables object.SBMLConstructorExceptionpublic void delete()
In general, application software will not need to call this method directly. The Java language binding for libSBML is implemented as a language wrapper that provides a Java interface to libSBML's underlying C++/C code. Some of the Java methods return objects that are linked to objects created not by Java code, but by C++ code. The Java objects wrapped around them will be deleted when the garbage collector invokes the corresponding C++ finalize() methods for the objects. The finalize() methods in turn call the ListOfDrawables.delete() method on the libSBML object.
This method is exposed in case calling programs want to ensure that the underlying object is freed immediately, and not at some arbitrary time determined by the Java garbage collector. In normal usage, callers do not need to invoke ListOfDrawables.delete() themselves.
public ListOfDrawables cloneObject()
ListOfDrawables object.
cloneObject in class ListOfListOfDrawablespublic SBase get(long i)
Transformation2D with the given index or null if
the index is invalid.
get in class ListOfi - index of the Transformation2D object to be returned
Transformation2D at the given index or null.ListOf.size()public Transformation2D get(java.lang.String id)
id - id of the Transformation2D object to be returned
Transformation2D at the given id or null.public SBase remove(long n)
ListOfDrawables items and returns a pointer to
it.
The caller owns the returned item and is responsible for deleting it.
remove in class ListOfn - the index of the item to remove
ListOf.size()public Transformation2D remove(java.lang.String sid)
ListOfDrawables items with the given identifier.
The caller owns the returned item and is responsible for deleting it.
If none of the items in this list have the identifier sid, then @c
null is returned.
sid - the identifier of the item to remove
public java.lang.String getElementName()
getElementName in class ListOfpublic int getItemTypeCode()
ListOf.
LibSBML attaches an identifying code to every
kind of SBML object. These are known as SBML type codes. In
other languages, the set of type codes is stored in an enumeration in
the Java language interface for libSBML, the type codes are defined as
static integer constants in the interface class libsbmlConstants. The names of the type codes all begin with the
characters SBML_.
getItemTypeCode in class ListOfListOf
instance, or SBML_UNKNOWN (default).ListOf.getElementName(),
SBase.getPackageName()public boolean isValidTypeForList(SBase item)