public class GradientBase
extends org.sbml.jsbml.AbstractNamedSBase
implements org.sbml.jsbml.UniqueNamedSBase
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GradientBase.Spread |
| Modifier and Type | Field and Description |
|---|---|
protected org.sbml.jsbml.ListOf<GradientStop> |
listOfGradientStops |
protected GradientBase.Spread |
spreadMethod |
| 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() |
org.sbml.jsbml.SBase |
getChildAt(int childIndex) |
int |
getChildCount() |
org.sbml.jsbml.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(org.sbml.jsbml.ListOf<GradientStop> listOfGradientStops) |
void |
setSpreadMethod(GradientBase.Spread spreadMethod)
Set the value of spreadMethod
|
String |
toString() |
boolean |
unsetListOfGradientStops() |
boolean |
unsetSpreadMethod()
Unsets the variable spreadMethod
|
Map<String,String> |
writeXMLAttributes() |
getId, getName, isSetId, isSetName, isValidId, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementName, getExtension, getExtensionCount, getExtensionPackages, getHistory, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, 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, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, 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, 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, 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 org.sbml.jsbml.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 org.sbml.jsbml.AbstractSBasepublic int getChildCount()
getChildCount in interface TreeNodegetChildCount in class org.sbml.jsbml.AbstractSBasepublic org.sbml.jsbml.SBase getChildAt(int childIndex)
getChildAt in interface TreeNodegetChildAt in class org.sbml.jsbml.AbstractSBasepublic GradientBase clone()
clone in interface org.sbml.jsbml.SBaseclone in class org.sbml.jsbml.AbstractSBasepublic void initDefaults()
public int hashCode()
hashCode in interface org.sbml.jsbml.SBasehashCode in class org.sbml.jsbml.AbstractNamedSBasepublic boolean equals(Object obj)
equals in interface org.sbml.jsbml.SBaseequals in class org.sbml.jsbml.AbstractNamedSBasepublic GradientBase.Spread getSpreadMethod()
public boolean isSetSpreadMethod()
public void setSpreadMethod(GradientBase.Spread spreadMethod)
spreadMethod - public boolean unsetSpreadMethod()
true, if spreadMethod was set before,
otherwise falsepublic String toString()
toString in class org.sbml.jsbml.AbstractNamedSBasepublic boolean isSetListOfGradientStops()
true, if listOfGradientStops contains at least one element,
otherwise falsepublic org.sbml.jsbml.ListOf<GradientStop> getListOfGradientStops()
public void setListOfGradientStops(org.sbml.jsbml.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 org.sbml.jsbml.NamedSBasepublic Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface org.sbml.jsbml.SBasewriteXMLAttributes in class org.sbml.jsbml.AbstractNamedSBaseCopyright © 2009–2016. All rights reserved.