Class CategoryStyler

    • Field Detail

      • availableSpaceFill

        private double availableSpaceFill
      • isOverlapped

        private boolean isOverlapped
      • isStacked

        private boolean isStacked
      • isLabelsVisible

        private boolean isLabelsVisible
      • showStackSum

        private boolean showStackSum
      • labelsFont

        private java.awt.Font labelsFont
      • labelsFontColor

        private java.awt.Color labelsFontColor
      • labelsRotation

        private int labelsRotation
      • labelsPosition

        private double labelsPosition
      • isLabelsFontColorAutomaticEnabled

        private boolean isLabelsFontColorAutomaticEnabled
      • labelsFontColorAutomaticLight

        private java.awt.Color labelsFontColorAutomaticLight
      • labelsFontColorAutomaticDark

        private java.awt.Color labelsFontColorAutomaticDark
    • Constructor Detail

      • CategoryStyler

        public CategoryStyler()
        Constructor
    • Method Detail

      • setDefaultSeriesRenderStyle

        public CategoryStyler setDefaultSeriesRenderStyle​(CategorySeries.CategorySeriesRenderStyle chartCategorySeriesRenderStyle)
        Sets the default series render style for the chart (bar, stick, line, scatter, area, etc.) You can override the series render style individually on each Series object.
        Parameters:
        chartCategorySeriesRenderStyle -
      • getAvailableSpaceFill

        public double getAvailableSpaceFill()
      • setAvailableSpaceFill

        public CategoryStyler setAvailableSpaceFill​(double availableSpaceFill)
        Sets the available space for rendering each category as a percentage. For a bar chart with one series, it will be the width of the bar as a percentage of the maximum space alloted for the bar. If there are three series and three bars, the three bars will share the available space. This affects all category series render types, not only bar charts. Full width is 100%, i.e. 1.0
        Parameters:
        availableSpaceFill -
      • isOverlapped

        public boolean isOverlapped()
      • setOverlapped

        public CategoryStyler setOverlapped​(boolean isOverlapped)
        set whether or not series renderings (i.e. bars, stick, etc.) are overlapped. Otherwise they are placed side-by-side.
        Parameters:
        isOverlapped -
      • isStacked

        public boolean isStacked()
      • setStacked

        public CategoryStyler setStacked​(boolean isStacked)
        Set whether or not series renderings (i.e. bars, stick, etc.) are stacked.
        Parameters:
        isStacked -
      • isLabelsVisible

        public boolean isLabelsVisible()
      • setLabelsVisible

        public CategoryStyler setLabelsVisible​(boolean labelsVisible)
        Sets if labels should be added to charts. Each chart type has a different annotation type
        Parameters:
        labelsVisible -
      • isShowStackSum

        public boolean isShowStackSum()
      • setShowStackSum

        public CategoryStyler setShowStackSum​(boolean showStackSum)
        If the category chart is set to be "stacked", the total value of the stack can be painted above the stack.
        Parameters:
        showStackSum -
        Returns:
      • getLabelsFont

        public java.awt.Font getLabelsFont()
      • setLabelsFont

        public CategoryStyler setLabelsFont​(java.awt.Font labelsFont)
        Sets the Font used for chart labels
        Parameters:
        labelsFont -
      • getLabelsFontColor

        public java.awt.Color getLabelsFontColor()
      • getLabelsFontColor

        public java.awt.Color getLabelsFontColor​(java.awt.Color backgroundColor)
      • setLabelsFontColor

        public CategoryStyler setLabelsFontColor​(java.awt.Color labelsFontColor)
        Sets the color of the Font used for chart labels
        Parameters:
        labelsFontColor -
      • getLabelsRotation

        public int getLabelsRotation()
      • setLabelsRotation

        public CategoryStyler setLabelsRotation​(int labelsRotation)
        Sets the rotation (in degrees) for chart labels.
        Parameters:
        labelsRotation -
      • getLabelsPosition

        public double getLabelsPosition()
      • setLabelsPosition

        public CategoryStyler setLabelsPosition​(double labelsPosition)
        A number between 0 and 1 setting the vertical position of the data label. Default is 0.5 placing it in the center.
        Parameters:
        labelsPosition -
        Returns:
      • isLabelsFontColorAutomaticEnabled

        public boolean isLabelsFontColorAutomaticEnabled()
      • setLabelsFontColorAutomaticEnabled

        public CategoryStyler setLabelsFontColorAutomaticEnabled​(boolean isLabelsFontColorAutomaticEnabled)
      • getLabelsFontColorAutomaticLight

        public java.awt.Color getLabelsFontColorAutomaticLight()
      • setLabelsFontColorAutomaticLight

        public CategoryStyler setLabelsFontColorAutomaticLight​(java.awt.Color labelsFontColorAutomaticLight)
      • getLabelsFontColorAutomaticDark

        public java.awt.Color getLabelsFontColorAutomaticDark()
      • setLabelsFontColorAutomaticDark

        public CategoryStyler setLabelsFontColorAutomaticDark​(java.awt.Color labelsFontColorAutomaticDark)
      • setTheme

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