Documentation of 'org.statcato.graph.ExtendedBoxAndWhiskerRenderer' Java class
ExtendedBoxAndWhiskerRenderer
org.statcato.graph

Class ExtendedBoxAndWhiskerRenderer

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


    public class ExtendedBoxAndWhiskerRenderer
    extends BoxAndWhiskerRenderer
    A box-and-whisker renderer. This renderer requires a BoxAndWhiskerCategoryDataset and is for use with the CategoryPlot class. The following enhancements have been made - Colors for the outliers and farouts can be set.
    - The radius of the outliers and farouts are constant. They do not depend on the width of the boxes anymore.
    - drawing all the outliers and all the farouts.
    - tooltips for the outliers and farouts.
    See Also:
    Serialized Form
    • Constructor Detail

      • ExtendedBoxAndWhiskerRenderer

        public ExtendedBoxAndWhiskerRenderer()
    • Method Detail

      • getOutlierPaint

        public java.awt.Paint getOutlierPaint()
        Returns the paint used to color the outliers.
        Returns:
        The paint used to draw the outliers (never null).
        See Also:
        setOutlierPaint(Paint)
      • setOutlierPaint

        public void setOutlierPaint(java.awt.Paint paint)
        Sets the paint used to color outliers and sends a RendererChangeEvent to all registered listeners.
        Parameters:
        paint - the paint (null not permitted).
        See Also:
        getOutlierPaint()
      • getFaroutPaint

        public java.awt.Paint getFaroutPaint()
        Returns the paint used to color the farout values.
        Returns:
        The paint used to draw the farout values (never null).
        See Also:
        setFaroutPaint(Paint)
      • setFaroutPaint

        public void setFaroutPaint(java.awt.Paint paint)
        Sets the paint used to color farout values and sends a RendererChangeEvent to all registered listeners.
        Parameters:
        paint - the paint (null not permitted).
        See Also:
        getFaroutPaint()
      • drawVerticalItem

        public void drawVerticalItem(java.awt.Graphics2D g2,
                                     CategoryItemRendererState state,
                                     java.awt.geom.Rectangle2D dataArea,
                                     CategoryPlot plot,
                                     CategoryAxis domainAxis,
                                     ValueAxis rangeAxis,
                                     CategoryDataset dataset,
                                     int row,
                                     int column)
        Draws the visual representation of a single data item when the plot has a vertical orientation.
        Overrides:
        drawVerticalItem in class BoxAndWhiskerRenderer
        Parameters:
        g2 - the graphics device.
        state - the renderer state.
        dataArea - the area within which the plot is being drawn.
        plot - the plot (can be used to obtain standard color information etc).
        domainAxis - the domain axis.
        rangeAxis - the range axis.
        dataset - the dataset.
        row - the row index (zero-based).
        column - the column index (zero-based).
      • drawHorizontalItem

        public void drawHorizontalItem(java.awt.Graphics2D g2,
                                       CategoryItemRendererState state,
                                       java.awt.geom.Rectangle2D dataArea,
                                       CategoryPlot plot,
                                       CategoryAxis domainAxis,
                                       ValueAxis rangeAxis,
                                       CategoryDataset dataset,
                                       int row,
                                       int column)
        Draws the visual representation of a single data item when the plot has a horizontal orientation.
        Overrides:
        drawHorizontalItem in class BoxAndWhiskerRenderer
        Parameters:
        g2 - the graphics device.
        state - the renderer state.
        dataArea - the area within which the plot is being drawn.
        plot - the plot (can be used to obtain standard color information etc).
        domainAxis - the domain axis.
        rangeAxis - the range axis.
        dataset - the dataset.
        row - the row index (zero-based).
        column - the column index (zero-based). TODO: Outliers and Farout values not implemented.
      • addOutlierEntity

        public void addOutlierEntity(java.lang.String tooltip,
                                     EntityCollection entities,
                                     CategoryDataset dataset,
                                     int row,
                                     int column,
                                     java.awt.Shape hotspot)
        Adds an outlier enitiy with the specified hotspot.
        Parameters:
        tooltip - the tooltip string.
        enity - the entity collection.
        dataset - the dataset.
        row - the row index.
        column - the column index.
        hotspot - the hotspot.
      • addFaroutEntity

        public void addFaroutEntity(java.lang.String tooltip,
                                    EntityCollection entities,
                                    CategoryDataset dataset,
                                    int row,
                                    int column,
                                    java.awt.Shape hotspot)
        Adds a farout enitiy with the specified hotspot.
        Parameters:
        tooltip - the tooltip string.
        enity - the entity collection.
        dataset - the dataset.
        row - the row index.
        column - the column index.
        hotspot - the hotspot.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.