edu.rit.numeric.plot.impl
Class Grid
- java.lang.Object
-
- edu.rit.numeric.plot.impl.Grid
-
public class Grid extends java.lang.ObjectClass Grid provides a grid for a plot. The grid specifies the stroke and paint to use for the grid lines, which are drawn at each major and minor division along each axis.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.awt.PaintDEFAULT_PAINTThe default gridline paint (black).static java.awt.StrokeDEFAULT_STROKEThe default gridline stroke (solid, width=0.2).
-
Constructor Summary
Constructors Constructor and Description Grid()Construct a new grid that uses the default gridline stroke and paint for the major divisions.Grid(java.awt.Stroke theMajorStroke, java.awt.Paint theMajorPaint)Construct a new grid that uses the given gridline stroke and paint for the major divisions.Grid(java.awt.Stroke theMajorStroke, java.awt.Paint theMajorPaint, java.awt.Stroke theMinorStroke, java.awt.Paint theMinorPaint)Construct a new grid that uses the given gridline stroke and paint for the major and minor divisions.
-
-
-
Field Detail
-
DEFAULT_STROKE
public static final java.awt.Stroke DEFAULT_STROKE
The default gridline stroke (solid, width=0.2).
-
DEFAULT_PAINT
public static final java.awt.Paint DEFAULT_PAINT
The default gridline paint (black).
-
-
Constructor Detail
-
Grid
public Grid()
Construct a new grid that uses the default gridline stroke and paint for the major divisions. Minor divisions do not appear in the grid.
-
Grid
public Grid(java.awt.Stroke theMajorStroke, java.awt.Paint theMajorPaint)Construct a new grid that uses the given gridline stroke and paint for the major divisions. Minor divisions do not appear in the grid.- Parameters:
theMajorStroke- Gridline stroke for major divisions, or null not to draw gridlines for major divisions.theMajorPaint- Gridline paint for major divisions, or null not to draw gridlines for major divisions.
-
Grid
public Grid(java.awt.Stroke theMajorStroke, java.awt.Paint theMajorPaint, java.awt.Stroke theMinorStroke, java.awt.Paint theMinorPaint)Construct a new grid that uses the given gridline stroke and paint for the major and minor divisions.- Parameters:
theMajorStroke- Gridline stroke for major divisions, or null not to draw gridlines for major divisions.theMajorPaint- Gridline paint for major divisions, or null not to draw gridlines for major divisions.theMinorStroke- Gridline stroke for minor divisions, or null not to draw gridlines for minor divisions.theMinorPaint- Gridline paint for minor divisions, or null not to draw gridlines for minor divisions.
-
-
DMelt 3.0 © DataMelt by jWork.ORG