public abstract class PlotArea extends AbstractDrawable
Constructor and Description |
---|
PlotArea()
Initializes a new instance with default background color and border.
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawBackground(DrawingContext context)
Draws the background of this legend with the specified drawing context.
|
protected void |
drawBorder(DrawingContext context)
Draws the border of this Legend with the specified drawing context.
|
protected abstract void |
drawPlot(DrawingContext context)
Draws the data using the specified drawing context.
|
java.awt.Paint |
getBackground()
Returns the paint which is used to draw the background of the plot area.
|
java.awt.Paint |
getBorderColor()
Returns the paint which is used to fill the border of the plot area.
|
java.awt.Stroke |
getBorderStroke()
Returns the stroke which is used to draw the border of the plot area.
|
Insets2D |
getClippingOffset()
Returns the clipping offset of the plotted data relative to the plot
area.
|
void |
setBackground(java.awt.Paint background)
Sets the paint which will be used to fill the background of the plot
area.
|
void |
setBorderColor(java.awt.Paint color)
Sets the paint which will be used to fill the border of the plot area.
|
void |
setBorderStroke(java.awt.Stroke stroke)
Sets the stroke which will be used to draw the border of the plot area.
|
void |
setClippingArea(Insets2D offset)
Sets the clipping offset of the plotted data relative to the plot area.
|
getBounds, getHeight, getPreferredSize, getWidth, getX, getY, setBounds, setBounds
public PlotArea()
protected void drawBackground(DrawingContext context)
context
- Environment used for drawing.protected void drawBorder(DrawingContext context)
context
- Environment used for drawing.protected abstract void drawPlot(DrawingContext context)
context
- Environment used for drawing.public java.awt.Paint getBackground()
public void setBackground(java.awt.Paint background)
background
- Paint which should be used to fill the background.public java.awt.Stroke getBorderStroke()
public void setBorderStroke(java.awt.Stroke stroke)
stroke
- Stroke which should be used to draw the border.public java.awt.Paint getBorderColor()
public void setBorderColor(java.awt.Paint color)
color
- Paint which should be used to fill the border.public Insets2D getClippingOffset()
null
values will turn off clipping.public void setClippingArea(Insets2D offset)
null
values will turn off clipping.offset
- Clipping offset in pixels relative to the outline of the
plot area.