Interface JRChartPlot

    • Method Detail

      • getChart

        JRChart getChart()
        Gets the chart associated with this chart plot, if available. Implementations can return null on this method, especially if the chart plot is reused by multiple charts, which is not recommended since it prevents style properties inheritence from parent chart.
      • getBackcolor

        Color getBackcolor()
        Gets the chart background color.
      • getOwnBackcolor

        Color getOwnBackcolor()
      • setBackcolor

        void setBackcolor​(Color backcolor)
        Sets the chart background color.
      • getOrientation

        PlotOrientationEnum getOrientation()
        Gets the plot orientation (horizontal or vertical).
      • setOrientation

        void setOrientation​(PlotOrientationEnum orientation)
        Sets the plot orientation (horizontal or vertical).
      • getBackgroundAlpha

        Float getBackgroundAlpha()
        Gets the transparency factor for this plot background. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.
        Returns:
        a float value between 0 and 1.
      • setBackgroundAlpha

        void setBackgroundAlpha​(Float backgroundAlpha)
        Sets the transparency factor for this plot background. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.
      • getForegroundAlpha

        Float getForegroundAlpha()
        Gets the transparency factor for this plot foreground. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.
        Returns:
        a float value between 0 and 1.
      • setForegroundAlpha

        void setForegroundAlpha​(Float foregroundAlpha)
        Sets the transparency factor for this plot foreground. The range is from 0 to 1, where 0 means transparent and 1 opaque. The default is 1.
      • getLabelRotation

        Double getLabelRotation()
        Gets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.
      • setLabelRotation

        void setLabelRotation​(Double labelRotation)
        Sets the angle in degrees to rotate the data axis labels. The range is -360 to 360. A positive value angles the label so it reads downwards wile a negative value angles the label so it reads upwards. Only charts that use a category based axis (such as line or bar charts) support label rotation.
      • getSeriesColors

        SortedSet<JRChartPlot.JRSeriesColor> getSeriesColors()
        Returns a list of all the defined series colors. Every entry in the list is of type JRChartPlot.JRSeriesColor. If there are no defined series colors this method will return an empty list, not null.
      • clearSeriesColors

        void clearSeriesColors()
        Removes all defined series colors.
      • addSeriesColor

        void addSeriesColor​(JRChartPlot.JRSeriesColor seriesColor)
        Adds the specified series color to the plot.