Class CategoryStyler


public class CategoryStyler extends AxesChartStyler
  • Constructor Details

    • CategoryStyler

      public CategoryStyler()
      Constructor
  • Method Details

    • setAllStyles

      protected void setAllStyles()
    • getDefaultSeriesRenderStyle

      public CategorySeries.CategorySeriesRenderStyle getDefaultSeriesRenderStyle()
    • 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 Font getLabelsFont()
    • setLabelsFont

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

      public Color getLabelsFontColor()
    • getLabelsFontColor

      public Color getLabelsFontColor(Color backgroundColor)
    • setLabelsFontColor

      public CategoryStyler setLabelsFontColor(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 Color getLabelsFontColorAutomaticLight()
    • setLabelsFontColorAutomaticLight

      public CategoryStyler setLabelsFontColorAutomaticLight(Color labelsFontColorAutomaticLight)
    • getLabelsFontColorAutomaticDark

      public Color getLabelsFontColorAutomaticDark()
    • setLabelsFontColorAutomaticDark

      public CategoryStyler setLabelsFontColorAutomaticDark(Color labelsFontColorAutomaticDark)
    • setTheme

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