public class GridRenderer extends Renderer implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
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.
|
DEFAULT_CURSOR, DOUBLE_CLICK_TIME, GRID_CURSOR_HORZ, GRID_CURSOR_VERT, HAND_CURSOR, RESIZE_CURSOR, RESIZE_HOR_CURSOR
Constructor and Description |
---|
GridRenderer()
Creates a grid renderer.
|
GridRenderer(Chart chart)
Creates a grid renderer fo the given chart.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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
public GridRenderer()
public GridRenderer(Chart chart)
chart
- The chart object.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