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.xy.AbstractXYItemRenderer
org.jfree.chart.renderer.xy.XYLineAndShapeRenderer
org.jfree.chart.renderer.xy.XYLine3DRenderer
Nested Class Summary |
Nested classes/interfaces inherited from class org.jfree.chart.renderer.xy.XYLineAndShapeRenderer | |
XYLineAndShapeRenderer.State |
Field Summary | |
static Paint |
|
static double |
|
static double |
|
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 | |
protected void |
|
int |
|
Paint |
|
double |
|
double |
|
protected boolean |
|
protected boolean |
|
protected boolean |
|
void |
|
void |
|
void |
|
public static final double DEFAULT_X_OFFSET
The default x-offset for the 3D effect.
- Field Value:
- 12.0
public static final double DEFAULT_Y_OFFSET
The default y-offset for the 3D effect.
- Field Value:
- 8.0
protected void drawFirstPassShape(Graphics2D g2, int pass, int series, int item, Shape shape)
Overrides the method in the subclass to draw a shadow in the first pass.
- Overrides:
- drawFirstPassShape in interface XYLineAndShapeRenderer
- Parameters:
g2
- the graphics device.pass
- the pass.series
- the series index (zero-based).item
- the item index (zero-based).shape
- the shape.
public int getPassCount()
Returns the number of passes through the data that the renderer requires in order to draw the chart. Most charts will require a single pass, but some require two passes.
- Specified by:
- getPassCount in interface XYItemRenderer
- Overrides:
- getPassCount in interface XYLineAndShapeRenderer
- Returns:
- The pass count.
public Paint getWallPaint()
Returns the paint used to highlight the left and bottom wall in the plot background.
- Returns:
- The paint.
public double getXOffset()
Returns the x-offset for the 3D effect.
- Specified by:
- getXOffset in interface Effect3D
- Returns:
- The 3D effect.
public double getYOffset()
Returns the y-offset for the 3D effect.
- Specified by:
- getYOffset in interface Effect3D
- Returns:
- The 3D effect.
protected boolean isItemPass(int pass)
Returnstrue
if the specified pass involves drawing items.
- Overrides:
- isItemPass in interface XYLineAndShapeRenderer
- Parameters:
pass
- the pass.
- Returns:
- A boolean.
protected boolean isLinePass(int pass)
Returnstrue
if the specified pass involves drawing lines.
- Overrides:
- isLinePass in interface XYLineAndShapeRenderer
- Parameters:
pass
- the pass.
- Returns:
- A boolean.
protected boolean isShadowPass(int pass)
Returnstrue
if the specified pass involves drawing shadows.
- Parameters:
pass
- the pass.
- Returns:
- A boolean.
public void setWallPaint(Paint paint)
Sets the paint used to hightlight the left and bottom walls in the plot background.
- Parameters:
paint
- the paint.
public void setXOffset(double xOffset)
Sets the x-offset and sends aRendererChangeEvent
to all registered listeners.
- Parameters:
xOffset
- the x-offset.
public void setYOffset(double yOffset)
Sets the y-offset and sends aRendererChangeEvent
to all registered listeners.
- Parameters:
yOffset
- the y-offset.