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 voiddraw(org.eclipse.swt.graphics.GC gc, int width, int height)Draws grid.org.eclipse.swt.graphics.ColorgetForeground()Gets the foreground color.LineStylegetStyle()Gets the line style.voidsetForeground(org.eclipse.swt.graphics.Color color)Sets the foreground color.voidsetStyle(LineStyle style)Sets the line style.
-
-
-
Constructor Detail
-
Grid
public Grid(Axis axis)
Constructor.- Parameters:
axis- the axis
-
-
Method Detail
-
getForeground
public org.eclipse.swt.graphics.Color getForeground()
Description copied from interface:IGridGets the foreground color.- Specified by:
getForegroundin interfaceIGrid- Returns:
- the foreground color
-
setForeground
public void setForeground(org.eclipse.swt.graphics.Color color)
Description copied from interface:IGridSets the foreground color.- Specified by:
setForegroundin interfaceIGrid- Parameters:
color- the foreground color
-
setStyle
public void setStyle(LineStyle style)
Description copied from interface:IGridSets the line style.
-
draw
protected void draw(org.eclipse.swt.graphics.GC gc, int width, int height)Draws grid.- Parameters:
gc- the graphics contextwidth- the width to draw gridheight- the height to draw grid
-
-