|
|||||||||
| Home >> All >> org >> jfree >> chart >> renderer >> [ category overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfree.chart.renderer.category
Class BarRenderer3D

java.lang.Objectorg.jfree.chart.renderer.AbstractRenderer
org.jfree.chart.renderer.category.AbstractCategoryItemRenderer
org.jfree.chart.renderer.category.BarRenderer
org.jfree.chart.renderer.category.BarRenderer3D
- All Implemented Interfaces:
- CategoryItemRenderer, java.lang.Cloneable, org.jfree.chart.Effect3D, org.jfree.chart.LegendItemSource, org.jfree.util.PublicCloneable, java.io.Serializable
- Direct Known Subclasses:
- StackedBarRenderer3D
- public class BarRenderer3D
- extends BarRenderer
- implements org.jfree.chart.Effect3D, java.lang.Cloneable, org.jfree.util.PublicCloneable, java.io.Serializable
- extends BarRenderer
A renderer for bars with a 3D effect, for use with the org.jfree.chart.plot.CategoryPlot class.
| Field Summary | |
static java.awt.Paint |
DEFAULT_WALL_PAINT
The default wall paint. |
static double |
DEFAULT_X_OFFSET
The default x-offset for the 3D effect. |
static double |
DEFAULT_Y_OFFSET
The default y-offset for the 3D effect. |
private static long |
serialVersionUID
For serialization. |
private java.awt.Paint |
wallPaint
The paint used to shade the left and lower 3D wall. |
private double |
xOffset
The size of x-offset for the 3D effect. |
private double |
yOffset
The size of y-offset for the 3D effect. |
| Fields inherited from class org.jfree.chart.renderer.category.BarRenderer |
BAR_OUTLINE_WIDTH_THRESHOLD, DEFAULT_ITEM_MARGIN |
| Fields inherited from class org.jfree.chart.renderer.category.AbstractCategoryItemRenderer |
|
| 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 | |
BarRenderer3D()
Default constructor, creates a renderer with a ten pixel '3D effect'. |
|
BarRenderer3D(double xOffset,
double yOffset)
Constructs a new renderer with the specified '3D effect'. |
|
| Method Summary | |
void |
drawBackground(java.awt.Graphics2D g2,
org.jfree.chart.plot.CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea)
Draws the background for the plot. |
void |
drawDomainGridline(java.awt.Graphics2D g2,
org.jfree.chart.plot.CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea,
double value)
Draws a grid line against the domain axis. |
void |
drawItem(java.awt.Graphics2D g2,
CategoryItemRendererState state,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.CategoryAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis,
org.jfree.data.category.CategoryDataset dataset,
int row,
int column,
int pass)
Draws a 3D bar to represent one data item. |
void |
drawOutline(java.awt.Graphics2D g2,
org.jfree.chart.plot.CategoryPlot plot,
java.awt.geom.Rectangle2D dataArea)
Draws the outline for the plot. |
void |
drawRangeGridline(java.awt.Graphics2D g2,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.ValueAxis axis,
java.awt.geom.Rectangle2D dataArea,
double value)
Draws a grid line against the range axis. |
void |
drawRangeMarker(java.awt.Graphics2D g2,
org.jfree.chart.plot.CategoryPlot plot,
org.jfree.chart.axis.ValueAxis axis,
org.jfree.chart.plot.Marker marker,
java.awt.geom.Rectangle2D dataArea)
Draws a range marker. |
java.awt.Paint |
getWallPaint()
Returns the paint used to highlight the left and bottom wall in the plot background. |
double |
getXOffset()
Returns the x-offset for the 3D effect. |
double |
getYOffset()
Returns the y-offset for the 3D effect. |
CategoryItemRendererState |
initialise(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.plot.CategoryPlot plot,
int rendererIndex,
org.jfree.chart.plot.PlotRenderingInfo info)
Initialises the renderer and returns a state object that will be passed to subsequent calls to the drawItem method. |
private void |
readObject(java.io.ObjectInputStream stream)
Provides serialization support. |
void |
setWallPaint(java.awt.Paint paint)
Sets the paint used to hightlight the left and bottom walls in the plot background. |
private void |
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.util.PublicCloneable |
clone |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- For serialization.
- See Also:
- Constant Field Values
DEFAULT_X_OFFSET
public static final double DEFAULT_X_OFFSET
- The default x-offset for the 3D effect.
- See Also:
- Constant Field Values
DEFAULT_Y_OFFSET
public static final double DEFAULT_Y_OFFSET
- The default y-offset for the 3D effect.
- See Also:
- Constant Field Values
DEFAULT_WALL_PAINT
public static final java.awt.Paint DEFAULT_WALL_PAINT
- The default wall paint.
xOffset
private double xOffset
- The size of x-offset for the 3D effect.
yOffset
private double yOffset
- The size of y-offset for the 3D effect.
wallPaint
private transient java.awt.Paint wallPaint
- The paint used to shade the left and lower 3D wall.
| Constructor Detail |
BarRenderer3D
public BarRenderer3D()
- Default constructor, creates a renderer with a ten pixel '3D effect'.
BarRenderer3D
public BarRenderer3D(double xOffset,
double yOffset)
- Constructs a new renderer with the specified '3D effect'.
| Method Detail |
getXOffset
public double getXOffset()
- Returns the x-offset for the 3D effect.
- Specified by:
getXOffsetin interfaceorg.jfree.chart.Effect3D
getYOffset
public double getYOffset()
- Returns the y-offset for the 3D effect.
- Specified by:
getYOffsetin interfaceorg.jfree.chart.Effect3D
getWallPaint
public java.awt.Paint getWallPaint()
- Returns the paint used to highlight the left and bottom wall in the plot
background.
setWallPaint
public void setWallPaint(java.awt.Paint paint)
- Sets the paint used to hightlight the left and bottom walls in the plot
background.
initialise
public CategoryItemRendererState initialise(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.plot.CategoryPlot plot, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)
- Initialises the renderer and returns a state object that will be passed
to subsequent calls to the drawItem method. This method gets called
once at the start of the process of drawing a chart.
- Specified by:
initialisein interfaceCategoryItemRenderer- Overrides:
initialisein classBarRenderer
drawBackground
public void drawBackground(java.awt.Graphics2D g2, org.jfree.chart.plot.CategoryPlot plot, java.awt.geom.Rectangle2D dataArea)
- Draws the background for the plot.
- Specified by:
drawBackgroundin interfaceCategoryItemRenderer- Overrides:
drawBackgroundin classAbstractCategoryItemRenderer
drawOutline
public void drawOutline(java.awt.Graphics2D g2, org.jfree.chart.plot.CategoryPlot plot, java.awt.geom.Rectangle2D dataArea)
- Draws the outline for the plot.
- Specified by:
drawOutlinein interfaceCategoryItemRenderer- Overrides:
drawOutlinein classAbstractCategoryItemRenderer
drawDomainGridline
public void drawDomainGridline(java.awt.Graphics2D g2, org.jfree.chart.plot.CategoryPlot plot, java.awt.geom.Rectangle2D dataArea, double value)
- Draws a grid line against the domain axis.
- Specified by:
drawDomainGridlinein interfaceCategoryItemRenderer- Overrides:
drawDomainGridlinein classAbstractCategoryItemRenderer
drawRangeGridline
public void drawRangeGridline(java.awt.Graphics2D g2, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.ValueAxis axis, java.awt.geom.Rectangle2D dataArea, double value)
- Draws a grid line against the range axis.
- Specified by:
drawRangeGridlinein interfaceCategoryItemRenderer- Overrides:
drawRangeGridlinein classAbstractCategoryItemRenderer
drawRangeMarker
public void drawRangeMarker(java.awt.Graphics2D g2, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.ValueAxis axis, org.jfree.chart.plot.Marker marker, java.awt.geom.Rectangle2D dataArea)
- Draws a range marker.
- Specified by:
drawRangeMarkerin interfaceCategoryItemRenderer- Overrides:
drawRangeMarkerin classAbstractCategoryItemRenderer
drawItem
public void drawItem(java.awt.Graphics2D g2, CategoryItemRendererState state, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.plot.CategoryPlot plot, org.jfree.chart.axis.CategoryAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.data.category.CategoryDataset dataset, int row, int column, int pass)
- Draws a 3D bar to represent one data item.
- Specified by:
drawItemin interfaceCategoryItemRenderer- Overrides:
drawItemin classBarRenderer
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException
- Provides serialization support.
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
- Provides serialization support.
|
|||||||||
| Home >> All >> org >> jfree >> chart >> renderer >> [ category overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC