Class XYStyler


public class XYStyler extends AxesChartStyler
  • Field Details

    • xySeriesRenderStyle

      private XYSeries.XYSeriesRenderStyle xySeriesRenderStyle
    • isZoomEnabled

      private boolean isZoomEnabled
    • zoomSelectionColor

      private Color zoomSelectionColor
    • zoomResetByDoubleClick

      private boolean zoomResetByDoubleClick
    • zoomResetByButton

      private boolean zoomResetByButton
    • isCursorEnabled

      private boolean isCursorEnabled
    • cursorColor

      private Color cursorColor
    • cursorLineWidth

      private float cursorLineWidth
    • cursorFont

      private Font cursorFont
    • cursorFontColor

      private Color cursorFontColor
    • cursorBackgroundColor

      private Color cursorBackgroundColor
    • customCursorXDataFormattingFunction

      private Function<Double,String> customCursorXDataFormattingFunction
    • customCursorYDataFormattingFunction

      private Function<Double,String> customCursorYDataFormattingFunction
  • Constructor Details

    • XYStyler

      public XYStyler()
      Constructor
  • Method Details

    • setAllStyles

      protected void setAllStyles()
      Overrides:
      setAllStyles in class AxesChartStyler
    • setTheme

      public void setTheme(Theme theme)
      Set the theme the styler should use
      Parameters:
      theme -
    • getDefaultSeriesRenderStyle

      public XYSeries.XYSeriesRenderStyle getDefaultSeriesRenderStyle()
    • setDefaultSeriesRenderStyle

      public XYStyler setDefaultSeriesRenderStyle(XYSeries.XYSeriesRenderStyle xySeriesRenderStyle)
      Sets the default series render style for the chart (line, scatter, area, etc.) You can override the series render style individually on each Series object.
      Parameters:
      xySeriesRenderStyle -
    • isZoomEnabled

      public boolean isZoomEnabled()
    • setZoomEnabled

      public XYStyler setZoomEnabled(boolean isZoomEnabled)
    • getZoomSelectionColor

      public Color getZoomSelectionColor()
    • setZoomSelectionColor

      public XYStyler setZoomSelectionColor(Color zoomSelectionColor)
    • isZoomResetByDoubleClick

      public boolean isZoomResetByDoubleClick()
    • setZoomResetByDoubleClick

      public XYStyler setZoomResetByDoubleClick(boolean zoomResetByDoubleClick)
    • isZoomResetByButton

      public boolean isZoomResetByButton()
    • setZoomResetByButton

      public XYStyler setZoomResetByButton(boolean zoomResetByButton)
    • isCursorEnabled

      public boolean isCursorEnabled()
    • setCursorEnabled

      public XYStyler setCursorEnabled(boolean isCursorEnabled)
    • getCursorColor

      public Color getCursorColor()
    • setCursorColor

      public XYStyler setCursorColor(Color cursorColor)
    • getCursorLineWidth

      public float getCursorLineWidth()
    • setCursorLineWidth

      public XYStyler setCursorLineWidth(float cursorLineWidth)
    • getCursorFont

      public Font getCursorFont()
    • setCursorFont

      public XYStyler setCursorFont(Font cursorFont)
    • getCursorFontColor

      public Color getCursorFontColor()
    • setCursorFontColor

      public XYStyler setCursorFontColor(Color cursorFontColor)
    • getCursorBackgroundColor

      public Color getCursorBackgroundColor()
    • setCursorBackgroundColor

      public XYStyler setCursorBackgroundColor(Color cursorBackgroundColor)
    • getCustomCursorXDataFormattingFunction

      public Function<Double,String> getCustomCursorXDataFormattingFunction()
    • setCustomCursorXDataFormattingFunction

      public XYStyler setCustomCursorXDataFormattingFunction(Function<Double,String> customCursorXDataFormattingFunction)
      Set the custom function for formatting the cursor tooltip based on the series X-Axis data
      Parameters:
      customCursorXDataFormattingFunction -
    • getCustomCursorYDataFormattingFunction

      public Function<Double,String> getCustomCursorYDataFormattingFunction()
    • setCustomCursorYDataFormattingFunction

      public XYStyler setCustomCursorYDataFormattingFunction(Function<Double,String> customCursorYDataFormattingFunction)
      Set the custom function for formatting the cursor tooltip based on the series Y-Axis data
      Parameters:
      customCursorYDataFormattingFunction -