Class Image

java.lang.Object
io.jmix.charts.model.AbstractChartObject
io.jmix.charts.model.trendline.Image
All Implemented Interfaces:
Serializable

public class Image extends AbstractChartObject
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 Also:
  • Constructor Details

    • Image

      public Image()
  • Method Details

    • getBalloonColor

      public Color 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

      public String getBalloonText()
      Returns:
      roll-over text
    • setBalloonText

      @StudioProperty public Image setBalloonText(String balloonText)
      Sets roll-over text.
      Parameters:
      balloonText - text
      Returns:
      image
    • getColor

      public Color getColor()
      Returns:
      color of an image
    • setColor

      @StudioProperty(type=OPTIONS, defaultValue="#000000") public Image setColor(Color color)
      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

      public Integer getHeight()
      Returns:
      height of an image
    • setHeight

      @StudioProperty(defaultValue="20") public Image setHeight(Integer height)
      Sets height of an image. If not set the default value is 20.
      Parameters:
      height - height
      Returns:
      image
    • getOffsetX

      public Integer getOffsetX()
      Returns:
      horizontal offset
    • setOffsetX

      @StudioProperty(defaultValue="0") public Image setOffsetX(Integer offsetX)
      Sets horizontal offset. If not set the default value is 0.
      Parameters:
      offsetX - X offset
      Returns:
      image
    • getOffsetY

      public Integer getOffsetY()
      Returns:
      vertical offset
    • setOffsetY

      @StudioProperty(defaultValue="0") public Image setOffsetY(Integer offsetY)
      Sets vertical offset. If not set the default value is 0.
      Parameters:
      offsetY - Y offset
      Returns:
      image
    • getOutlineColor

      public Color getOutlineColor()
      Returns:
      color of image outline
    • setOutlineColor

      @StudioProperty(type=OPTIONS) public Image setOutlineColor(Color outlineColor)
      Sets color of image outline. Works only if an image is generated using SVG path (using svgPath property)
      Parameters:
      outlineColor - color
      Returns:
      image
    • getRotation

      public Integer getRotation()
      Returns:
      rotation of an image
    • setRotation

      @StudioProperty(defaultValue="0") public Image setRotation(Integer rotation)
      Sets rotation of an image. If not set the default value is 0.
      Parameters:
      rotation - rotation
      Returns:
      image
    • getSvgPath

      public String getSvgPath()
      Returns:
      svg path of an image
    • setSvgPath

      @StudioProperty public Image setSvgPath(String svgPath)
      Sets svg path of an image. Will not work with IE8.
      Parameters:
      svgPath - svg path
      Returns:
      image
    • getUrl

      public String getUrl()
      Returns:
      the URL of an image
    • setUrl

      @StudioProperty public Image setUrl(String url)
      Sets the URL of an image.
      Parameters:
      url - the URL
      Returns:
      image
    • getWidth

      public Integer getWidth()
      Returns:
      width on an image
    • setWidth

      @StudioProperty(defaultValue="20") public Image setWidth(Integer width)
      Sets width on an image. If not set the default value is 20.
      Parameters:
      width - width
      Returns:
      image