|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objectplanet.chart.Renderer com.objectplanet.chart.GridRenderer
public class GridRenderer
This class contains methods to render the chart grid.
Field Summary | |
---|---|
static int |
BOTTOM
Bottom grid adjustment. |
static int |
HORIZONTAL
Horizontal bar alignment. |
protected long |
lastClickTime
|
static int |
LEFT
Left grid adjustment. |
static int |
RIGHT
Right grid adjustment. |
static int |
TOP
Top grid adjustment. |
static int |
VERTICAL
Vertical bar alignment. |
Fields inherited from class com.objectplanet.chart.Renderer |
---|
DEFAULT_CURSOR, DOUBLE_CLICK_TIME, GRID_CURSOR_HORZ, GRID_CURSOR_VERT, HAND_CURSOR, RESIZE_CURSOR, RESIZE_HOR_CURSOR |
Constructor Summary | |
---|---|
GridRenderer()
Creates a grid renderer. |
|
GridRenderer(Chart chart)
Creates a grid renderer fo the given chart. |
Method Summary | |
---|---|
protected java.awt.Rectangle |
getDataBounds(Grid grid)
This method returns the bounding box for the data to be drawn in. |
protected java.awt.Rectangle |
getGraphBounds()
This method returns the bounding box around the chart itself. |
protected java.awt.Rectangle |
getTotalGraphBounds()
Gets the bounds of the graph including all ranges and labels but without legend. |
protected void |
paintMouseBox(java.awt.Graphics g)
Paints the mouse box used to zoom the chart. |
protected void |
paintZoomOutButton(java.awt.Graphics g,
Grid grid,
java.awt.Rectangle bounds)
Paints the button used to zoom out the chart |
void |
run()
Internal do not call. |
Methods inherited from class com.objectplanet.chart.Renderer |
---|
clearBackground, fifo_add, fifo_clear, fifo_remove, getAngledLabelCache, getAngledLabelSize, getBrighter, getDarker, getfifo_count, getfifo_queue, getFont, getFontMetrics, getImageSize, getLabel, getLabelAngle, getLabelSize, getSampleCount, getSeriesCount, hashCode, paintBox, paintLabel, setLabelAngleCacheSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BOTTOM
public static final int HORIZONTAL
protected long lastClickTime
public static final int LEFT
public static final int RIGHT
public static final int TOP
public static final int VERTICAL
Constructor Detail |
---|
public GridRenderer()
public GridRenderer(Chart chart)
chart
- The chart object.Method Detail |
---|
protected java.awt.Rectangle getDataBounds(Grid grid)
grid
- The grid to paint.
java.lang.IllegalArgumentException
- if the grid is null.protected java.awt.Rectangle getGraphBounds()
java.lang.IllegalArgumentException
- If labels is null.protected java.awt.Rectangle getTotalGraphBounds()
protected void paintMouseBox(java.awt.Graphics g)
g
- The graphics context used to paint with.protected void paintZoomOutButton(java.awt.Graphics g, Grid grid, java.awt.Rectangle bounds)
g
- The graphics context used to paint with.grid
- The chart grid to paint.bounds
- The chart grid bounds.public void run()
run
in interface java.lang.Runnable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |