Package com.storedobject.chart
Class Toolbox.Download
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
com.storedobject.chart.ToolboxButton
com.storedobject.chart.Toolbox.Download
- All Implemented Interfaces:
ComponentPart,ComponentProperty,VisibleProperty
- Enclosing class:
Toolbox
Download tool button. Clicking this will download the displayed charts as an image.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.intGet image resolution.getTag()Get the tag for this tool button.voidsetResolution(int resolution) Set image resolution.Methods inherited from class com.storedobject.chart.ToolboxButton
encodeCaptionJSON, getCaption, setCaptionMethods inherited from class com.storedobject.chart.VisiblePart
isVisible, setVisible, validateMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndexMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
Download
public Download()Constructor.
-
-
Method Details
-
getTag
-
getResolution
public int getResolution()Get image resolution.- Returns:
- Resolution
-
setResolution
public void setResolution(int resolution) Set image resolution. Resolution is a number greater than zero. Higher the number, higher the resolution.- Parameters:
resolution- Image resolution.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classToolboxButton- Parameters:
sb- Encoded JSON string to be appended to this.
-