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 void
draw
(org.eclipse.swt.graphics.GC gc, int width, int height) Draws grid.org.eclipse.swt.graphics.Color
Gets the foreground color.getStyle()
Gets the line style.void
setForeground
(org.eclipse.swt.graphics.Color color) Sets the foreground color.void
Sets the line style.
-
Constructor Details
-
Grid
Constructor.- Parameters:
axis
- the axis
-
-
Method Details
-
getForeground
public org.eclipse.swt.graphics.Color getForeground()Description copied from interface:IGrid
Gets the foreground color.- Specified by:
getForeground
in interfaceIGrid
- Returns:
- the foreground color
-
setForeground
public void setForeground(org.eclipse.swt.graphics.Color color) Description copied from interface:IGrid
Sets the foreground color.- Specified by:
setForeground
in interfaceIGrid
- Parameters:
color
- the foreground color
-
getStyle
Description copied from interface:IGrid
Gets the line style. -
setStyle
Description copied from interface:IGrid
Sets 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
-