public class DefaultValues extends SBase
DefaultValues
class.Constructor and Description |
---|
DefaultValues()
Creates a new
DefaultValues using the given SBML Level, Version and
&ldquorender&rdquo package version. |
DefaultValues(DefaultValues orig)
Copy constructor for
DefaultValues . |
DefaultValues(long level)
Creates a new
DefaultValues using the given SBML Level, Version and
&ldquorender&rdquo package version. |
DefaultValues(long level,
long version)
Creates a new
DefaultValues using the given SBML Level, Version and
&ldquorender&rdquo package version. |
DefaultValues(long level,
long version,
long pkgVersion)
Creates a new
DefaultValues using the given SBML Level, Version and
&ldquorender&rdquo package version. |
DefaultValues(RenderPkgNamespaces renderns)
Creates a new
DefaultValues using the given RenderPkgNamespaces object. |
Modifier and Type | Method and Description |
---|---|
SBase |
cloneObject()
Creates and returns a deep copy of this
DefaultValues object. |
void |
delete()
Explicitly deletes the underlying native object.
|
java.lang.String |
getBackgroundColor()
Returns the value of the 'backgroundColor' attribute of this
DefaultValues . |
RelAbsVector |
getDefault_z()
Returns the value of the 'default_z' attribute of this
DefaultValues . |
java.lang.String |
getElementName()
Returns the XML element name of this
DefaultValues object. |
boolean |
getEnableRotationalMapping()
Returns the value of the 'enableRotationalMapping' attribute of this
DefaultValues . |
java.lang.String |
getEndHead()
Returns the value of the 'endHead' attribute of this
DefaultValues . |
java.lang.String |
getFill()
Returns the value of the 'fill' attribute of this
DefaultValues . |
int |
getFillRule()
Returns the value of the 'fillRule' attribute of this
DefaultValues . |
java.lang.String |
getFillRuleAsString()
Returns the value of the 'fillRule' attribute of this
DefaultValues . |
java.lang.String |
getFontFamily()
Returns the value of the 'fontFamily' attribute of this
DefaultValues . |
RelAbsVector |
getFontSize()
Returns the value of the 'fontSize' attribute of this
DefaultValues . |
int |
getFontStyle()
Returns the value of the 'fontStyle' attribute of this
DefaultValues . |
java.lang.String |
getFontStyleAsString()
Returns the value of the 'fontStyle' attribute of this
DefaultValues . |
int |
getFontWeight()
Returns the value of the 'fontWeight' attribute of this
DefaultValues . |
java.lang.String |
getFontWeightAsString()
Returns the value of the 'fontWeight' attribute of this
DefaultValues . |
RelAbsVector |
getLinearGradient_x1()
Returns the value of the 'linearGradient_x1' attribute of this
DefaultValues . |
RelAbsVector |
getLinearGradient_x2()
Returns the value of the 'linearGradient_x2' attribute of this
DefaultValues . |
RelAbsVector |
getLinearGradient_y1()
Returns the value of the 'linearGradient_y1' attribute of this
DefaultValues . |
RelAbsVector |
getLinearGradient_y2()
Returns the value of the 'linearGradient_y2' attribute of this
DefaultValues . |
RelAbsVector |
getLinearGradient_z1()
Returns the value of the 'linearGradient_z1' attribute of this
DefaultValues . |
RelAbsVector |
getLinearGradient_z2()
Returns the value of the 'linearGradient_z2' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_cx()
Returns the value of the 'radialGradient_cx' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_cy()
Returns the value of the 'radialGradient_cy' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_cz()
Returns the value of the 'radialGradient_cz' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_fx()
Returns the value of the 'radialGradient_fx' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_fy()
Returns the value of the 'radialGradient_fy' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_fz()
Returns the value of the 'radialGradient_fz' attribute of this
DefaultValues . |
RelAbsVector |
getRadialGradient_r()
Returns the value of the 'radialGradient_r' attribute of this
DefaultValues . |
int |
getSpreadMethod()
Returns the value of the 'spreadMethod' attribute of this
DefaultValues . |
java.lang.String |
getSpreadMethodAsString()
Returns the value of the 'spreadMethod' attribute of this
DefaultValues . |
java.lang.String |
getStartHead()
Returns the value of the 'startHead' attribute of this
DefaultValues . |
java.lang.String |
getStroke()
Returns the value of the 'stroke' attribute of this
DefaultValues . |
double |
getStrokeWidth()
Returns the value of the 'strokeWidth' attribute of this
DefaultValues . |
int |
getTextAnchor()
Returns the value of the 'textAnchor' attribute of this
DefaultValues . |
java.lang.String |
getTextAnchorAsString()
Returns the value of the 'textAnchor' attribute of this
DefaultValues . |
int |
getTypeCode()
Returns the libSBML type code for this
DefaultValues object. |
int |
getVTextAnchor()
Returns the value of the 'vtextAnchor' attribute of this
DefaultValues . |
java.lang.String |
getVTextAnchorAsString()
Returns the value of the 'vtextAnchor' attribute of this
DefaultValues . |
boolean |
hasRequiredAttributes()
Predicate returning
true if all the required attributes for this
DefaultValues object have been set. |
boolean |
isSetBackgroundColor()
Predicate returning
true if this DefaultValues 's 'backgroundColor'
attribute is set. |
boolean |
isSetDefault_z()
Predicate returning
true if this DefaultValues 's 'default_z' attribute
is set. |
boolean |
isSetEnableRotationalMapping()
Predicate returning
true if this DefaultValues 's
'enableRotationalMapping' attribute is set. |
boolean |
isSetEndHead()
Predicate returning
true if this DefaultValues 's 'endHead' attribute is
set. |
boolean |
isSetFill()
Predicate returning
true if this DefaultValues 's 'fill' attribute is
set. |
boolean |
isSetFillRule()
Predicate returning
true if this DefaultValues 's 'fillRule' attribute
is set. |
boolean |
isSetFontFamily()
Predicate returning
true if this DefaultValues 's 'fontFamily' attribute
is set. |
boolean |
isSetFontSize()
Predicate returning
true if this DefaultValues 's 'fontSize' attribute
is set. |
boolean |
isSetFontStyle()
Predicate returning
true if this DefaultValues 's 'fontStyle' attribute
is set. |
boolean |
isSetFontWeight()
Predicate returning
true if this DefaultValues 's 'fontWeight' attribute
is set. |
boolean |
isSetLinearGradient_x1()
Predicate returning
true if this DefaultValues 's 'linearGradient_x1'
attribute is set. |
boolean |
isSetLinearGradient_x2()
Predicate returning
true if this DefaultValues 's 'linearGradient_x2'
attribute is set. |
boolean |
isSetLinearGradient_y1()
Predicate returning
true if this DefaultValues 's 'linearGradient_y1'
attribute is set. |
boolean |
isSetLinearGradient_y2()
Predicate returning
true if this DefaultValues 's 'linearGradient_y2'
attribute is set. |
boolean |
isSetLinearGradient_z1()
Predicate returning
true if this DefaultValues 's 'linearGradient_z1'
attribute is set. |
boolean |
isSetLinearGradient_z2()
Predicate returning
true if this DefaultValues 's 'linearGradient_z2'
attribute is set. |
boolean |
isSetRadialGradient_cx()
Predicate returning
true if this DefaultValues 's 'radialGradient_cx'
attribute is set. |
boolean |
isSetRadialGradient_cy()
Predicate returning
true if this DefaultValues 's 'radialGradient_cy'
attribute is set. |
boolean |
isSetRadialGradient_cz()
Predicate returning
true if this DefaultValues 's 'radialGradient_cz'
attribute is set. |
boolean |
isSetRadialGradient_fx()
Predicate returning
true if this DefaultValues 's 'radialGradient_fx'
attribute is set. |
boolean |
isSetRadialGradient_fy()
Predicate returning
true if this DefaultValues 's 'radialGradient_fy'
attribute is set. |
boolean |
isSetRadialGradient_fz()
Predicate returning
true if this DefaultValues 's 'radialGradient_fz'
attribute is set. |
boolean |
isSetRadialGradient_r()
Predicate returning
true if this DefaultValues 's 'radialGradient_r'
attribute is set. |
boolean |
isSetSpreadMethod()
Predicate returning
true if this DefaultValues 's 'spreadMethod'
attribute is set. |
boolean |
isSetStartHead()
Predicate returning
true if this DefaultValues 's 'startHead' attribute
is set. |
boolean |
isSetStroke()
Predicate returning
true if this DefaultValues 's 'stroke' attribute is
set. |
boolean |
isSetStrokeWidth()
Predicate returning
true if this DefaultValues 's 'strokeWidth'
attribute is set. |
boolean |
isSetTextAnchor()
Predicate returning
true if this DefaultValues 's 'textAnchor' attribute
is set. |
boolean |
isSetVTextAnchor()
Predicate returning
true if this DefaultValues 's 'vtextAnchor'
attribute is set. |
void |
renameSIdRefs(java.lang.String oldid,
java.lang.String newid)
Replaces all uses of a given
SIdRef type attribute value with another
value. |
int |
setBackgroundColor(java.lang.String backgroundColor)
Sets the value of the 'backgroundColor' attribute of this
DefaultValues . |
int |
setDefault_z(java.lang.String default_z)
Sets the value of the 'default_z' attribute of this
DefaultValues . |
int |
setEnableRotationalMapping(boolean enableRotationalMapping)
Sets the value of the 'enableRotationalMapping' attribute of this
DefaultValues . |
int |
setEndHead(java.lang.String endHead)
Sets the value of the 'endHead' attribute of this
DefaultValues . |
int |
setFill(java.lang.String fill)
Sets the value of the 'fill' attribute of this
DefaultValues . |
int |
setFillRule(int fillRule)
Sets the value of the 'fillRule' attribute of this
DefaultValues . |
int |
setFillRule(java.lang.String fillRule)
Sets the value of the 'fillRule' attribute of this
DefaultValues . |
int |
setFontFamily(java.lang.String fontFamily)
Sets the value of the 'fontFamily' attribute of this
DefaultValues . |
int |
setFontSize(java.lang.String fontSize)
Sets the value of the 'fontSize' attribute of this
DefaultValues . |
int |
setFontStyle(int fontStyle)
Sets the value of the 'fontStyle' attribute of this
DefaultValues . |
int |
setFontStyle(java.lang.String fontStyle)
Sets the value of the 'fontStyle' attribute of this
DefaultValues . |
int |
setFontWeight(int fontWeight)
Sets the value of the 'fontWeight' attribute of this
DefaultValues . |
int |
setFontWeight(java.lang.String fontWeight)
Sets the value of the 'fontWeight' attribute of this
DefaultValues . |
int |
setLinearGradient_x1(java.lang.String linearGradient_x1)
Sets the value of the 'linearGradient_x1' attribute of this
DefaultValues . |
int |
setLinearGradient_x2(java.lang.String linearGradient_x2)
Sets the value of the 'linearGradient_x2' attribute of this
DefaultValues . |
int |
setLinearGradient_y1(java.lang.String linearGradient_y1)
Sets the value of the 'linearGradient_y1' attribute of this
DefaultValues . |
int |
setLinearGradient_y2(java.lang.String linearGradient_y2)
Sets the value of the 'linearGradient_y2' attribute of this
DefaultValues . |
int |
setLinearGradient_z1(java.lang.String linearGradient_z1)
Sets the value of the 'linearGradient_z1' attribute of this
DefaultValues . |
int |
setLinearGradient_z2(java.lang.String linearGradient_z2)
Sets the value of the 'linearGradient_z2' attribute of this
DefaultValues . |
int |
setRadialGradient_cx(java.lang.String radialGradient_cx)
Sets the value of the 'radialGradient_cx' attribute of this
DefaultValues . |
int |
setRadialGradient_cy(java.lang.String radialGradient_cy)
Sets the value of the 'radialGradient_cy' attribute of this
DefaultValues . |
int |
setRadialGradient_cz(java.lang.String radialGradient_cz)
Sets the value of the 'radialGradient_cz' attribute of this
DefaultValues . |
int |
setRadialGradient_fx(java.lang.String radialGradient_fx)
Sets the value of the 'radialGradient_fx' attribute of this
DefaultValues . |
int |
setRadialGradient_fy(java.lang.String radialGradient_fy)
Sets the value of the 'radialGradient_fy' attribute of this
DefaultValues . |
int |
setRadialGradient_fz(java.lang.String radialGradient_fz)
Sets the value of the 'radialGradient_fz' attribute of this
DefaultValues . |
int |
setRadialGradient_r(java.lang.String radialGradient_r)
Sets the value of the 'radialGradient_r' attribute of this
DefaultValues . |
int |
setSpreadMethod(int spreadMethod)
Sets the value of the 'spreadMethod' attribute of this
DefaultValues . |
int |
setSpreadMethod(java.lang.String spreadMethod)
Sets the value of the 'spreadMethod' attribute of this
DefaultValues . |
int |
setStartHead(java.lang.String startHead)
Sets the value of the 'startHead' attribute of this
DefaultValues . |
int |
setStroke(java.lang.String stroke)
Sets the value of the 'stroke' attribute of this
DefaultValues . |
int |
setStrokeWidth(double strokeWidth)
Sets the value of the 'strokeWidth' attribute of this
DefaultValues . |
int |
setTextAnchor(int textAnchor)
Sets the value of the 'textAnchor' attribute of this
DefaultValues . |
int |
setTextAnchor(java.lang.String textAnchor)
Sets the value of the 'textAnchor' attribute of this
DefaultValues . |
int |
setVTextAnchor(int vtextAnchor)
Sets the value of the 'vtextAnchor' attribute of this
DefaultValues . |
int |
setVTextAnchor(java.lang.String vtextAnchor)
Sets the value of the 'vtextAnchor' attribute of this
DefaultValues . |
int |
unsetBackgroundColor()
Unsets the value of the 'backgroundColor' attribute of this
DefaultValues . |
int |
unsetDefault_z()
Unsets the value of the 'default_z' attribute of this
DefaultValues . |
int |
unsetEnableRotationalMapping()
Unsets the value of the 'enableRotationalMapping' attribute of this
DefaultValues . |
int |
unsetEndHead()
Unsets the value of the 'endHead' attribute of this
DefaultValues . |
int |
unsetFill()
Unsets the value of the 'fill' attribute of this
DefaultValues . |
int |
unsetFillRule()
Unsets the value of the 'fillRule' attribute of this
DefaultValues . |
int |
unsetFontFamily()
Unsets the value of the 'fontFamily' attribute of this
DefaultValues . |
int |
unsetFontSize()
Unsets the value of the 'fontSize' attribute of this
DefaultValues . |
int |
unsetFontStyle()
Unsets the value of the 'fontStyle' attribute of this
DefaultValues . |
int |
unsetFontWeight()
Unsets the value of the 'fontWeight' attribute of this
DefaultValues . |
int |
unsetLinearGradient_x1()
Unsets the value of the 'linearGradient_x1' attribute of this
DefaultValues . |
int |
unsetLinearGradient_x2()
Unsets the value of the 'linearGradient_x2' attribute of this
DefaultValues . |
int |
unsetLinearGradient_y1()
Unsets the value of the 'linearGradient_y1' attribute of this
DefaultValues . |
int |
unsetLinearGradient_y2()
Unsets the value of the 'linearGradient_y2' attribute of this
DefaultValues . |
int |
unsetLinearGradient_z1()
Unsets the value of the 'linearGradient_z1' attribute of this
DefaultValues . |
int |
unsetLinearGradient_z2()
Unsets the value of the 'linearGradient_z2' attribute of this
DefaultValues . |
int |
unsetRadialGradient_cx()
Unsets the value of the 'radialGradient_cx' attribute of this
DefaultValues . |
int |
unsetRadialGradient_cy()
Unsets the value of the 'radialGradient_cy' attribute of this
DefaultValues . |
int |
unsetRadialGradient_cz()
Unsets the value of the 'radialGradient_cz' attribute of this
DefaultValues . |
int |
unsetRadialGradient_fx()
Unsets the value of the 'radialGradient_fx' attribute of this
DefaultValues . |
int |
unsetRadialGradient_fy()
Unsets the value of the 'radialGradient_fy' attribute of this
DefaultValues . |
int |
unsetRadialGradient_fz()
Unsets the value of the 'radialGradient_fz' attribute of this
DefaultValues . |
int |
unsetRadialGradient_r()
Unsets the value of the 'radialGradient_r' attribute of this
DefaultValues . |
int |
unsetSpreadMethod()
Unsets the value of the 'spreadMethod' attribute of this
DefaultValues . |
int |
unsetStartHead()
Unsets the value of the 'startHead' attribute of this
DefaultValues . |
int |
unsetStroke()
Unsets the value of the 'stroke' attribute of this
DefaultValues . |
int |
unsetStrokeWidth()
Unsets the value of the 'strokeWidth' attribute of this
DefaultValues . |
int |
unsetTextAnchor()
Unsets the value of the 'textAnchor' attribute of this
DefaultValues . |
int |
unsetVTextAnchor()
Unsets the value of the 'vtextAnchor' attribute of this
DefaultValues . |
addCVTerm, addCVTerm, appendAnnotation, appendAnnotation, appendNotes, appendNotes, connectToChild, deleteDisabledPlugins, deleteDisabledPlugins, disablePackage, enablePackage, equals, getAncestorOfType, getAncestorOfType, getAnnotation, getAnnotationString, getColumn, getCVTerm, getCVTerms, getDisabledPlugin, getElementByMetaId, getElementBySId, 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, removeFromParentAndDelete, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, removeTopLevelAnnotationElement, renameMetaIdRefs, 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, unsetUserData
public DefaultValues(long level, long version, long pkgVersion)
DefaultValues
using the given SBML Level, Version and
&ldquorender&rdquo package version.
level
- a long integer, the SBML Level to assign to this
DefaultValues
.
version
- a long integer, the SBML Version to assign to this
DefaultValues
.
pkgVersion
- a long integer, the SBML Render Version to assign to
this DefaultValues
.
SBMLDocument
having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument
), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public DefaultValues(long level, long version)
DefaultValues
using the given SBML Level, Version and
&ldquorender&rdquo package version.
level
- a long integer, the SBML Level to assign to this
DefaultValues
.
version
- a long integer, the SBML Version to assign to this
DefaultValues
.
pkgVersion
- a long integer, the SBML Render Version to assign to
this DefaultValues
.
SBMLDocument
having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument
), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public DefaultValues(long level)
DefaultValues
using the given SBML Level, Version and
&ldquorender&rdquo package version.
level
- a long integer, the SBML Level to assign to this
DefaultValues
.
version
- a long integer, the SBML Version to assign to this
DefaultValues
.
pkgVersion
- a long integer, the SBML Render Version to assign to
this DefaultValues
.
SBMLDocument
having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument
), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public DefaultValues()
DefaultValues
using the given SBML Level, Version and
&ldquorender&rdquo package version.
level
- a long integer, the SBML Level to assign to this
DefaultValues
.
version
- a long integer, the SBML Version to assign to this
DefaultValues
.
pkgVersion
- a long integer, the SBML Render Version to assign to
this DefaultValues
.
SBMLDocument
having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument
), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public DefaultValues(RenderPkgNamespaces renderns)
DefaultValues
using the given RenderPkgNamespaces
object.
The package namespaces object used in this constructor is derived from a
SBMLNamespaces
object, which encapsulates SBML Level/Version/namespaces
information. It is used to communicate the SBML Level, Version, and
package version and name information used in addition to SBML Level 3 Core. A
common approach to using libSBML's SBMLNamespaces
facilities is to create an
package namespace object somewhere in a program once, then hand that object
as needed to object constructors of that package that accept it as and
argument, such as this one.
renderns
- the RenderPkgNamespaces
object.
SBMLDocument
having a different
combination of SBML Level, Version and XML namespaces than the object
itself will result in an error at the time a caller attempts to make the
addition. A parent object must have compatible Level, Version and XML
namespaces. (Strictly speaking, a parent may also have more XML
namespaces than a child, but the reverse is not permitted.) The
restriction is necessary to ensure that an SBML model has a consistent
overall structure. This requires callers to manage their objects
carefully, but the benefit is increased flexibility in how models can be
created by permitting callers to create objects bottom-up if desired. In
situations where objects are not yet attached to parents (e.g.,
SBMLDocument
), knowledge of the intented SBML Level and Version help
libSBML determine such things as whether it is valid to assign a
particular value to an attribute. For packages, this means that the
parent object to which this package element is being added must have
been created with the package namespace, or that the package namespace
was added to it, even if that parent is not a package object itself.public DefaultValues(DefaultValues orig)
DefaultValues
.
orig
- the DefaultValues
instance to copy.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 DefaultValues.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 DefaultValues.delete()
themselves.
public SBase cloneObject()
DefaultValues
object.
cloneObject
 in class SBase
DefaultValues
object.public java.lang.String getBackgroundColor()
DefaultValues
.
DefaultValues
as a string.public int getSpreadMethod()
DefaultValues
.
DefaultValues
as
a GradientBase.SPREADMETHOD.public java.lang.String getSpreadMethodAsString()
DefaultValues
.
DefaultValues
as
a string.public RelAbsVector getLinearGradient_x1()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getLinearGradient_y1()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getLinearGradient_z1()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getLinearGradient_x2()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getLinearGradient_y2()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getLinearGradient_z2()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_cx()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_cy()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_cz()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_r()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_fx()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_fy()
DefaultValues
.
DefaultValues
as a string.public RelAbsVector getRadialGradient_fz()
DefaultValues
.
DefaultValues
as a string.public java.lang.String getFill()
DefaultValues
.
DefaultValues
as a
string.public int getFillRule()
DefaultValues
.
DefaultValues
as a
GraphicalPrimitive2D.FILL_RULE.public java.lang.String getFillRuleAsString()
DefaultValues
.
DefaultValues
as a
string.public RelAbsVector getDefault_z()
DefaultValues
.
DefaultValues
as a
string.public java.lang.String getStroke()
DefaultValues
.
DefaultValues
as a
string.public double getStrokeWidth()
DefaultValues
.
DefaultValues
as
a string.public java.lang.String getFontFamily()
DefaultValues
.
DefaultValues
as a
string.public RelAbsVector getFontSize()
DefaultValues
.
DefaultValues
as a
string.public int getFontWeight()
DefaultValues
.
DefaultValues
as a
Text.FONT_WEIGHT.public java.lang.String getFontWeightAsString()
DefaultValues
.
DefaultValues
as a
string.public int getFontStyle()
DefaultValues
.
DefaultValues
as a
Text.FONT_STYLE.public java.lang.String getFontStyleAsString()
DefaultValues
.
DefaultValues
as a
string.public int getTextAnchor()
DefaultValues
.
DefaultValues
as a
Text.TEXT_ANCHOR.public java.lang.String getTextAnchorAsString()
DefaultValues
.
DefaultValues
as a
string.public int getVTextAnchor()
DefaultValues
.
DefaultValues
as
a Text.TEXT_ANCHOR.public java.lang.String getVTextAnchorAsString()
DefaultValues
.
DefaultValues
as
a string.public java.lang.String getStartHead()
DefaultValues
.
DefaultValues
as a
string.public java.lang.String getEndHead()
DefaultValues
.
DefaultValues
as a
string.public boolean getEnableRotationalMapping()
DefaultValues
.
DefaultValues
as a boolean.public boolean isSetBackgroundColor()
true
if this DefaultValues
's 'backgroundColor'
attribute is set.
true
if this DefaultValues
's 'backgroundColor' attribute has
been set, otherwise false
is returned.public boolean isSetSpreadMethod()
true
if this DefaultValues
's 'spreadMethod'
attribute is set.
true
if this DefaultValues
's 'spreadMethod' attribute has been
set, otherwise false
is returned.public boolean isSetLinearGradient_x1()
true
if this DefaultValues
's 'linearGradient_x1'
attribute is set.
true
if this DefaultValues
's 'linearGradient_x1' attribute has
been set, otherwise false
is returned.public boolean isSetLinearGradient_y1()
true
if this DefaultValues
's 'linearGradient_y1'
attribute is set.
true
if this DefaultValues
's 'linearGradient_y1' attribute has
been set, otherwise false
is returned.public boolean isSetLinearGradient_z1()
true
if this DefaultValues
's 'linearGradient_z1'
attribute is set.
true
if this DefaultValues
's 'linearGradient_z1' attribute has
been set, otherwise false
is returned.public boolean isSetLinearGradient_x2()
true
if this DefaultValues
's 'linearGradient_x2'
attribute is set.
true
if this DefaultValues
's 'linearGradient_x2' attribute has
been set, otherwise false
is returned.public boolean isSetLinearGradient_y2()
true
if this DefaultValues
's 'linearGradient_y2'
attribute is set.
true
if this DefaultValues
's 'linearGradient_y2' attribute has
been set, otherwise false
is returned.public boolean isSetLinearGradient_z2()
true
if this DefaultValues
's 'linearGradient_z2'
attribute is set.
true
if this DefaultValues
's 'linearGradient_z2' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_cx()
true
if this DefaultValues
's 'radialGradient_cx'
attribute is set.
true
if this DefaultValues
's 'radialGradient_cx' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_cy()
true
if this DefaultValues
's 'radialGradient_cy'
attribute is set.
true
if this DefaultValues
's 'radialGradient_cy' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_cz()
true
if this DefaultValues
's 'radialGradient_cz'
attribute is set.
true
if this DefaultValues
's 'radialGradient_cz' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_r()
true
if this DefaultValues
's 'radialGradient_r'
attribute is set.
true
if this DefaultValues
's 'radialGradient_r' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_fx()
true
if this DefaultValues
's 'radialGradient_fx'
attribute is set.
true
if this DefaultValues
's 'radialGradient_fx' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_fy()
true
if this DefaultValues
's 'radialGradient_fy'
attribute is set.
true
if this DefaultValues
's 'radialGradient_fy' attribute has
been set, otherwise false
is returned.public boolean isSetRadialGradient_fz()
true
if this DefaultValues
's 'radialGradient_fz'
attribute is set.
true
if this DefaultValues
's 'radialGradient_fz' attribute has
been set, otherwise false
is returned.public boolean isSetFill()
true
if this DefaultValues
's 'fill' attribute is
set.
true
if this DefaultValues
's 'fill' attribute has been set,
otherwise false
is returned.public boolean isSetFillRule()
true
if this DefaultValues
's 'fillRule' attribute
is set.
true
if this DefaultValues
's 'fillRule' attribute has been set,
otherwise false
is returned.public boolean isSetDefault_z()
true
if this DefaultValues
's 'default_z' attribute
is set.
true
if this DefaultValues
's 'default_z' attribute has been
set, otherwise false
is returned.public boolean isSetStroke()
true
if this DefaultValues
's 'stroke' attribute is
set.
true
if this DefaultValues
's 'stroke' attribute has been set,
otherwise false
is returned.public boolean isSetStrokeWidth()
true
if this DefaultValues
's 'strokeWidth'
attribute is set.
true
if this DefaultValues
's 'strokeWidth' attribute has been
set, otherwise false
is returned.public boolean isSetFontFamily()
true
if this DefaultValues
's 'fontFamily' attribute
is set.
true
if this DefaultValues
's 'fontFamily' attribute has been
set, otherwise false
is returned.public boolean isSetFontSize()
true
if this DefaultValues
's 'fontSize' attribute
is set.
true
if this DefaultValues
's 'fontSize' attribute has been set,
otherwise false
is returned.public boolean isSetFontWeight()
true
if this DefaultValues
's 'fontWeight' attribute
is set.
true
if this DefaultValues
's 'fontWeight' attribute has been
set, otherwise false
is returned.
public boolean isSetFontStyle()
true
if this DefaultValues
's 'fontStyle' attribute
is set.
true
if this DefaultValues
's 'fontStyle' attribute has been
set, otherwise false
is returned.public boolean isSetTextAnchor()
true
if this DefaultValues
's 'textAnchor' attribute
is set.
true
if this DefaultValues
's 'textAnchor' attribute has been
set, otherwise false
is returned.public boolean isSetVTextAnchor()
true
if this DefaultValues
's 'vtextAnchor'
attribute is set.
true
if this DefaultValues
's 'vtextAnchor' attribute has been
set, otherwise false
is returned.public boolean isSetStartHead()
true
if this DefaultValues
's 'startHead' attribute
is set.
true
if this DefaultValues
's 'startHead' attribute has been
set, otherwise false
is returned.public boolean isSetEndHead()
true
if this DefaultValues
's 'endHead' attribute is
set.
true
if this DefaultValues
's 'endHead' attribute has been set,
otherwise false
is returned.public boolean isSetEnableRotationalMapping()
true
if this DefaultValues
's
'enableRotationalMapping' attribute is set.
true
if this DefaultValues
's 'enableRotationalMapping'
attribute has been set, otherwise false
is returned.public int setBackgroundColor(java.lang.String backgroundColor)
DefaultValues
.
backgroundColor
- String& value of the 'backgroundColor'
attribute to be set.
Calling this function with backgroundColor
= null
or an empty string
is equivalent to calling unsetBackgroundColor().
public int setSpreadMethod(int spreadMethod)
DefaultValues
.
spreadMethod
- int value
of the 'spreadMethod' attribute to be set.
public int setSpreadMethod(java.lang.String spreadMethod)
DefaultValues
.
spreadMethod
- String& of the 'spreadMethod' attribute to be
set.
public int setLinearGradient_x1(java.lang.String linearGradient_x1)
DefaultValues
.
linearGradient_x1
- String& value of the 'linearGradient_x1'
attribute to be set.
Calling this function with linearGradient_x1
= null
or an empty
string is equivalent to calling unsetLinearGradient_x1().
public int setLinearGradient_y1(java.lang.String linearGradient_y1)
DefaultValues
.
linearGradient_y1
- String& value of the 'linearGradient_y1'
attribute to be set.
Calling this function with linearGradient_y1
= null
or an empty
string is equivalent to calling unsetLinearGradient_y1().
public int setLinearGradient_z1(java.lang.String linearGradient_z1)
DefaultValues
.
linearGradient_z1
- String& value of the 'linearGradient_z1'
attribute to be set.
Calling this function with linearGradient_z1
= null
or an empty
string is equivalent to calling unsetLinearGradient_z1().
public int setLinearGradient_x2(java.lang.String linearGradient_x2)
DefaultValues
.
linearGradient_x2
- String& value of the 'linearGradient_x2'
attribute to be set.
Calling this function with linearGradient_x2
= null
or an empty
string is equivalent to calling unsetLinearGradient_x2().
public int setLinearGradient_y2(java.lang.String linearGradient_y2)
DefaultValues
.
linearGradient_y2
- String& value of the 'linearGradient_y2'
attribute to be set.
Calling this function with linearGradient_y2
= null
or an empty
string is equivalent to calling unsetLinearGradient_y2().
public int setLinearGradient_z2(java.lang.String linearGradient_z2)
DefaultValues
.
linearGradient_z2
- String& value of the 'linearGradient_z2'
attribute to be set.
Calling this function with linearGradient_z2
= null
or an empty
string is equivalent to calling unsetLinearGradient_z2().
public int setRadialGradient_cx(java.lang.String radialGradient_cx)
DefaultValues
.
radialGradient_cx
- String& value of the 'radialGradient_cx'
attribute to be set.
Calling this function with radialGradient_cx
= null
or an empty
string is equivalent to calling unsetRadialGradient_cx().
public int setRadialGradient_cy(java.lang.String radialGradient_cy)
DefaultValues
.
radialGradient_cy
- String& value of the 'radialGradient_cy'
attribute to be set.
Calling this function with radialGradient_cy
= null
or an empty
string is equivalent to calling unsetRadialGradient_cy().
public int setRadialGradient_cz(java.lang.String radialGradient_cz)
DefaultValues
.
radialGradient_cz
- String& value of the 'radialGradient_cz'
attribute to be set.
Calling this function with radialGradient_cz
= null
or an empty
string is equivalent to calling unsetRadialGradient_cz().
public int setRadialGradient_r(java.lang.String radialGradient_r)
DefaultValues
.
radialGradient_r
- String& value of the 'radialGradient_r'
attribute to be set.
Calling this function with radialGradient_r
= null
or an empty
string is equivalent to calling unsetRadialGradient_r().
public int setRadialGradient_fx(java.lang.String radialGradient_fx)
DefaultValues
.
radialGradient_fx
- String& value of the 'radialGradient_fx'
attribute to be set.
Calling this function with radialGradient_fx
= null
or an empty
string is equivalent to calling unsetRadialGradient_fx().
public int setRadialGradient_fy(java.lang.String radialGradient_fy)
DefaultValues
.
radialGradient_fy
- String& value of the 'radialGradient_fy'
attribute to be set.
Calling this function with radialGradient_fy
= null
or an empty
string is equivalent to calling unsetRadialGradient_fy().
public int setRadialGradient_fz(java.lang.String radialGradient_fz)
DefaultValues
.
radialGradient_fz
- String& value of the 'radialGradient_fz'
attribute to be set.
Calling this function with radialGradient_fz
= null
or an empty
string is equivalent to calling unsetRadialGradient_fz().
public int setFill(java.lang.String fill)
DefaultValues
.
fill
- String& value of the 'fill' attribute to be set.
Calling this function with fill
= null
or an empty string is
equivalent to calling unsetFill().
public int setFillRule(int fillRule)
DefaultValues
.
fillRule
- int value of the
'fillRule' attribute to be set.
public int setFillRule(java.lang.String fillRule)
DefaultValues
.
fillRule
- String& of the 'fillRule' attribute to be set.
public int setDefault_z(java.lang.String default_z)
DefaultValues
.
default_z
- String& value of the 'default_z' attribute to be
set.
Calling this function with default_z
= null
or an empty string is
equivalent to calling unsetDefault_z().
public int setStroke(java.lang.String stroke)
DefaultValues
.
stroke
- String& value of the 'stroke' attribute to be set.
Calling this function with stroke
= null
or an empty string is
equivalent to calling unsetStroke().
public int setStrokeWidth(double strokeWidth)
DefaultValues
.
strokeWidth
- String& value of the 'strokeWidth' attribute to be
set.
Calling this function with strokeWidth
= null
or an empty string is
equivalent to calling unsetStrokeWidth().
public int setFontFamily(java.lang.String fontFamily)
DefaultValues
.
fontFamily
- String& value of the 'fontFamily' attribute to be
set.
Calling this function with fontFamily
= null
or an empty string is
equivalent to calling unsetFontFamily().
public int setFontSize(java.lang.String fontSize)
DefaultValues
.
fontSize
- String& value of the 'fontSize' attribute to be set.
Calling this function with fontSize
= null
or an empty string is
equivalent to calling unsetFontSize().
public int setFontWeight(int fontWeight)
DefaultValues
.
fontWeight
- int value of the
'fontWeight' attribute to be set.
public int setFontWeight(java.lang.String fontWeight)
DefaultValues
.
fontWeight
- String& of the 'fontWeight' attribute to be set.
public int setFontStyle(int fontStyle)
DefaultValues
.
fontStyle
- int value of the
'fontStyle' attribute to be set.
public int setFontStyle(java.lang.String fontStyle)
DefaultValues
.
fontStyle
- String& of the 'fontStyle' attribute to be set.
public int setTextAnchor(int textAnchor)
DefaultValues
.
textAnchor
- int value of the
'textAnchor' attribute to be set.
public int setTextAnchor(java.lang.String textAnchor)
DefaultValues
.
textAnchor
- String& of the 'textAnchor' attribute to be set.
public int setVTextAnchor(int vtextAnchor)
DefaultValues
.
vtextAnchor
- int value of the
'vtextAnchor' attribute to be set.
public int setVTextAnchor(java.lang.String vtextAnchor)
DefaultValues
.
vtextAnchor
- String& of the 'vtextAnchor' attribute to be set.
public int setStartHead(java.lang.String startHead)
DefaultValues
.
startHead
- String& value of the 'startHead' attribute to be
set.
public int setEndHead(java.lang.String endHead)
DefaultValues
.
endHead
- String& value of the 'endHead' attribute to be set.
public int setEnableRotationalMapping(boolean enableRotationalMapping)
DefaultValues
.
enableRotationalMapping
- boolean value of the 'enableRotationalMapping'
attribute to be set.
public int unsetBackgroundColor()
DefaultValues
.
public int unsetSpreadMethod()
DefaultValues
.
public int unsetLinearGradient_x1()
DefaultValues
.
public int unsetLinearGradient_y1()
DefaultValues
.
public int unsetLinearGradient_z1()
DefaultValues
.
public int unsetLinearGradient_x2()
DefaultValues
.
public int unsetLinearGradient_y2()
DefaultValues
.
public int unsetLinearGradient_z2()
DefaultValues
.
public int unsetRadialGradient_cx()
DefaultValues
.
public int unsetRadialGradient_cy()
DefaultValues
.
public int unsetRadialGradient_cz()
DefaultValues
.
public int unsetRadialGradient_r()
DefaultValues
.
public int unsetRadialGradient_fx()
DefaultValues
.
public int unsetRadialGradient_fy()
DefaultValues
.
public int unsetRadialGradient_fz()
DefaultValues
.
public int unsetFill()
DefaultValues
.
public int unsetFillRule()
DefaultValues
.
public int unsetDefault_z()
DefaultValues
.
public int unsetStroke()
DefaultValues
.
public int unsetStrokeWidth()
DefaultValues
.
public int unsetFontFamily()
DefaultValues
.
public int unsetFontSize()
DefaultValues
.
public int unsetFontWeight()
DefaultValues
.
public int unsetFontStyle()
DefaultValues
.
public int unsetTextAnchor()
DefaultValues
.
public int unsetVTextAnchor()
DefaultValues
.
public int unsetStartHead()
DefaultValues
.
public int unsetEndHead()
DefaultValues
.
public int unsetEnableRotationalMapping()
DefaultValues
.
public void renameSIdRefs(java.lang.String oldid, java.lang.String newid)
Replaces all uses of a given SIdRef
type attribute value with another
value.
In SBML, object identifiers are of a data type called SId
.
In SBML Level 3, an explicit data type called SIdRef
was
introduced for attribute values that refer to SId
values in
previous Levels of SBML, this data type did not exist and attributes were
simply described to as 'referring to an identifier', but the effective
data type was the same as SIdRef
in Level 3. These and
other methods of libSBML refer to the type SIdRef
for all
Levels of SBML, even if the corresponding SBML specification did not
explicitly name the data type.
This method works by looking at all attributes and (if appropriate)
mathematical formulas in MathML content, comparing the referenced
identifiers to the value of oldid
. If any matches are found, the
matching values are replaced with newid
. The method does not
descend into child elements.
renameSIdRefs
 in class SBase
oldid
- the old identifier.newid
- the new identifier.public java.lang.String getElementName()
DefaultValues
object.
For DefaultValues
, the XML element name is always 'defaultValues'.
getElementName
 in class SBase
'defaultValues'.
public int getTypeCode()
DefaultValues
object.
LibSBML attaches an identifying code to every kind of SBML object. These
are integer constants known as SBML type codes. The names of all
the codes begin with the characters SBML_
.
In the Java language interface for libSBML, the
type codes are defined as static integer constants in the interface class
libsbmlConstants
. Note that different Level 3
package plug-ins may use overlapping type codes to identify the package
to which a given object belongs, call the
method on the object.
SBase.getPackageName()
getTypeCode
 in class SBase
SBML_RENDER_DEFAULTS
.
DefaultValues.getElementName()
,
SBase.getPackageName()
public boolean hasRequiredAttributes()
true
if all the required attributes for this
DefaultValues
object have been set.
hasRequiredAttributes
 in class SBase
true
to indicate that all the required attributes of this
DefaultValues
have been set, otherwise false
is returned.