org.swtchart.internal.Grid Class Reference

A grid. More...

Inheritance diagram for org.swtchart.internal.Grid:
Inheritance graph
[legend]
Collaboration diagram for org.swtchart.internal.Grid:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Grid (Axis axis)
 Constructor.
Color getForeground ()
 Gets the foreground color.
void setForeground (Color color)
 Sets the foreground color.
LineStyle getStyle ()
 Gets the line style.
void setStyle (LineStyle style)

Protected Member Functions

void draw (GC gc, int width, int height)
 Draws grid.

Private Attributes

Axis axis
 the axis
Color color
 the grid color
boolean isVisible
 the visibility state
LineStyle lineStyle
 the line style

Static Private Attributes

static final int LINE_WIDTH = 1
 the line width
static final LineStyle DEFAULT_STYLE = LineStyle.DOT
 the default style
static final int DEFAULT_FOREGROUND = SWT.COLOR_GRAY
 the default color

Detailed Description

A grid.

Definition at line 22 of file Grid.java.


Constructor & Destructor Documentation

org.swtchart.internal.Grid.Grid ( Axis  axis  ) 

Member Function Documentation

void org.swtchart.internal.Grid.draw ( GC  gc,
int  width,
int  height 
) [protected]
Color org.swtchart.internal.Grid.getForeground (  ) 

Gets the foreground color.

Returns:
the foreground color

Implements org.swtchart.IGrid.

Definition at line 62 of file Grid.java.

References org.swtchart.internal.Grid.color, and org.swtchart.internal.Grid.DEFAULT_FOREGROUND.

Referenced by org.swtchart.internal.Grid.draw().

Here is the caller graph for this function:

LineStyle org.swtchart.internal.Grid.getStyle (  ) 

Gets the line style.

Returns:
the line style.

Implements org.swtchart.IGrid.

Definition at line 88 of file Grid.java.

References org.swtchart.internal.Grid.lineStyle.

void org.swtchart.internal.Grid.setForeground ( Color  color  ) 

Sets the foreground color.

Parameters:
color the foreground color

Implements org.swtchart.IGrid.

Definition at line 72 of file Grid.java.

References org.swtchart.internal.Grid.DEFAULT_FOREGROUND.

void org.swtchart.internal.Grid.setStyle ( LineStyle  style  ) 

Member Data Documentation

the axis

Definition at line 25 of file Grid.java.

Referenced by org.swtchart.internal.Grid.draw().

the grid color

Definition at line 28 of file Grid.java.

Referenced by org.swtchart.internal.Grid.getForeground(), and org.swtchart.internal.Grid.Grid().

final int org.swtchart.internal.Grid.DEFAULT_FOREGROUND = SWT.COLOR_GRAY [static, private]
final LineStyle org.swtchart.internal.Grid.DEFAULT_STYLE = LineStyle.DOT [static, private]

the default style

Definition at line 40 of file Grid.java.

Referenced by org.swtchart.internal.Grid.Grid(), and org.swtchart.internal.Grid.setStyle().

the visibility state

Definition at line 31 of file Grid.java.

Referenced by org.swtchart.internal.Grid.draw(), and org.swtchart.internal.Grid.Grid().

final int org.swtchart.internal.Grid.LINE_WIDTH = 1 [static, private]

the line width

Definition at line 37 of file Grid.java.

Referenced by org.swtchart.internal.Grid.draw().


The documentation for this class was generated from the following file:

Generated on 26 Oct 2015 for SWTChart.org by  doxygen 1.6.1