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:
      • getInfoPanelBackgroundColor

        public Color getInfoPanelBackgroundColor()
      • setInfoPanelBackgroundColor

        public Styler setInfoPanelBackgroundColor​(Color color)
      • getInfoPanelBorderColor

        public Color getInfoPanelBorderColor()
      • setInfoPanelBorderColor

        public Styler setInfoPanelBorderColor​(Color borderColor)
      • getInfoPanelFont

        public Font getInfoPanelFont()
      • setInfoPanelFont

        public Styler setInfoPanelFont​(Font font)
      • isInfoPanelVisible

        public boolean isInfoPanelVisible()
      • setInfoPanelVisible

        public Styler setInfoPanelVisible​(boolean infoPanelVisible)
      • getInfoPanelPadding

        public int getInfoPanelPadding()
      • setInfoPanelPadding

        public Styler setInfoPanelPadding​(int infoPanelPadding)
      • 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)
      • isCursorEnabled

        public boolean isCursorEnabled()
      • setCursorEnabled

        public Styler setCursorEnabled​(boolean isCursorEnabled)
      • getCursorColor

        public Color getCursorColor()
      • setCursorColor

        public Styler setCursorColor​(Color cursorColor)
      • getCursorSize

        public float getCursorSize()
      • setCursorSize

        public Styler setCursorSize​(float cursorSize)
      • getCursorFont

        public Font getCursorFont()
      • setCursorFont

        public Styler setCursorFont​(Font cursorFont)
      • getCursorFontColor

        public Color getCursorFontColor()
      • setCursorFontColor

        public Styler setCursorFontColor​(Color cursorFontColor)
      • getCursorBackgroundColor

        public Color getCursorBackgroundColor()
      • setCursorBackgroundColor

        public Styler setCursorBackgroundColor​(Color cursorBackgroundColor)
      • 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 -
      • getAnnotationsFontColor

        public Color getAnnotationsFontColor()
      • setAnnotationsFontColor

        public Styler setAnnotationsFontColor​(Color annotationsFontColor)
        Sets the color of the Font used for chart annotations
        Parameters:
        annotationsFontColor -
      • getAnnotationsRotation

        public int getAnnotationsRotation()
      • setAnnotationsRotation

        public Styler setAnnotationsRotation​(int annotationsRotation)
        Sets the rotation for chart annotations
        Parameters:
        annotationsRotation -
      • getAnnotationsPosition

        public float getAnnotationsPosition()
      • setAnnotationsPosition

        public Styler setAnnotationsPosition​(float annotationsPosition)
      • isShowTotalAnnotations

        public boolean isShowTotalAnnotations()
      • setShowTotalAnnotations

        public Styler setShowTotalAnnotations​(boolean showTotalAnnotations)
      • 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)
      • getYAxisLeftWidthHint

        public int getYAxisLeftWidthHint()
      • setYAxisLeftWidthHint

        public void setYAxisLeftWidthHint​(int yAxisLeftWidthHint)
      • setShowWithinAreaPoint

        public Styler setShowWithinAreaPoint​(boolean showWithinAreaPoint)
      • getShowWithinAreaPoint

        public boolean getShowWithinAreaPoint()
      • getXAxisTitleColor

        public Color getXAxisTitleColor()
      • setXAxisTitleColor

        public Styler setXAxisTitleColor​(Color xAxisTitleColor)
      • getYAxisTitleColor

        public Color getYAxisTitleColor()
      • setYAxisTitleColor

        public Styler setYAxisTitleColor​(Color yAxisColor)
      • getYAxisGroupTitleColor

        public Color getYAxisGroupTitleColor​(int yAxisGroup)
      • setYAxisGroupTitleColor

        public Styler setYAxisGroupTitleColor​(int yAxisGroup,
                                              Color yAxisColor)