Package org.swtchart.internal
Class Grid
java.lang.Object
org.swtchart.internal.Grid
- All Implemented Interfaces:
IGrid
A grid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddraw(GC gc, int width, int height) Draws grid.ColorGets the foreground color.getStyle()Gets the line style.voidsetForeground(Color color) Sets the foreground color.voidSets the line style.
-
Constructor Details
-
Grid
Constructor.- Parameters:
axis- the axis
-
-
Method Details
-
getForeground
public Color getForeground()Description copied from interface:IGridGets the foreground color.- Specified by:
getForegroundin interfaceIGrid- Returns:
- the foreground color
-
setForeground
public void setForeground(Color color) Description copied from interface:IGridSets the foreground color.- Specified by:
setForegroundin interfaceIGrid- Parameters:
color- the foreground color
-
getStyle
Description copied from interface:IGridGets the line style. -
setStyle
Description copied from interface:IGridSets the line style. -
draw
protected void draw(GC gc, int width, int height) Draws grid.- Parameters:
gc- the graphics contextwidth- the width to draw gridheight- the height to draw grid
-