public static class XYPlot.XYPlotArea2D extends PlotArea
XYPlot
.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 drawing context.
|
java.awt.Paint |
getMajorGridColor()
Returns the paint which is used to paint the grid lines at major
ticks.
|
java.awt.Paint |
getMinorGridColor()
Returns the paint which is used to paint the grid lines at minor
ticks.
|
boolean |
isMajorGridX()
Returns whether horizontal grid lines at major ticks along the
x-axis are drawn.
|
boolean |
isMajorGridY()
Returns whether vertical grid lines at major ticks along the y-axis
are drawn.
|
boolean |
isMinorGridX()
Returns whether horizontal grid lines at minor ticks along the
x-axis are drawn.
|
boolean |
isMinorGridY()
Returns whether vertical grid lines at minor ticks along the y-axis
are drawn.
|
void |
setMajorGridColor(java.awt.Color color)
Sets the paint which will be used to paint the grid lines at major
ticks.
|
void |
setMajorGridX(boolean gridMajorX)
Sets whether horizontal grid lines at major ticks along the x-axis
will be drawn.
|
void |
setMajorGridY(boolean gridMajorY)
Sets whether vertical grid lines at major ticks along the y-axis
will be drawn.
|
void |
setMinorGridColor(java.awt.Color color)
Sets the paint which will be used to paint the grid lines at minor
ticks.
|
void |
setMinorGridX(boolean gridMinorX)
Sets whether horizontal grid lines at minor ticks along the x-axis
will be drawn.
|
void |
setMinorGridY(boolean gridMinorY)
Sets whether vertical grid lines at minor ticks along the y-axis
will be drawn.
|
drawBackground, drawBorder, getBackground, getBorderColor, getBorderStroke, getClippingOffset, setBackground, setBorderColor, setBorderStroke, setClippingArea
getBounds, getHeight, getPreferredSize, getWidth, getX, getY, setBounds, setBounds
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
public boolean isMajorGridX()
true
if horizontal grid lines at major ticks along
the x-axis are drawn, otherwise false
.public void setMajorGridX(boolean gridMajorX)
gridMajorX
- true
if horizontal grid lines at major
ticks along the x-axis should be drawn, otherwise false
.public boolean isMajorGridY()
true
if vertical grid lines at major ticks along the
y-axis are drawn, otherwise false
.public void setMajorGridY(boolean gridMajorY)
gridMajorY
- true
if vertical grid lines at major ticks
along the y-axis should be drawn, otherwise false
.public java.awt.Paint getMajorGridColor()
public void setMajorGridColor(java.awt.Color color)
color
- Paint which should be used to paint the grid lines at
major ticks.public boolean isMinorGridX()
true
if horizontal grid lines at minor ticks along
the x-axis are drawn, otherwise false
.public void setMinorGridX(boolean gridMinorX)
gridMinorX
- true
if horizontal grid lines at minor
ticks along the x-axis should be drawn, otherwise false
.public boolean isMinorGridY()
true
if vertical grid lines at minor ticks along the
y-axis are drawn, otherwise false
.public void setMinorGridY(boolean gridMinorY)
gridMinorY
- true
if vertical grid lines at minor ticks
along the y-axis should be drawn, otherwise false
.public java.awt.Paint getMinorGridColor()
public void setMinorGridColor(java.awt.Color color)
color
- Paint which should be used to paint the grid lines at
minor ticks.