public abstract class PlotArea extends StylableDrawable
Modifier and Type | Field and Description |
---|---|
static Key |
BACKGROUND
Key for specifying the
Paint instance to be used to
paint the background of the plot area. |
static Key |
BORDER
Key for specifying the
Stroke instance to be used to
paint the border of the plot area. |
static Key |
CLIPPING
Key for specifying an
Insets2D
instance that defines the clipping of the plotted data relative to
the plot area. |
static Key |
COLOR
Key for specifying the
Paint instance to be used to
fill the border of the plot area. |
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 Graphics2D
object.
|
protected void |
drawBorder(DrawingContext context)
Draws the border of this Legend with the specified Graphics2D
object.
|
protected abstract void |
drawPlot(DrawingContext context)
Draws the data using the specified Graphics2D object.
|
void |
settingChanged(SettingChangeEvent event)
Invoked if a setting has changed.
|
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
getBounds, getHeight, getPreferredSize, getWidth, getX, getY, setBounds, setBounds
public static final Key BACKGROUND
Paint
instance to be used to
paint the background of the plot area.public static final Key BORDER
Stroke
instance to be used to
paint the border of the plot area.public static final Key COLOR
Paint
instance to be used to
fill the border of the plot area.public static final Key CLIPPING
Insets2D
instance that defines the clipping of the plotted data relative to
the plot area. Positive inset values result in clipping inside the plot
area, negative values result in clipping outside the plot area.
Specifying a null
values will turn off clipping.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 void settingChanged(SettingChangeEvent event)
settingChanged
in interface SettingsListener
settingChanged
in class StylableDrawable
event
- Event containing information about the changed setting.Copyright © 2009-2013. All Rights Reserved.