All Implemented Interfaces:
HasSymbols<MarkPoint>, Serializable

public class MarkPoint extends AbstractMark<MarkPoint> implements HasSymbols<MarkPoint>
Mark point in a chart. Used to mark any single values on the graph. More detailed information is provided in the documentation.
See Also:
  • Field Details

  • Constructor Details

    • MarkPoint

      public MarkPoint()
  • Method Details

    • getSymbol

      public @Nullable HasSymbols.Symbol getSymbol()
      Specified by:
      getSymbol in interface HasSymbols<MarkPoint>
      Returns:
      symbol
    • setSymbol

      public void setSymbol(String icon)
      Description copied from interface: HasSymbols
      Sets a symbol or replaces an existing one.
      Possible values:
      • image://%url%, example: image://http://example.website/a/b.png
      • image://%dataURI%, example: image://data:image/gif;base64,...
      • path://%svgPathData%, example: path://M30.9,53.2c16...
      Specified by:
      setSymbol in interface HasSymbols<MarkPoint>
      Parameters:
      icon - symbol to set
    • setSymbol

      public void setSymbol(HasSymbols.SymbolType symbolType)
      Description copied from interface: HasSymbols
      Sets predefined symbol type or replaces an existing one.
      Specified by:
      setSymbol in interface HasSymbols<MarkPoint>
      Parameters:
      symbolType - symbol to set
    • getSymbolSize

      public @Nullable Integer getSymbolSize()
      Specified by:
      getSymbolSize in interface HasSymbols<MarkPoint>
      Returns:
      symbol size
    • setSymbolSize

      public void setSymbolSize(Integer symbolSize)
      Description copied from interface: HasSymbols
      Sets a symbol size or replaces an existing one.
      Specified by:
      setSymbolSize in interface HasSymbols<MarkPoint>
      Parameters:
      symbolSize - symbol size to set
    • getSymbolSizeFunction

      public @Nullable JsFunction getSymbolSizeFunction()
      Specified by:
      getSymbolSizeFunction in interface HasSymbols<MarkPoint>
      Returns:
      callback function for symbol size
    • setSymbolSizeFunction

      public void setSymbolSizeFunction(JsFunction symbolSizeFunction)
      Description copied from interface: HasSymbols
      Sets a callback function for symbol size or replaces an existing one.
      Specified by:
      setSymbolSizeFunction in interface HasSymbols<MarkPoint>
      Parameters:
      symbolSizeFunction - symbol size callback function
    • setSymbolSizeFunction

      public void setSymbolSizeFunction(String symbolSizeFunction)
      Description copied from interface: HasSymbols
      Sets a callback function for symbol size as string or replaces an existing one.
      Specified by:
      setSymbolSizeFunction in interface HasSymbols<MarkPoint>
      Parameters:
      symbolSizeFunction - formatter function as string
    • getSymbolRotate

      public @Nullable Integer getSymbolRotate()
      Specified by:
      getSymbolRotate in interface HasSymbols<MarkPoint>
      Returns:
      rotate degree of symbol
    • setSymbolRotate

      public void setSymbolRotate(Integer symbolRotate)
      Description copied from interface: HasSymbols
      Sets a rotate degree of symbol or replaces an existing one. The negative value represents clockwise.
      Specified by:
      setSymbolRotate in interface HasSymbols<MarkPoint>
      Parameters:
      symbolRotate - rotate symbol to set
    • getSymbolKeepAspect

      public @Nullable Boolean getSymbolKeepAspect()
      Specified by:
      getSymbolKeepAspect in interface HasSymbols<MarkPoint>
      Returns:
      true if the aspect for symbols must be kept, false otherwise
    • setSymbolKeepAspect

      public void setSymbolKeepAspect(Boolean symbolKeepAspect)
      Description copied from interface: HasSymbols
      Sets the keeping of aspects for a symbol.
      Specified by:
      setSymbolKeepAspect in interface HasSymbols<MarkPoint>
      Parameters:
      symbolKeepAspect - whether to keep aspect for symbols in the form of path://%svgPathData%
    • getSymbolOffset

      public @Nullable String[] getSymbolOffset()
      Specified by:
      getSymbolOffset in interface HasSymbols<MarkPoint>
      Returns:
      offset of symbol relative to original position
    • setSymbolOffset

      public void setSymbolOffset(String xOffset, String yOffset)
      Description copied from interface: HasSymbols
      Sets an offset of symbol relative to original position or replaces an existing one.
      Possible values:
      • Pixel values: hasSymbols.setSymbolOffset("10", "10");.
      • Percentage values: hasSymbols.setSymbolOffset("50%", "45%");.
      • Pixel and percentage values combination: hasSymbols.setSymbolOffset("5", "50%");.
      Specified by:
      setSymbolOffset in interface HasSymbols<MarkPoint>
      Parameters:
      xOffset - horizontal offset
      yOffset - vertical offset
    • getItemStyle

      public @Nullable ItemStyle getItemStyle()
    • setItemStyle

      public void setItemStyle(ItemStyle itemStyle)
    • getEmphasis

      public @Nullable MarkPoint.Emphasis getEmphasis()
    • setEmphasis

      public void setEmphasis(MarkPoint.Emphasis emphasis)
    • getBlur

      public @Nullable MarkPoint.Blur getBlur()
    • setBlur

      public void setBlur(MarkPoint.Blur blur)
    • getData

      public @Nullable List<MarkPoint.Point> getData()
    • setData

      public void setData(List<MarkPoint.Point> data)
    • setData

      public void setData(MarkPoint.Point... data)
    • removeData

      public void removeData(MarkPoint.Point point)
    • addData

      public void addData(MarkPoint.Point point)
    • withItemStyle

      public MarkPoint withItemStyle(ItemStyle itemStyle)
    • withEmphasis

      public MarkPoint withEmphasis(MarkPoint.Emphasis emphasis)
    • withBlur

      public MarkPoint withBlur(MarkPoint.Blur blur)
    • withData

      public MarkPoint withData(MarkPoint.Point... data)
    • withData

      public MarkPoint withData(MarkPoint.Point point)