Class JRBaseChartPlot

    • Field Detail

      • PROPERTY_BACKCOLOR

        public static final java.lang.String PROPERTY_BACKCOLOR
        See Also:
        Constant Field Values
      • PROPERTY_BACKGROUND_ALPHA

        public static final java.lang.String PROPERTY_BACKGROUND_ALPHA
        See Also:
        Constant Field Values
      • PROPERTY_FOREGROUND_ALPHA

        public static final java.lang.String PROPERTY_FOREGROUND_ALPHA
        See Also:
        Constant Field Values
      • PROPERTY_LABEL_ROTATION

        public static final java.lang.String PROPERTY_LABEL_ROTATION
        See Also:
        Constant Field Values
      • PROPERTY_ORIENTATION

        public static final java.lang.String PROPERTY_ORIENTATION
        See Also:
        Constant Field Values
      • PROPERTY_SERIES_COLORS

        public static final java.lang.String PROPERTY_SERIES_COLORS
        See Also:
        Constant Field Values
      • backcolor

        protected java.awt.Color backcolor
      • backgroundAlphaFloat

        protected java.lang.Float backgroundAlphaFloat
      • foregroundAlphaFloat

        protected java.lang.Float foregroundAlphaFloat
      • labelRotationDouble

        protected java.lang.Double labelRotationDouble
    • Method Detail

      • getChart

        public JRChart getChart()
        Description copied from interface: JRChartPlot
        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.
        Specified by:
        getChart in interface JRChartPlot
      • getBackcolor

        public java.awt.Color getBackcolor()
        Description copied from interface: JRChartPlot
        Gets the chart background color.
        Specified by:
        getBackcolor in interface JRChartPlot
      • setBackcolor

        public void setBackcolor​(java.awt.Color backcolor)
        Description copied from interface: JRChartPlot
        Sets the chart background color.
        Specified by:
        setBackcolor in interface JRChartPlot
      • getBackgroundAlphaFloat

        public java.lang.Float getBackgroundAlphaFloat()
        Description copied from interface: JRChartPlot
        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.
        Specified by:
        getBackgroundAlphaFloat in interface JRChartPlot
        Returns:
        a float value between 0 and 1.
      • setBackgroundAlpha

        public void setBackgroundAlpha​(java.lang.Float backgroundAlpha)
        Description copied from interface: JRChartPlot
        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.
        Specified by:
        setBackgroundAlpha in interface JRChartPlot
      • getForegroundAlphaFloat

        public java.lang.Float getForegroundAlphaFloat()
        Description copied from interface: JRChartPlot
        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.
        Specified by:
        getForegroundAlphaFloat in interface JRChartPlot
        Returns:
        a float value between 0 and 1.
      • setForegroundAlpha

        public void setForegroundAlpha​(java.lang.Float foregroundAlpha)
        Description copied from interface: JRChartPlot
        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.
        Specified by:
        setForegroundAlpha in interface JRChartPlot
      • getLabelRotationDouble

        public java.lang.Double getLabelRotationDouble()
        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.
        Specified by:
        getLabelRotationDouble in interface JRChartPlot
      • setLabelRotation

        public void setLabelRotation​(java.lang.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.
        Specified by:
        setLabelRotation in interface JRChartPlot
      • getSeriesColors

        public java.util.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.
        Specified by:
        getSeriesColors in interface JRChartPlot
      • clearSeriesColors

        public void clearSeriesColors()
        Removes all defined series colors.
        Specified by:
        clearSeriesColors in interface JRChartPlot
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface JRCloneable
        Overrides:
        clone in class java.lang.Object