public static class XYPlot.XYPlotArea2D extends PlotArea
XYPlot
.Modifier and Type | Field and Description |
---|---|
static Key |
GRID_MAJOR_COLOR
Key for specifying the
Paint instance to be used
to paint the grid lines of major ticks. |
static Key |
GRID_MAJOR_X
Key for specifying a
Boolean value which decides whether
horizontal grid lines at major ticks along x-axis are drawn. |
static Key |
GRID_MAJOR_Y
Key for specifying a
Boolean value which decides whether
vertical grid lines at major ticks along y-axis are drawn. |
static Key |
GRID_MINOR_COLOR
Key for specifying the
Paint instance to be used
to paint the grid lines of minor ticks. |
static Key |
GRID_MINOR_X
Key for specifying a
Boolean value which decides whether
horizontal grid lines at minor ticks along x-axis are drawn. |
static Key |
GRID_MINOR_Y
Key for specifying a
Boolean value which decides whether
vertical grid lines at minor ticks along y-axis are drawn. |
BACKGROUND, BORDER, CLIPPING, COLOR
Constructor and Description |
---|
XYPlot.XYPlotArea2D(XYPlot plot)
Creates a new instance with default settings and initializes it with
a plot serving as data provider.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(DrawingContext context)
Draws the
Drawable with the specified Graphics2D
object. |
protected void |
drawGrid(DrawingContext context)
Draws the grid using the specified drawing context.
|
protected void |
drawPlot(DrawingContext context)
Draws the data using the specified Graphics2D object.
|
drawBackground, drawBorder, settingChanged
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
getBounds, getHeight, getPreferredSize, getWidth, getX, getY, setBounds, setBounds
public static final Key GRID_MAJOR_X
Boolean
value which decides whether
horizontal grid lines at major ticks along x-axis are drawn.public static final Key GRID_MAJOR_Y
Boolean
value which decides whether
vertical grid lines at major ticks along y-axis are drawn.public static final Key GRID_MAJOR_COLOR
Paint
instance to be used
to paint the grid lines of major ticks.public static final Key GRID_MINOR_X
Boolean
value which decides whether
horizontal grid lines at minor ticks along x-axis are drawn.public static final Key GRID_MINOR_Y
Boolean
value which decides whether
vertical grid lines at minor ticks along y-axis are drawn.public XYPlot.XYPlotArea2D(XYPlot plot)
plot
- Data provider.public void draw(DrawingContext context)
Drawable
with the specified Graphics2D
object.context
- Environment used for drawingprotected void drawGrid(DrawingContext context)
context
- Environment used for drawing.protected void drawPlot(DrawingContext context)
PlotArea
Copyright © 2009-2013. All Rights Reserved.