Class StatisticalLineAndShapeRenderer

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, LegendItemSource, CategoryItemRenderer, PublicCloneable

    public class StatisticalLineAndShapeRenderer
    extends LineAndShapeRenderer
    implements java.lang.Cloneable, PublicCloneable, java.io.Serializable
    A renderer that draws shapes for each data item, and lines between data items. Each point has a mean value and a standard deviation line. For use with the CategoryPlot class. The example shown here is generated by the StatisticalLineChartDemo1.java program included in the JFreeChart Demo Collection:

    StatisticalLineRendererSample.png
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization.
        See Also:
        Constant Field Values
      • errorIndicatorPaint

        private transient java.awt.Paint errorIndicatorPaint
        The paint used to show the error indicator.
      • errorIndicatorStroke

        private transient java.awt.Stroke errorIndicatorStroke
        The stroke used to draw the error indicators. If null, the renderer will use the itemOutlineStroke.
    • Constructor Detail

      • StatisticalLineAndShapeRenderer

        public StatisticalLineAndShapeRenderer()
        Constructs a default renderer (draws shapes and lines).
      • StatisticalLineAndShapeRenderer

        public StatisticalLineAndShapeRenderer​(boolean linesVisible,
                                               boolean shapesVisible)
        Constructs a new renderer.
        Parameters:
        linesVisible - draw lines?
        shapesVisible - draw shapes?
    • Method Detail

      • getErrorIndicatorPaint

        public java.awt.Paint getErrorIndicatorPaint()
        Returns the paint used for the error indicators.
        Returns:
        The paint used for the error indicators (possibly null).
        See Also:
        setErrorIndicatorPaint(Paint)
      • setErrorIndicatorPaint

        public void setErrorIndicatorPaint​(java.awt.Paint paint)
        Sets the paint used for the error indicators (if null, the item paint is used instead) and sends a RendererChangeEvent to all registered listeners.
        Parameters:
        paint - the paint (null permitted).
        See Also:
        getErrorIndicatorPaint()
      • getErrorIndicatorStroke

        public java.awt.Stroke getErrorIndicatorStroke()
        Returns the stroke used for the error indicators.
        Returns:
        The stroke used for the error indicators (possibly null).
        See Also:
        setErrorIndicatorStroke(Stroke)
      • setErrorIndicatorStroke

        public void setErrorIndicatorStroke​(java.awt.Stroke stroke)
        Sets the stroke used for the error indicators (if null, the item outline stroke is used instead) and sends a RendererChangeEvent to all registered listeners.
        Parameters:
        stroke - the stroke (null permitted).
        See Also:
        getErrorIndicatorStroke()
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this renderer for equality with an arbitrary object.
        Overrides:
        equals in class LineAndShapeRenderer
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream stream)
                          throws java.io.IOException
        Provides serialization support.
        Parameters:
        stream - the output stream.
        Throws:
        java.io.IOException - if there is an I/O error.
      • readObject

        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Provides serialization support.
        Parameters:
        stream - the input stream.
        Throws:
        java.io.IOException - if there is an I/O error.
        java.lang.ClassNotFoundException - if there is a classpath problem.