public class GlobalStyle extends Style
GlobalStyle
concept of the SBML render extension.
Global styles are the style information objects used in GlobalRenderInformation
(
Since GlobalStyle
is derived from Styles, it inherits all of the methods and attributes from Style
. (@see Style)
GlobalRenderInformation).
Global styles can be associated with layout objects by role and type, but not by id, otherwise global
styles and local styles are equivalent.
Constructor and Description |
---|
GlobalStyle()
Creates a new
GlobalStyle object with the given SBML level
and SBML version. |
GlobalStyle(long level)
Creates a new
GlobalStyle object with the given SBML level
and SBML version. |
GlobalStyle(long level,
long version)
Creates a new
GlobalStyle object with the given SBML level
and SBML version. |
GlobalStyle(long level,
long version,
long pkgVersion)
Creates a new
GlobalStyle object with the given SBML level
and SBML version. |
GlobalStyle(RenderPkgNamespaces renderns)
Creates a new
GlobalStyle object with the given SBMLNamespaces . |
GlobalStyle(RenderPkgNamespaces renderns,
java.lang.String id)
Constructor which creates a
GlobalStyle with the given id
and all lists empty. |
GlobalStyle(XMLNode node)
Creates a new
GlobalStyle object from the given XMLNode object. |
GlobalStyle(XMLNode node,
long l2version)
Creates a new
GlobalStyle object from the given XMLNode object. |
Modifier and Type | Method and Description |
---|---|
GlobalStyle |
cloneObject()
Creates and returns a deep copy of this
GlobalStyle object. |
void |
delete()
Explicitly deletes the underlying native object.
|
java.lang.String |
getElementName()
Returns the XML element name of this object, which for
GlobalStyle , is always 'renderInformation'. |
int |
getTypeCode()
Returns the libSBML type code for this SBML object.
|
addRole, addType, connectToChild, createRoleString, createTypeString, getGroup, getId, getName, getNumRoles, getNumTypes, getRoleList, getTypeList, isInRoleList, isInTypeList, isSetId, isSetName, removeRole, removeType, setGroup, setId, setName, setRoleList, setTypeList, toXML, unsetId, unsetName
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getElementByMetaId, getElementBySId, getLevel, getLine, getListOfAllElements, getListOfAllElements, getListOfAllElementsFromPlugins, getListOfAllElementsFromPlugins, getMetaId, getModel, getModelHistory, getNamespaces, getNotes, getNotesString, getNumCVTerms, getNumDisabledPlugins, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getPlugin, getPrefix, getResourceBiologicalQualifier, getResourceModelQualifier, getSBMLDocument, getSBOTerm, getSBOTermAsURL, getSBOTermID, getURI, getVersion, hashCode, hasValidLevelVersionNamespaceCombination, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetMetaId, isSetModelHistory, isSetNotes, isSetSBOTerm, isSetUserData, matchesRequiredSBMLNamespacesForAddition, matchesSBMLNamespaces, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, renameSIdRefs, renameUnitSIdRefs, replaceTopLevelAnnotationElement, replaceTopLevelAnnotationElement, setAnnotation, setAnnotation, setMetaId, setModelHistory, setNamespaces, setNotes, setNotes, setNotes, setSBOTerm, setSBOTerm, toSBML, toXMLNode, unsetAnnotation, unsetCVTerms, unsetMetaId, unsetModelHistory, unsetNotes, unsetSBOTerm, unsetUserData
public GlobalStyle(long level, long version, long pkgVersion) throws SBMLConstructorException
GlobalStyle
object with the given SBML level
and SBML version.
level
- SBML level of the new objectlevel
- SBML version of the new objectSBMLConstructorException
public GlobalStyle(long level, long version) throws SBMLConstructorException
GlobalStyle
object with the given SBML level
and SBML version.
level
- SBML level of the new objectlevel
- SBML version of the new objectSBMLConstructorException
public GlobalStyle(long level) throws SBMLConstructorException
GlobalStyle
object with the given SBML level
and SBML version.
level
- SBML level of the new objectlevel
- SBML version of the new objectSBMLConstructorException
public GlobalStyle() throws SBMLConstructorException
GlobalStyle
object with the given SBML level
and SBML version.
level
- SBML level of the new objectlevel
- SBML version of the new objectSBMLConstructorException
public GlobalStyle(RenderPkgNamespaces renderns) throws SBMLConstructorException
GlobalStyle
object with the given SBMLNamespaces
.
sbmlns
- The SBML namespace for the object.SBMLConstructorException
public GlobalStyle(XMLNode node, long l2version) throws SBMLConstructorException
GlobalStyle
object from the given XMLNode
object.
The XMLNode
object has to contain a valid XML representation of a
GlobalStyle
object as defined in the render extension specification.
This method is normally called when render information is read from a file and
should normally not have to be called explicitly.
node
- the XMLNode
object reference that describes the GlobalStyle
object to be instantiated.SBMLConstructorException
public GlobalStyle(XMLNode node) throws SBMLConstructorException
GlobalStyle
object from the given XMLNode
object.
The XMLNode
object has to contain a valid XML representation of a
GlobalStyle
object as defined in the render extension specification.
This method is normally called when render information is read from a file and
should normally not have to be called explicitly.
node
- the XMLNode
object reference that describes the GlobalStyle
object to be instantiated.SBMLConstructorException
public GlobalStyle(RenderPkgNamespaces renderns, java.lang.String id) throws SBMLConstructorException
GlobalStyle
with the given id
and all lists empty.
id
- the new id for the GlobalStyle
.
This constructor is deprecated. The new libsbml API only has
constructors which take the SBML level and version or one that takes
an SBMLNamespaces
object.
SBMLConstructorException
public 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 GlobalStyle.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 GlobalStyle.delete()
themselves.
public int getTypeCode()
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
interface class libsbmlConstants
. The names of the type codes
all begin with the characters SBML_.
getTypeCode
 in class SBase
SBML_UNKNOWN
(default).
This method is purely abstract and has to be implemented by derived classes.
GlobalStyle.getElementName()
public java.lang.String getElementName()
GlobalStyle
, is always 'renderInformation'.
getElementName
 in class Style
'renderInformation'.
public GlobalStyle cloneObject()
GlobalStyle
object.
cloneObject
 in class Style
GlobalStyle
.