|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.render.AbstractRenderer com.jidesoft.chart.render.AbstractBarRenderer com.jidesoft.chart.render.Bar3DRenderer
public class Bar3DRenderer
A class that renders the bars of a bar chart in 3D
Field Summary |
---|
Fields inherited from class com.jidesoft.chart.render.AbstractRenderer |
---|
alwaysShowOutlines, PROPERTY_OUTLINE_WIDTH, ROLLOVER_INTENSITY, support |
Constructor Summary | |
---|---|
Bar3DRenderer()
|
Method Summary | |
---|---|
protected Paint |
createFrontPaint(Orientation orientation,
Color color,
int x,
int y,
int width,
int height,
int depth)
|
protected Paint |
createSidePaint(Orientation orientation,
Color color,
int x,
int y,
int width,
int height,
int depth)
|
protected Paint |
createTopPaint(Orientation orientation,
Color color,
int x,
int y,
int width,
int height,
int depth)
|
double |
getAngle()
Returns the angle in degrees for the z axis as a deviation from the x axis |
double |
getDepthRatio()
Return the depth of the bar as a proportion of its width |
int |
getMinimumBreadth()
|
ZAlignment |
getZAlignment()
|
Shape |
renderBar(Graphics2D g,
Chart chart,
ChartModel m,
Chartable p,
boolean isSelected,
boolean hasRollover,
boolean hasFocus,
double x,
double y,
double width,
double height)
There is one call to this method for each bar to be rendered in a bar chart. |
Shape |
renderBar(Graphics g,
Chart chart,
ChartModel m,
Chartable p,
boolean isSelected,
boolean hasRollover,
boolean hasFocus,
int x,
int y,
int width,
int height)
There is one call to this method for each bar to be rendered in a bar chart. |
void |
setAngle(double angle)
Specify the angle from horizontal (in degrees) for the z axis to give the 3D effect. |
void |
setDepthRatio(double depthRatio)
Specify the depth of the bar (in the z direction) as a proportion of its width. |
void |
setZAlignment(ZAlignment zAlignment)
|
Methods inherited from class com.jidesoft.chart.render.AbstractBarRenderer |
---|
computeLabel, createBarPaint, getBarColor, getLabelStyle, getPointLabeler, isLabelsVisible, isZeroHeightBarsVisible, renderBarLabel, setLabelStyle, setLabelsVisible, setPointLabeler, setZeroHeightBarsVisible |
Methods inherited from class com.jidesoft.chart.render.AbstractRenderer |
---|
addPropertyChangeListener, getOutlineColor, getOutlineWidth, getSelectionColor, isAlwaysShowOutlines, removePropertyChangeListener, setAlwaysShowOutlines, setOutlineColor, setOutlineWidth, setSelectionColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bar3DRenderer()
Method Detail |
---|
public int getMinimumBreadth()
getMinimumBreadth
in interface BarRenderer
getMinimumBreadth
in interface BarRenderer2D
public double getAngle()
public void setAngle(double angle)
angle
- the angle for the z axis from the horizontal (in degrees)public double getDepthRatio()
public void setDepthRatio(double depthRatio)
depthRatio
- the depth of the bar in the z directionpublic ZAlignment getZAlignment()
public void setZAlignment(ZAlignment zAlignment)
public Shape renderBar(Graphics2D g, Chart chart, ChartModel m, Chartable p, boolean isSelected, boolean hasRollover, boolean hasFocus, double x, double y, double width, double height)
renderBar
in interface BarRenderer2D
g
- the graphics context onto which the bar is drawnchart
- the chart objectm
- the chart model from which the bar/point comesp
- the point of the model corresponding to the barisSelected
- whether the bar is currently selectedhasRollover
- whether the bar currently is under the mouse cursorhasFocus
- whether the bar currently has focus (not yet supported)x
- the x pixel coordinate for the top left of the bary
- the y pixel coordinate for the top left of the barwidth
- the width of the bar in pixelsheight
- the height of the bar in pixelspublic Shape renderBar(Graphics g, Chart chart, ChartModel m, Chartable p, boolean isSelected, boolean hasRollover, boolean hasFocus, int x, int y, int width, int height)
renderBar
in interface BarRenderer
g
- the graphics context onto which the bar is drawnchart
- the chart objectm
- the chart model from which the bar/point comesp
- the point of the model corresponding to the barisSelected
- whether the bar is currently selectedhasRollover
- whether the bar currently is under the mouse cursorhasFocus
- whether the bar currently has focus (not yet supported)x
- the x pixel coordinate for the top left of the bary
- the y pixel coordinate for the top left of the barwidth
- the width of the bar in pixelsheight
- the height of the bar in pixelsprotected Paint createTopPaint(Orientation orientation, Color color, int x, int y, int width, int height, int depth)
protected Paint createSidePaint(Orientation orientation, Color color, int x, int y, int width, int height, int depth)
protected Paint createFrontPaint(Orientation orientation, Color color, int x, int y, int width, int height, int depth)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |