Package io.jmix.charts.model.trendline
Class Image
java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.trendline.Image
- All Implemented Interfaces:
Serializable
Image is used to add images to the end/start of trend lines. Allows you to display image anywhere on chart's plot
area.
See documentation for properties of Image JS Object.
https://docs.amcharts.com/3/javascriptstockchart/Image
See documentation for properties of Image JS Object.
https://docs.amcharts.com/3/javascriptstockchart/Image
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getUrl()
getWidth()
setBalloonColor
(Color balloonColor) Sets roll-over balloon color.setBalloonText
(String balloonText) Sets roll-over text.Sets color of an image.Sets height of an image.setOffsetX
(Integer offsetX) Sets horizontal offset.setOffsetY
(Integer offsetY) Sets vertical offset.setOutlineColor
(Color outlineColor) Sets color of image outline.setRotation
(Integer rotation) Sets rotation of an image.setSvgPath
(String svgPath) Sets svg path of an image.Sets the URL of an image.Sets width on an image.
-
Constructor Details
-
Image
public Image()
-
-
Method Details
-
getBalloonColor
- Returns:
- roll-over balloon color
-
setBalloonColor
@StudioProperty(type=OPTIONS, defaultValue="#000000") public Image setBalloonColor(Color balloonColor) Sets roll-over balloon color. If not set the default value is #000000.- Parameters:
balloonColor
- color- Returns:
- image
-
getBalloonText
- Returns:
- roll-over text
-
setBalloonText
Sets roll-over text.- Parameters:
balloonText
- text- Returns:
- image
-
getColor
- Returns:
- color of an image
-
setColor
Sets color of an image. Works only if an image is generated using SVG path (svgPath property). If not set the default value is #000000.- Parameters:
color
- color- Returns:
- image
-
getHeight
- Returns:
- height of an image
-
setHeight
Sets height of an image. If not set the default value is 20.- Parameters:
height
- height- Returns:
- image
-
getOffsetX
- Returns:
- horizontal offset
-
setOffsetX
Sets horizontal offset. If not set the default value is 0.- Parameters:
offsetX
- X offset- Returns:
- image
-
getOffsetY
- Returns:
- vertical offset
-
setOffsetY
Sets vertical offset. If not set the default value is 0.- Parameters:
offsetY
- Y offset- Returns:
- image
-
getOutlineColor
- Returns:
- color of image outline
-
setOutlineColor
Sets color of image outline. Works only if an image is generated using SVG path (using svgPath property)- Parameters:
outlineColor
- color- Returns:
- image
-
getRotation
- Returns:
- rotation of an image
-
setRotation
Sets rotation of an image. If not set the default value is 0.- Parameters:
rotation
- rotation- Returns:
- image
-
getSvgPath
- Returns:
- svg path of an image
-
setSvgPath
Sets svg path of an image. Will not work with IE8.- Parameters:
svgPath
- svg path- Returns:
- image
-
getUrl
- Returns:
- the URL of an image
-
setUrl
Sets the URL of an image.- Parameters:
url
- the URL- Returns:
- image
-
getWidth
- Returns:
- width on an image
-
setWidth
Sets width on an image. If not set the default value is 20.- Parameters:
width
- width- Returns:
- image
-