Package com.storedobject.ui
Class ChartImage
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Shape
com.storedobject.chart.Image
com.storedobject.ui.ChartImage
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Shape
Shape.Point, Shape.Style
-
Constructor Summary
ConstructorDescriptionChartImage
(SVG svg) ChartImage
(Id streamDataId) ChartImage
(MediaFile mediaFile) ChartImage
(Signature signature) ChartImage
(StreamData streamData) ChartImage
(com.vaadin.flow.server.AbstractStreamResource resource) ChartImage
(String imageURL) -
Method Summary
Modifier and TypeMethodDescriptionstatic ChartImage
createFromMedia
(String name) Create a chart image from the media file.void
setImageURL
(MediaFile mediaFile) void
setImageURL
(Signature signature) void
setImageURL
(com.vaadin.flow.server.AbstractStreamResource resource) void
setImageURL
(String imageURL) Set the image URL.Methods inherited from class com.storedobject.chart.Image
encodeJSON, getHeight, getImageURL, getType, getWidth, setHeight, setStyle, setWidth
Methods inherited from class com.storedobject.chart.Shape
encode, encodePoint, encodePoint, encodeShape, getPosition, getStyle, hide, isDraggable, setDraggable, setPosition, setPosition, setPosition, show, validate
Methods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerial
-
Constructor Details
-
Method Details
-
createFromMedia
Create a chart image from the media file.- Parameters:
name
- Name of the media file- Returns:
- Image if exists.
-
setImageURL
Description copied from class:Image
Set the image URL.- Overrides:
setImageURL
in classImage
- Parameters:
imageURL
- Image URL to set.
-
setImageURL
public void setImageURL(com.vaadin.flow.server.AbstractStreamResource resource) -
setImageURL
-
setImageURL
-