| Field Summary | |
|---|---|
| static float |
The default background alpha transparency. |
| static Paint |
The default background color. |
| static float |
The default foreground alpha transparency. |
| static RectangleInsets |
The default insets. |
| static Shape |
A default box shape for legend items. |
| static Shape |
A default circle shape for legend items. |
| static Paint |
The default outline color. |
| static Stroke |
The default outline stroke. |
| static int |
The minimum height at which the plot should be drawn. |
| static int |
The minimum width at which the plot should be drawn. |
| static Number |
Useful constant representing zero. |
| Constructor Summary |
|---|
|
Creates a new plot. |
| Method Summary | |
|---|---|
| void |
Registers an object for notification of changes to the plot. |
| void |
Receives notification of a change to one of the plot's axes. |
| Object |
Creates a clone of the plot. |
| void |
Receives notification of a change to the plot's dataset. |
| void |
Draws the plot within the specified area. |
| void |
Draws the plot background (the background color and/or image). |
| protected void |
Draws the background image (if there is one) aligned within the specified area. |
| protected void |
Draws a message to state that there is no data to plot. |
| void |
Draws the plot outline. |
| boolean |
Tests this plot for equality with another object. |
| protected void |
Fills the specified area with the background paint. |
| float |
Returns the alpha transparency of the plot area background. |
| Image |
Returns the background image that is used to fill the plot's background area. |
| int |
Returns the background image alignment. |
| Paint |
Returns the background color of the plot area. |
| DatasetGroup |
Returns the dataset group for the plot (not currently used). |
| DrawingSupplier |
Returns the drawing supplier for the plot. |
| float |
Returns the alpha-transparency for the plot foreground. |
| RectangleInsets |
Returns the insets for the plot area. |
| LegendItemCollection |
Returns the legend items for the plot. |
| String |
Returns the string that is displayed when the dataset is empty or null.
|
| Font |
Returns the font used to display the 'no data' message. |
| Paint |
Returns the paint used to display the 'no data' message. |
| Paint |
Returns the color used to draw the outline of the plot area. |
| Stroke |
Returns the stroke used to outline the plot area. |
| Plot |
Returns the parent plot (or null if this plot is not part
of a combined plot).
|
| String |
Returns a short string describing the plot type. |
| protected double |
Adjusts the supplied x-value. |
| protected double |
Adjusts the supplied y-value. |
| Plot |
Returns the root plot. |
| void |
Handles a 'click' on the plot. |
| boolean |
Returns true if this plot is part of a combined plot structure. |
| void |
Notifies all registered listeners that the plot has been modified. |
| void |
Unregisters an object for notification of changes to the plot. |
| static RectangleEdge |
Resolves a domain axis location for a given plot orientation. |
| static RectangleEdge |
Resolves a range axis location for a given plot orientation. |
| void |
Sets the alpha transparency of the plot area background, and notifies registered listeners that the plot has been modified. |
| void |
Sets the background image for the plot. |
| void |
Sets the alignment for the background image and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the background color of the plot area and sends a PlotChangeEvent to all registered listeners. |
| protected void |
Sets the dataset group (not currently used). |
| void |
Sets the drawing supplier for the plot. |
| void |
Sets the alpha-transparency for the plot. |
| void |
Sets the insets for the plot and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the insets for the plot and, if requested, and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the message that is displayed when the dataset is empty or null. |
| void |
Sets the font used to display the 'no data' message. |
| void |
Sets the paint used to display the 'no data' message. |
| void |
Sets the paint used to draw the outline of the plot area and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the stroke used to outline the plot area and sends a PlotChangeEvent to all registered listeners. |
| void |
Sets the parent plot. |
| void |
Performs a zoom on the plot. |
| Methods inherited from java.langObject |
|---|
public static
float
DEFAULT_BACKGROUND_ALPHA
public static
float
DEFAULT_FOREGROUND_ALPHA
public static
int
MINIMUM_HEIGHT_TO_DRAW
public static
int
MINIMUM_WIDTH_TO_DRAW
The plot reacts by passing on a plot change event to all registered listeners.
public
void
draw
(
Graphics2D
g2,
Rectangle2D
area,
Point2D
anchor,
PlotState
parentState,
PlotRenderingInfo
info
)
This method will be called during the chart drawing process and is declared public so that it can be accessed by the renderers used by certain subclasses. You shouldn't need to call this method directly.
public
float
getBackgroundAlpha
(
)
public
int
getBackgroundImageAlignment
(
)
org.jfree.ui.Align class in the JCommon class
library.
public
float
getForegroundAlpha
(
)
null. Subclasses should override to return a
LegendItemCollection . null. null if this plot is not part
of a combined plot). Note: this gets used in the chart property editing user interface, but there needs to be a better mechanism for identifying the plot type.
public
boolean
isSubplot
(
)
public static
RectangleEdge
resolveDomainAxisLocation
(
AxisLocation
location,
PlotOrientation
orientation
)
public static
RectangleEdge
resolveRangeAxisLocation
(
AxisLocation
location,
PlotOrientation
orientation
)
public
void
setBackgroundAlpha
(
float
alpha
)
public
void
setBackgroundImageAlignment
(
int
alignment
)
Paint, Stroke and Shape objects
that the plot's renderer(s) can use to populate its (their) tables.
public
void
setForegroundAlpha
(
float
alpha
)
null, no outline will be drawn. null<.code>, no outline will be drawn.
public
void
zoom
(
double
percent
)