Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
org.jfree.chart.renderer.category.CategoryStepRenderer
public class CategoryStepRenderer
extends AbstractCategoryItemRenderer
implements Cloneable, PublicCloneable, Serializable
XYStepRenderer
but
that can be used with the CategoryPlot
class.
Field Summary | |
static int |
|
Fields inherited from class org.jfree.chart.renderer.AbstractRenderer | |
DEFAULT_OUTLINE_PAINT , DEFAULT_OUTLINE_STROKE , DEFAULT_PAINT , DEFAULT_SHAPE , DEFAULT_STROKE , DEFAULT_VALUE_LABEL_FONT , DEFAULT_VALUE_LABEL_PAINT , ZERO |
Constructor Summary | |
| |
|
Method Summary | |
void |
|
protected void |
|
boolean |
|
boolean |
|
void |
|
public CategoryStepRenderer()
Creates a new renderer (stagger defaults tofalse
).
public CategoryStepRenderer(boolean stagger)
Creates a new renderer.
- Parameters:
stagger
- should the horizontal part of the step be staggered by series?
public void drawItem(Graphics2D g2, CategoryItemRendererState state, 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.
protected void drawLine(Graphics2D g2, PlotOrientation orientation, double x0, double y0, double x1, double y1)
Draws the line.
- Parameters:
g2
- the graphics device.orientation
- the plot orientation.x0
- the x-coordinate for the start of the line.y0
- the y-coordinate for the start of the line.x1
- the x-coordinate for the end of the line.y1
- the y-coordinate for the end of the line.
public boolean equals(Object obj)
Tests this renderer for equality with an arbitrary object.
- Overrides:
- equals in interface AbstractCategoryItemRenderer
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public boolean getStagger()
Returns the flag that controls whether the series steps are staggered.
- Returns:
- A boolean.
public void setStagger(boolean shouldStagger)
Sets the flag that controls whether or not the series steps are staggered and sends aRendererChangeEvent
to all registered listeners.
- Parameters:
shouldStagger
- a boolean.