Class Styler

    • Constructor Detail

      • Styler

        public Styler()
    • Method Detail

      • getBaseFont

        public Font getBaseFont()
      • setBaseFont

        public Styler setBaseFont​(Font baseFont)
        Set the base font
        Parameters:
        baseFont -
        Returns:
        styler
      • getChartBackgroundColor

        public Color getChartBackgroundColor()
      • setChartBackgroundColor

        public Styler setChartBackgroundColor​(Color color)
        Set the chart background color - the part around the edge of the chart
        Parameters:
        color -
      • getChartFontColor

        public Color getChartFontColor()
      • setChartFontColor

        public Styler setChartFontColor​(Color color)
        Set the chart font color. includes: Chart title, axes label, legend
        Parameters:
        color -
      • getChartPadding

        public int getChartPadding()
      • setChartPadding

        public Styler setChartPadding​(int chartPadding)
        Set the chart padding
        Parameters:
        chartPadding -
      • getSeriesColors

        public Color[] getSeriesColors()
      • setSeriesColors

        public Styler setSeriesColors​(Color[] seriesColors)
      • getSeriesLines

        public BasicStroke[] getSeriesLines()
      • getSeriesMarkers

        public Marker[] getSeriesMarkers()
      • setSeriesMarkers

        public Styler setSeriesMarkers​(Marker[] seriesMarkers)
      • getChartTitleFont

        public Font getChartTitleFont()
      • setChartTitleFont

        public Styler setChartTitleFont​(Font chartTitleFont)
        Set the chart title font
        Parameters:
        chartTitleFont -
        Returns:
      • isChartTitleVisible

        public boolean isChartTitleVisible()
      • setChartTitleVisible

        public Styler setChartTitleVisible​(boolean isChartTitleVisible)
        Set the chart title visibility
        Parameters:
        isChartTitleVisible -
      • isChartTitleBoxVisible

        public boolean isChartTitleBoxVisible()
      • setChartTitleBoxVisible

        public Styler setChartTitleBoxVisible​(boolean isChartTitleBoxVisible)
        Set the chart title box visibility
        Parameters:
        isChartTitleBoxVisible -
      • getChartTitleBoxBackgroundColor

        public Color getChartTitleBoxBackgroundColor()
      • setChartTitleBoxBackgroundColor

        public Styler setChartTitleBoxBackgroundColor​(Color chartTitleBoxBackgroundColor)
        set the chart title box background color
        Parameters:
        chartTitleBoxBackgroundColor -
      • getChartTitleBoxBorderColor

        public Color getChartTitleBoxBorderColor()
      • setChartTitleBoxBorderColor

        public Styler setChartTitleBoxBorderColor​(Color chartTitleBoxBorderColor)
        set the chart title box border color
        Parameters:
        chartTitleBoxBorderColor -
      • getChartTitlePadding

        public int getChartTitlePadding()
      • setChartTitlePadding

        public Styler setChartTitlePadding​(int chartTitlePadding)
        set the chart title padding; the space between the chart title and the plot area
        Parameters:
        chartTitlePadding -
      • getLegendBackgroundColor

        public Color getLegendBackgroundColor()
      • setLegendBackgroundColor

        public Styler setLegendBackgroundColor​(Color color)
        Set the chart legend background color
        Parameters:
        color -
      • getLegendBorderColor

        public Color getLegendBorderColor()
        Set the chart legend border color
        Returns:
      • setLegendBorderColor

        public Styler setLegendBorderColor​(Color legendBorderColor)
      • getLegendFont

        public Font getLegendFont()
      • setLegendFont

        public Styler setLegendFont​(Font font)
        Set the chart legend font
        Parameters:
        font -
      • isLegendVisible

        public boolean isLegendVisible()
      • setLegendVisible

        public Styler setLegendVisible​(boolean isLegendVisible)
        Set the chart legend visibility
        Parameters:
        isLegendVisible -
      • getLegendPadding

        public int getLegendPadding()
      • setLegendPadding

        public Styler setLegendPadding​(int legendPadding)
        Set the chart legend padding
        Parameters:
        legendPadding -
      • getLegendSeriesLineLength

        public int getLegendSeriesLineLength()
      • setLegendSeriesLineLength

        public Styler setLegendSeriesLineLength​(int legendSeriesLineLength)
        Set the chart legend series line length
        Parameters:
        legendSeriesLineLength -
        Returns:
      • setLegendPosition

        public Styler setLegendPosition​(Styler.LegendPosition legendPosition)
        sets the legend position
        Parameters:
        legendPosition -
      • getLegendLayout

        public Styler.LegendLayout getLegendLayout()
        Set the legend layout
        Returns:
      • getPlotBackgroundColor

        public Color getPlotBackgroundColor()
      • setPlotBackgroundColor

        public Styler setPlotBackgroundColor​(Color plotBackgroundColor)
        set the plot area's background color
        Parameters:
        plotBackgroundColor -
      • getPlotBorderColor

        public Color getPlotBorderColor()
      • setPlotBorderColor

        public Styler setPlotBorderColor​(Color plotBorderColor)
        set the plot area's border color
        Parameters:
        plotBorderColor -
      • isPlotBorderVisible

        public boolean isPlotBorderVisible()
      • setPlotBorderVisible

        public Styler setPlotBorderVisible​(boolean isPlotBorderVisible)
        sets the visibility of the border around the plot area
        Parameters:
        isPlotBorderVisible -
      • getPlotContentSize

        public double getPlotContentSize()
      • setPlotContentSize

        public Styler setPlotContentSize​(double plotContentSize)
        Sets the content size of the plot inside the plot area of the chart. To fill the area 100%, use a value of 1.0.
        Parameters:
        plotContentSize - - Valid range is between 0 and 1.
      • isToolTipsEnabled

        public boolean isToolTipsEnabled()
      • setToolTipsEnabled

        public Styler setToolTipsEnabled​(boolean toolTipsEnabled)
      • isToolTipsAlwaysVisible

        public boolean isToolTipsAlwaysVisible()
      • setToolTipsAlwaysVisible

        public Styler setToolTipsAlwaysVisible​(boolean toolTipsAlwaysVisible)
      • getToolTipBackgroundColor

        public Color getToolTipBackgroundColor()
      • setToolTipBackgroundColor

        public Styler setToolTipBackgroundColor​(Color toolTipBackgroundColor)
      • getToolTipBorderColor

        public Color getToolTipBorderColor()
      • setToolTipBorderColor

        public Styler setToolTipBorderColor​(Color toolTipBorderColor)
      • getToolTipFont

        public Font getToolTipFont()
      • setToolTipFont

        public Styler setToolTipFont​(Font toolTipFont)
      • getToolTipHighlightColor

        public Color getToolTipHighlightColor()
      • setToolTipHighlightColor

        public Styler setToolTipHighlightColor​(Color toolTipHighlightColor)
      • hasAnnotations

        public Boolean hasAnnotations()
      • setHasAnnotations

        public Styler setHasAnnotations​(boolean hasAnnotations)
        Sets if annotations should be added to charts. Each chart type has a different annotation type
        Parameters:
        hasAnnotations -
      • getAnnotationsFont

        public Font getAnnotationsFont()
      • setAnnotationsFont

        public Styler setAnnotationsFont​(Font annotationsFont)
        Sets the Font used for chart annotations
        Parameters:
        annotationsFont -
      • getDecimalPattern

        public String getDecimalPattern()
      • setDecimalPattern

        public Styler setDecimalPattern​(String decimalPattern)
        Set the decimal formatter for all numbers on the chart rendered as Strings
        Parameters:
        decimalPattern - - the pattern describing the decimal format
      • setYAxisGroupPosition

        public void setYAxisGroupPosition​(int yAxisGroup,
                                          Styler.YAxisPosition yAxisPosition)
        Set the YAxis group position.
        Parameters:
        yAxisGroup -
        yAxisPosition -
      • getTheme

        public Theme getTheme()
      • getAntiAlias

        public boolean getAntiAlias()
      • setAntiAlias

        public void setAntiAlias​(boolean newVal)