Modifier and Type | Method and Description |
---|---|
protected void |
draw(org.eclipse.swt.graphics.GC gc,
int width,
int height)
Draws grid.
|
org.eclipse.swt.graphics.Color |
getForeground()
Gets the foreground color.
|
LineStyle |
getStyle()
Gets the line style.
|
void |
setForeground(org.eclipse.swt.graphics.Color color)
Sets the foreground color.
|
void |
setStyle(LineStyle style)
Sets the line style.
|
public Grid(Axis axis)
axis
- the axispublic org.eclipse.swt.graphics.Color getForeground()
IGrid
getForeground
in interface IGrid
public void setForeground(org.eclipse.swt.graphics.Color color)
IGrid
setForeground
in interface IGrid
color
- the foreground colorpublic void setStyle(LineStyle style)
IGrid
protected void draw(org.eclipse.swt.graphics.GC gc, int width, int height)
gc
- the graphics contextwidth
- the width to draw gridheight
- the height to draw gridCopyright © 2018. All rights reserved.