public class GradientBase extends AbstractNamedSBase implements UniqueNamedSBase
| Modifier and Type | Class and Description |
|---|---|
static class |
GradientBase.Spread
The type GradientSpreadMethod is being used by GradientBase elements to decide how gradients propagate over
the whole element they are applied to.
|
| Modifier and Type | Field and Description |
|---|---|
protected ListOf<GradientStop> |
listOfGradientStops |
protected GradientBase.Spread |
spreadMethod |
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
GradientBase()
Creates an GradientBase instance
|
GradientBase(GradientBase obj)
Clone constructor
|
GradientBase(String id,
GradientStop stop)
Creates a GradientBase instance with an id.
|
GradientBase(String id,
GradientStop stop,
int level,
int version)
Creates a GradientBase instance with an id, name, level, and version.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addGradientStop(GradientStop field) |
GradientBase |
clone() |
GradientStop |
createGradientStop(double offset,
String stopColor)
create a new GradientStop element and adds it to the ListOfGradientStops list
|
boolean |
equals(Object obj) |
boolean |
getAllowsChildren() |
TreeNode |
getChildAt(int index) |
int |
getChildCount() |
ListOf<GradientStop> |
getListOfGradientStops() |
GradientBase.Spread |
getSpreadMethod() |
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetListOfGradientStops() |
boolean |
isSetSpreadMethod() |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
boolean |
removeGradientStop(GradientStop field) |
void |
removeGradientStop(int i) |
void |
setListOfGradientStops(ListOf<GradientStop> listOfGradientStops) |
void |
setSpreadMethod(GradientBase.Spread spreadMethod)
Set the value of spreadMethod
|
boolean |
unsetListOfGradientStops() |
boolean |
unsetSpreadMethod()
Unsets the variable spreadMethod
|
Map<String,String> |
writeXMLAttributes() |
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkIdentifier, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllDeclaredNamespaces, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getFirstElementIndex, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, toString, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isCloningInProgress, isInvalidSBMLAllowed, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeDeclaredNamespaceByNamespace, removeDeclaredNamespaceByPrefix, removeTreeNodeChangeListener, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetprotected GradientBase.Spread spreadMethod
protected ListOf<GradientStop> listOfGradientStops
public GradientBase()
public GradientBase(String id, GradientStop stop)
id - stop - public GradientBase(String id, GradientStop stop, int level, int version)
id - stop - level - version - public GradientBase(GradientBase obj)
obj - public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodegetAllowsChildren in class AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class AbstractSBasepublic TreeNode getChildAt(int index)
getChildAt in interface TreeNodegetChildAt in class AbstractSBasepublic GradientBase clone()
clone in interface SBaseclone in class AbstractSBasepublic void initDefaults()
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean equals(Object obj)
equals in interface SBaseequals in class AbstractSBasepublic GradientBase.Spread getSpreadMethod()
public boolean isSetSpreadMethod()
public void setSpreadMethod(GradientBase.Spread spreadMethod)
spreadMethod - public boolean unsetSpreadMethod()
true, if spreadMethod was set before,
otherwise falsepublic boolean isSetListOfGradientStops()
true, if listOfGradientStops contains at least one element,
otherwise falsepublic ListOf<GradientStop> getListOfGradientStops()
public void setListOfGradientStops(ListOf<GradientStop> listOfGradientStops)
listOfGradientStops - public boolean unsetListOfGradientStops()
true, if listOfGradientStops contained at least one element,
otherwise falsepublic boolean addGradientStop(GradientStop field)
field - public boolean removeGradientStop(GradientStop field)
field - public void removeGradientStop(int i)
i - public GradientStop createGradientStop(double offset, String stopColor)
offset - stopColor - public boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBaseCopyright © 2009–2018. All rights reserved.