|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<GridPaintTags>
lt.monarch.chart.engine.AbstractGrid
public abstract class AbstractGrid extends AbstractChartObject<GridPaintTags>
Grid interface, for accessing basic functions of the grid.
| Modifier and Type | Field and Description |
|---|---|
protected PlaneMapper |
mapper
Plane mapper. |
protected int |
xDepth
grid x depth. |
protected AxisMapper |
xMapper
X mapper. |
protected int |
yDepth
grid y depth. |
protected AxisMapper |
yMapper
Y mapper. |
| Fields inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style |
| Constructor and Description |
|---|
AbstractGrid(PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
Abstract grid constructor |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(AbstractGrid src)
Copies grid settings from source grid (style, depths) |
void |
draw(AbstractGraphics g)
Renders chart object on the Graphics context. |
protected abstract void |
drawGrid(AxisMapper axisMapper,
int gridDepth,
boolean isVerticalGrid,
AbstractGraphics g,
Projector projector,
GeneralPoint ptt)
Draws the grid for the specified mapper |
PaintMode |
getPaintMode()
Returns the paint mode of the grid |
Projector |
getProjector()
Returns modified projector. |
int |
getSortPosition()
Returns chart object paint order index. |
int |
getXDepth()
Gets the x grid depth |
AxisMapper |
getXMapper()
Returns the X mapper that is set |
int |
getYDepth()
Gets the y grid depth |
AxisMapper |
getYMapper()
Returns the Y mapper that is set |
void |
setPaintMode(PaintMode paintMode)
Sets grid painting mode. |
void |
setXGridDepth(int xDepth)
Sets the grid depth. |
void |
setYGridDepth(int yDepth)
Sets the grid depth. |
| Methods inherited from class lt.monarch.chart.engine.AbstractChartObject |
|---|
activate, chart, copy, deactivate, dispose, finalize, getChart, getChartObjectBounds, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AxisMapper xMapper
protected final AxisMapper yMapper
protected int xDepth
setXGridDepth(int)protected int yDepth
setYGridDepth(int)protected final PlaneMapper mapper
| Constructor Detail |
|---|
public AbstractGrid(PlaneMapper mapper,
AxisMapper xMapper,
AxisMapper yMapper)
mapper - plane mapperxMapper - x axis mapperyMapper - y mapper| Method Detail |
|---|
public void draw(AbstractGraphics g)
ChartObject
g - graphics context
protected abstract void drawGrid(AxisMapper axisMapper,
int gridDepth,
boolean isVerticalGrid,
AbstractGraphics g,
Projector projector,
GeneralPoint ptt)
axisMapper - axis mappergridDepth - grid depthisVerticalGrid - is the grid verticalg - graphics contextprojector - projectorptt - Normalized point, to avoid point creationpublic int getSortPosition()
ChartObject
getSortPosition in interface ChartObjectgetSortPosition in class AbstractChartObject<GridPaintTags>public void setXGridDepth(int xDepth)
xDepth - grid depthpublic void setYGridDepth(int yDepth)
yDepth - grid depthpublic Projector getProjector()
public AxisMapper getYMapper()
public AxisMapper getXMapper()
public int getYDepth()
public int getXDepth()
public final void setPaintMode(PaintMode paintMode)
paintMode - The paintMode to set.public final PaintMode getPaintMode()
public void copy(AbstractGrid src)
src - source grid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||