JIDE 3.5.15

com.jidesoft.chart.render
Class Axis3DRenderer

java.lang.Object
  extended by com.jidesoft.chart.render.Axis3DRenderer
All Implemented Interfaces:
AxisRenderer

public class Axis3DRenderer
extends Object
implements AxisRenderer

A class that renderers a three dimensional 'platform'-like axis.


Constructor Summary
Axis3DRenderer()
          Create an Axis3DRenderer
 
Method Summary
 double getAngle()
          Returns the angle in degrees currently used for the z axis lines in the Axis3DRenderer
 int getBreadth()
          Returns the breadth of the axis
 double getDepthProportion()
           
 int getFrontHeight()
          Returns the height of the front of the 3D axis, either by simply returning the value provided in the setter, or if null, by calculating a value based on the frontHeightProportion.
 ZAlignment getZAlignment()
           
 void renderAxis(Graphics g, int x, int y, int length, Orientation orientation)
          When rendering horizontally the supplied y coordinate is the centre of the rendered breadth
 void setAngle(double angle)
          Specify the angle in degrees for the z axis lines in the 3D axis 'platform'.
 void setBreadth(int breadth)
          Specify the breadth of the axis
 void setDepthProportion(double depthProportion)
          Specify how much of the available breadth the axis will use.
 void setFrontHeight(Integer frontHeight)
          This method enables you to specify the front height of the 3D axis in terms of pixels.
 void setFrontHeightProportion(double frontHeightProportion)
          Set a height for the front of the 3D axis as a proportion of the available space.
 void setZAlignment(ZAlignment zAlignment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis3DRenderer

public Axis3DRenderer()
Create an Axis3DRenderer

Method Detail

getAngle

public double getAngle()
Returns the angle in degrees currently used for the z axis lines in the Axis3DRenderer

Returns:
the angle in degrees used when drawing z axis lines

setAngle

public void setAngle(double angle)
Specify the angle in degrees for the z axis lines in the 3D axis 'platform'. Default is 35 degrees.

Parameters:
angle - the angle in degrees for the z axis lines

getDepthProportion

public double getDepthProportion()

setDepthProportion

public void setDepthProportion(double depthProportion)
Specify how much of the available breadth the axis will use. Default value is 1.0

Parameters:
depthProportion - specifies depth as a proportion of the available space

getBreadth

public int getBreadth()
Returns the breadth of the axis

Specified by:
getBreadth in interface AxisRenderer
Returns:
the breadth of the axis

setBreadth

public void setBreadth(int breadth)
Specify the breadth of the axis

Specified by:
setBreadth in interface AxisRenderer
Parameters:
breadth - the new breadth of the axis

getFrontHeight

public int getFrontHeight()
Returns the height of the front of the 3D axis, either by simply returning the value provided in the setter, or if null, by calculating a value based on the frontHeightProportion.

Returns:
the height of the front of the 3D axis in pixels

setFrontHeight

public void setFrontHeight(Integer frontHeight)
This method enables you to specify the front height of the 3D axis in terms of pixels. If the frontHeight value supplied here is null (the default value) then the frontHeight is calculated using the frontHeightProportion. Otherwise a non-null value has been supplied and that value will be used as a fixed pixel height.

Parameters:
frontHeight - the height of the front of the axis in pixels, or null if it is to be calculated from the frontHeightProportion.

setFrontHeightProportion

public void setFrontHeightProportion(double frontHeightProportion)
Set a height for the front of the 3D axis as a proportion of the available space.

Parameters:
frontHeightProportion - the height of the front of the 3D axis as a proportion of the available space

getZAlignment

public ZAlignment getZAlignment()

setZAlignment

public void setZAlignment(ZAlignment zAlignment)

renderAxis

public void renderAxis(Graphics g,
                       int x,
                       int y,
                       int length,
                       Orientation orientation)
When rendering horizontally the supplied y coordinate is the centre of the rendered breadth

Specified by:
renderAxis in interface AxisRenderer

JIDE 3.5.15