void
|
addChangeListener(PlotChangeListener listener)
Registers an object for notification of changes to the plot.
|
void
|
axisChanged(AxisChangeEvent event)
Receives notification of a change to one of the plot's axes.
|
Object
|
clone()
Creates a clone of the plot.
|
void
|
createAndAddEntity(Rectangle2D dataArea, PlotRenderingInfo plotState, String toolTip, String urlText)
Creates a plot entity that contains a reference to the plot and the
data area as shape.
|
void
|
datasetChanged(DatasetChangeEvent event)
Receives notification of a change to the plot's dataset.
|
abstract
void
|
draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info)
Draws the plot within the specified area.
|
void
|
drawBackground(Graphics2D g2, Rectangle2D area)
Draws the plot background (the background color and/or image).
|
void
|
drawBackgroundImage(Graphics2D g2, Rectangle2D area)
Draws the background image (if there is one) aligned within the
specified area.
|
void
|
drawNoDataMessage(Graphics2D g2, Rectangle2D area)
Draws a message to state that there is no data to plot.
|
void
|
drawOutline(Graphics2D g2, Rectangle2D area)
Draws the plot outline.
|
boolean
|
equals(Object obj)
Tests this plot for equality with another object.
|
void
|
fillBackground(Graphics2D g2, Rectangle2D area)
Fills the specified area with the background paint.
|
void
|
fillBackground(Graphics2D g2, Rectangle2D area, PlotOrientation orientation)
Fills the specified area with the background paint.
|
void
|
fireChangeEvent()
|
float
|
getBackgroundAlpha()
Returns the alpha transparency of the plot area background.
|
Image
|
getBackgroundImage()
Returns the background image that is used to fill the plot's background
area.
|
int
|
getBackgroundImageAlignment()
Returns the background image alignment.
|
float
|
getBackgroundImageAlpha()
Returns the alpha transparency used to draw the background image.
|
Paint
|
getBackgroundPaint()
Returns the background color of the plot area.
|
DatasetGroup
|
getDatasetGroup()
Returns the dataset group for the plot (not currently used).
|
DrawingSupplier
|
getDrawingSupplier()
Returns the drawing supplier for the plot.
|
float
|
getForegroundAlpha()
Returns the alpha-transparency for the plot foreground.
|
RectangleInsets
|
getInsets()
Returns the insets for the plot area.
|
LegendItemCollection
|
getLegendItems()
Returns the legend items for the plot.
|
String
|
getNoDataMessage()
Returns the string that is displayed when the dataset is empty or
null .
|
Font
|
getNoDataMessageFont()
Returns the font used to display the 'no data' message.
|
Paint
|
getNoDataMessagePaint()
Returns the paint used to display the 'no data' message.
|
Paint
|
getOutlinePaint()
Returns the color used to draw the outline of the plot area.
|
Stroke
|
getOutlineStroke()
Returns the stroke used to outline the plot area.
|
Plot
|
getParent()
Returns the parent plot (or null if this plot is not part
of a combined plot).
|
abstract
String
|
getPlotType()
Returns a short string describing the plot type.
|
double
|
getRectX(double x, double w1, double w2, RectangleEdge edge)
Adjusts the supplied x-value.
|
double
|
getRectY(double y, double h1, double h2, RectangleEdge edge)
Adjusts the supplied y-value.
|
Plot
|
getRootPlot()
Returns the root plot.
|
void
|
handleClick(int x, int y, PlotRenderingInfo info)
Handles a 'click' on the plot.
|
boolean
|
isNotify()
Returns a flag that controls whether or not change events are sent to
registered listeners.
|
boolean
|
isOutlineVisible()
Returns the flag that controls whether or not the plot outline is
drawn.
|
boolean
|
isSubplot()
Returns true if this plot is part of a combined plot
structure (that is, getParent() returns a non- null
value), and false otherwise.
|
void
|
markerChanged(MarkerChangeEvent event)
Receives notification of a change to a marker that is assigned to the
plot.
|
void
|
notifyListeners(PlotChangeEvent event)
Notifies all registered listeners that the plot has been modified.
|
void
|
removeChangeListener(PlotChangeListener listener)
Unregisters an object for notification of changes to the plot.
|
static
RectangleEdge
|
resolveDomainAxisLocation(AxisLocation location, PlotOrientation orientation)
Resolves a domain axis location for a given plot orientation.
|
static
RectangleEdge
|
resolveRangeAxisLocation(AxisLocation location, PlotOrientation orientation)
Resolves a range axis location for a given plot orientation.
|
void
|
setBackgroundAlpha(float alpha)
Sets the alpha transparency of the plot area background, and notifies
registered listeners that the plot has been modified.
|
void
|
setBackgroundImage(Image image)
Sets the background image for the plot and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setBackgroundImageAlignment(int alignment)
Sets the alignment for the background image and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setBackgroundImageAlpha(float alpha)
Sets the alpha transparency used when drawing the background image.
|
void
|
setBackgroundPaint(Paint paint)
Sets the background color of the plot area and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setDatasetGroup(DatasetGroup group)
Sets the dataset group (not currently used).
|
void
|
setDrawingSupplier(DrawingSupplier supplier)
Sets the drawing supplier for the plot and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setDrawingSupplier(DrawingSupplier supplier, boolean notify)
Sets the drawing supplier for the plot and, if requested, sends a
PlotChangeEvent to all registered listeners.
|
void
|
setForegroundAlpha(float alpha)
Sets the alpha-transparency for the plot and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setInsets(RectangleInsets insets)
Sets the insets for the plot and sends a PlotChangeEvent to
all registered listeners.
|
void
|
setInsets(RectangleInsets insets, boolean notify)
Sets the insets for the plot and, if requested, and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setNoDataMessage(String message)
Sets the message that is displayed when the dataset is empty or
null , and sends a PlotChangeEvent to all registered
listeners.
|
void
|
setNoDataMessageFont(Font font)
Sets the font used to display the 'no data' message and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setNoDataMessagePaint(Paint paint)
Sets the paint used to display the 'no data' message and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setNotify(boolean notify)
Sets a flag that controls whether or not listeners receive
PlotChangeEvent notifications.
|
void
|
setOutlinePaint(Paint paint)
Sets the paint used to draw the outline of the plot area and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setOutlineStroke(Stroke stroke)
Sets the stroke used to outline the plot area and sends a
PlotChangeEvent to all registered listeners.
|
void
|
setOutlineVisible(boolean visible)
Sets the flag that controls whether or not the plot's outline is
drawn, and sends a PlotChangeEvent to all registered listeners.
|
void
|
setParent(Plot parent)
Sets the parent plot.
|
void
|
zoom(double percent)
Performs a zoom on the plot.
|