Package org.swtchart.internal
Class Grid
- java.lang.Object
-
- org.swtchart.internal.Grid
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
draw(GC gc, int width, int height)
Draws grid.Color
getForeground()
Gets the foreground color.LineStyle
getStyle()
Gets the line style.void
setForeground(Color color)
Sets the foreground color.void
setStyle(LineStyle style)
Sets the line style.
-
-
-
Constructor Detail
-
Grid
public Grid(Axis axis)
Constructor.- Parameters:
axis
- the axis
-
-
Method Detail
-
getForeground
public Color getForeground()
Description copied from interface:IGrid
Gets the foreground color.- Specified by:
getForeground
in interfaceIGrid
- Returns:
- the foreground color
-
setForeground
public void setForeground(Color color)
Description copied from interface:IGrid
Sets the foreground color.- Specified by:
setForeground
in interfaceIGrid
- Parameters:
color
- the foreground color
-
setStyle
public void setStyle(LineStyle style)
Description copied from interface:IGrid
Sets 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
-
-