Documentation of 'org.jfree.chart.renderer.category.CategoryStepRenderer' Java class
CategoryStepRenderer
org.jfree.chart.renderer.category

Class CategoryStepRenderer

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


    public class CategoryStepRenderer
    extends AbstractCategoryItemRenderer
    implements java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
    A "step" renderer similar to XYStepRenderer but that can be used with the CategoryPlot class. The example shown here is generated by the CategoryStepChartDemo1.java program included in the JFreeChart Demo Collection:

    CategoryStepRendererSample.png
    See Also:
    Serialized Form
    • Field Detail

      • STAGGER_WIDTH

        public static final int STAGGER_WIDTH
        The stagger width.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CategoryStepRenderer

        public CategoryStepRenderer()
        Creates a new renderer (stagger defaults to false).
      • CategoryStepRenderer

        public CategoryStepRenderer(boolean stagger)
        Creates a new renderer.
        Parameters:
        stagger - should the horizontal part of the step be staggered by series?
    • Method Detail

      • getStagger

        public boolean getStagger()
        Returns the flag that controls whether the series steps are staggered.
        Returns:
        A boolean.
      • setStagger

        public void setStagger(boolean shouldStagger)
        Sets the flag that controls whether or not the series steps are staggered and sends a RendererChangeEvent to all registered listeners.
        Parameters:
        shouldStagger - a boolean.
      • drawItem

        public void drawItem(java.awt.Graphics2D g2,
                             CategoryItemRendererState state,
                             java.awt.geom.Rectangle2D dataArea,
                             CategoryPlot plot,
                             CategoryAxis domainAxis,
                             ValueAxis rangeAxis,
                             CategoryDataset dataset,
                             int row,
                             int column,
                             int pass)
        Draw a single data item.
        Specified by:
        drawItem in interface CategoryItemRenderer
        Parameters:
        g2 - the graphics device.
        state - the renderer state.
        dataArea - the area in which the data is drawn.
        plot - the plot.
        domainAxis - the domain axis.
        rangeAxis - the range axis.
        dataset - the dataset.
        row - the row index (zero-based).
        column - the column index (zero-based).
        pass - the pass index.
      • equals

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.