public abstract class JSPlotterAttribute extends WebContent implements WebExportable
Red (cxh) |
Red (cxh) |
Variable.CircularDependencyError, Variable.VariableScope
NamedObj.ContainedObjectsIterator
Settable.Visibility
Modifier and Type | Field and Description |
---|---|
Parameter |
autoResize
Parameter specifying if the figure should be auto-resized based on the
window size.
|
StringParameter |
customContent
Parameter specifying text to be inserted into dygraph constructor call.
|
Parameter |
dataConnectWidth
Parameter specifying the width of the stroke connecting data points
This is an int that defaults to 2.
|
StringParameter |
dataJSON
Parameter giving the data traces in JSON format to be plot.
|
Parameter |
dataMarkerRadius
Parameter specifying the radius of markers for data points.
|
Parameter |
drawHorizontalGridLine
Parameter specifying if the horizontal grid line should be drawn.
|
Parameter |
drawVerticalGridLine
Parameter specifying if the vertical grid line should be drawn.
|
Parameter |
enableDataMarker
Parameter specifying if markers should be drawn for data points.
|
Parameter |
enableEventsMarker
Parameter specifying if markers should be drawn for event points.
|
Parameter |
enableLegend
Parameter specifying if the legend should be shown on the figure.
|
Parameter |
eventsConnectWidth
Parameter specifying the width of the stroke connecting event points
This is an int that defaults to 0.
|
StringParameter |
eventsJSON
Parameter giving the event traces in JSON format to be plot.
|
Parameter |
eventsMarkerRadius
Parameter specifying the radius of markers for event points.
|
Parameter |
graphHeight
Parameter specifying the height of the figure.
|
Parameter |
graphWidth
Parameter specifying the width of the figure.
|
StringParameter |
horizontalAlign
Parameter specifying the horizontal position of the legend on the figure.
|
LinkTarget |
linkTarget
Parameter specifying the target for the link.
|
StringParameter |
outputDataFile
Parameter specifying the name of the file to store the data and event traces.
|
StringParameter |
outputHTMLFile
Parameter specifying the name of the generated HTML file.
|
Parameter |
saveDataToFile
Parameter specifying if the data and event traces should be saved in a
separated file.
|
StringParameter |
verticalAlign
Parameter specifying the vertical position of the legend on the figure.
|
StringParameter |
xAxisMode
Parameter specifying how to parse the X axis value.
|
StringParameter |
xAxisTitle
Parameter specifying the title of the X axis.
|
StringParameter |
yAxisMode
Parameter specifying how to parse the Y axis value.
|
StringParameter |
yAxisTitle
Parameter specifying the title of the Y axis.
|
_icon, displayText, height, width
_currentExpression, _needsEvaluation, _parserScope, _parseTreeValid, _valueListeners
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
EXPERT, FULL, NONE, NOT_EDITABLE
Constructor and Description |
---|
JSPlotterAttribute(NamedObj container,
java.lang.String name)
Create an instance for each parameter.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_provideAttributes(WebExporter exporter)
Provide content to the specified web exporter to be
included in a web page for the container of this object.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getBasicConfig()
Get the parameter values from the GUI input.
|
java.lang.String |
getBodyContent()
Get the body content.
|
java.lang.String |
getHeaderContent()
Get the head content.
|
java.lang.String |
getHTMLPageContent()
Get the content of the whole HTML page.
|
java.lang.String |
getMimeType()
BasicJSPlotter is of type text/html.
|
void |
insertBodyContent(java.lang.String content)
Insert a string to the body with auto-indent.
|
void |
insertHeaderContent(boolean isJavaScript,
boolean autoIndent,
java.lang.String content)
Insert a string to the header with auto-indent.
|
boolean |
isOverwriteable()
Return true, since new content should overwrite old.
|
_provideElements, attributeChanged, clone, provideContent
stringValue
addChoice, exportMoML, getChoices, removeAllChoices, removeChoice
_description, _evaluate, _notifyValueListeners, _parseIfNecessary, _propagate, _propagateToValueListeners, _propagateValue, _setToken, _setTokenAndNotify, addValueListener, getDeclaredType, getExpression, getFreeIdentifiers, getParserScope, getScope, getScope, getToken, getType, getTypeTerm, getValueAsString, getVariable, getVisibility, invalidate, isKnown, isLazy, isStringMode, isTypeAcceptable, removeValueListener, reset, setContainer, setExpression, setLazy, setName, setParseTreeEvaluator, setStringMode, setToken, setToken, setTypeAtLeast, setTypeAtLeast, setTypeAtMost, setTypeEquals, setTypeSameAs, setUnknown, setVisibility, stringRepresentation, toString, typeConstraintList, typeConstraints, validate, valueChanged
getDefaultExpression
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
provideContent
description, getContainer, getDisplayName, getFullName, getName, getName, setName
getDisplayName
public Parameter autoResize
public StringParameter customContent
public Parameter dataConnectWidth
public StringParameter dataJSON
public Parameter drawHorizontalGridLine
public Parameter dataMarkerRadius
public Parameter drawVerticalGridLine
public Parameter enableDataMarker
public Parameter enableEventsMarker
public Parameter enableLegend
public Parameter eventsConnectWidth
public Parameter eventsMarkerRadius
public StringParameter eventsJSON
public Parameter graphWidth
public Parameter graphHeight
public StringParameter horizontalAlign
public LinkTarget linkTarget
public StringParameter outputDataFile
public StringParameter outputHTMLFile
public Parameter saveDataToFile
public StringParameter verticalAlign
public StringParameter xAxisMode
public StringParameter xAxisTitle
public StringParameter yAxisMode
public StringParameter yAxisTitle
public JSPlotterAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name.IllegalActionException
- If the superclass throws it.NameDuplicationException
- If the superclass throws it.public java.lang.String getMimeType()
getMimeType
in interface WebExportable
public boolean isOverwriteable()
isOverwriteable
in interface WebExportable
public java.util.HashMap<java.lang.String,java.lang.String> getBasicConfig() throws IllegalActionException
IllegalActionException
public java.lang.String getBodyContent()
public java.lang.String getHeaderContent()
public java.lang.String getHTMLPageContent()
public void insertBodyContent(java.lang.String content)
content
- The content to be insertedpublic void insertHeaderContent(boolean isJavaScript, boolean autoIndent, java.lang.String content)
isJavaScript
- Whether the inserted content is JavaScript codeautoIndent
- Whether the content should be auto-indentedcontent
- the content to be insertedprotected void _provideAttributes(WebExporter exporter) throws IllegalActionException
_provideAttributes
in class WebContent
exporter
- The web exporter to write content toIllegalActionException
- If evaluating the value
of this parameter fails, or creating a web attribute fails.