java.lang.Object | ||
↳ | org.jfree.chart.plot.Plot | |
↳ | org.jfree.chart.plot.ContourPlot |
This class is deprecated.
This plot is no longer supported, please use XYPlot
with
an XYBlockRenderer
.
A class for creating shaded contours.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_INSETS | The default insets. | ||||||||||
localizationResources | The resourceBundle for the localization. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new plot with no dataset or axes.
| |||||||||||
Constructs a contour plot with the specified axes (other attributes take
default values).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds an annotation to the plot.
| |||||||||||
Adds a marker for the domain axis.
| |||||||||||
Adds a marker for the range axis.
| |||||||||||
Receives notification of a change to one of the plot's axes.
| |||||||||||
Clears all the annotations.
| |||||||||||
Clears all the domain markers.
| |||||||||||
Clears all the range markers.
| |||||||||||
Extends plot cloning to this plot type
| |||||||||||
Fills the plot.
| |||||||||||
Receives notification of a change to the plot's dataset.
| |||||||||||
Draws the plot on a Java 2D graphics device (such as the screen or a
printer).
| |||||||||||
Draws a vertical line on the chart to represent a 'range marker'.
| |||||||||||
Draws a horizontal line across the chart to represent a 'range marker'.
| |||||||||||
Returns the clipPath.
| |||||||||||
Returns the colorbar.
| |||||||||||
Returns the color bar location.
| |||||||||||
Returns the range for the Contours.
| |||||||||||
Returns the data area ratio.
| |||||||||||
Returns the range for an axis.
| |||||||||||
Returns the primary dataset for the plot.
| |||||||||||
Returns the domain axis for the plot.
| |||||||||||
Returns the domain crosshair color.
| |||||||||||
Returns the Stroke used to draw the crosshair (if visible).
| |||||||||||
Returns the domain crosshair value.
| |||||||||||
Returns the missingPaint.
| |||||||||||
Returns the plot type as a string.
| |||||||||||
Returns the ptSizePct.
| |||||||||||
Returns the range axis for the plot.
| |||||||||||
Returns the range crosshair color.
| |||||||||||
Returns the Stroke used to draw the crosshair (if visible).
| |||||||||||
Returns the range crosshair value.
| |||||||||||
Returns the tool tip generator.
| |||||||||||
Returns the URL generator for HTML image maps.
| |||||||||||
Handles a 'click' on the plot by updating the anchor values...
| |||||||||||
Checks the compatibility of a domain axis, returning true if the axis is
compatible with the plot, and false otherwise.
| |||||||||||
Returns a flag indicating whether or not the crosshair should "lock-on"
to actual data values.
| |||||||||||
Returns a flag indicating whether or not the domain crosshair is visible.
| |||||||||||
Returns
false . | |||||||||||
Returns a flag indicating whether or not the crosshair should "lock-on"
to actual data values.
| |||||||||||
Returns a flag indicating whether or not the range crosshair is visible.
| |||||||||||
Returns
false . | |||||||||||
Returns the renderAsPoints.
| |||||||||||
Draws the visual representation of a single data item.
| |||||||||||
Notifies all registered listeners of a property change.
| |||||||||||
Draws a representation of the data within the dataArea region, using the
current renderer.
| |||||||||||
Sets the clipPath.
| |||||||||||
Sets the colorbar for the plot.
| |||||||||||
Sets the color bar location and sends a
PlotChangeEvent to all
registered listeners. | |||||||||||
Sets the data area ratio.
| |||||||||||
Sets the dataset for the plot, replacing the existing dataset if there
is one.
| |||||||||||
Sets the domain axis for the plot (this must be compatible with the plot
type or an exception is thrown).
| |||||||||||
Sets the flag indicating whether or not the domain crosshair should
"lock-on" to actual data values.
| |||||||||||
Sets the Paint used to color the crosshairs (if visible) and notifies
registered listeners that the axis has been modified.
| |||||||||||
Sets the Stroke used to draw the crosshairs (if visible) and notifies
registered listeners that the axis has been modified.
| |||||||||||
Sets the domain crosshair value.
| |||||||||||
Sets the domain crosshair value.
| |||||||||||
Sets the flag indicating whether or not the domain crosshair is visible.
| |||||||||||
Sets the missingPaint.
| |||||||||||
Sets the ptSizePct.
| |||||||||||
Sets the range axis for the plot.
| |||||||||||
Sets the flag indicating whether or not the range crosshair should
"lock-on" to actual data values.
| |||||||||||
Sets the Paint used to color the crosshairs (if visible) and notifies
registered listeners that the axis has been modified.
| |||||||||||
Sets the Stroke used to draw the crosshairs (if visible) and notifies
registered listeners that the axis has been modified.
| |||||||||||
Sets the domain crosshair value.
| |||||||||||
Sets the range crosshair value.
| |||||||||||
Sets the flag indicating whether or not the range crosshair is visible.
| |||||||||||
Sets the renderAsPoints.
| |||||||||||
Sets the tool tip generator.
| |||||||||||
Sets the URL generator for HTML image maps.
| |||||||||||
Returns the visible z-range.
| |||||||||||
Zooms the axis ranges by the specified percentage about the anchor point.
| |||||||||||
Multiplies the range on the domain axis/axes by the specified factor
(to be implemented).
| |||||||||||
Zooms the domain axes (not yet implemented).
| |||||||||||
Multiplies the range on the range axis/axes by the specified factor.
| |||||||||||
Zooms the range axes (not yet implemented).
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Utility method for drawing a crosshair on the chart (if required).
| |||||||||||
Utility method for drawing a crosshair on the chart (if required).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The default insets.
Creates a new plot with no dataset or axes.
Constructs a contour plot with the specified axes (other attributes take default values).
dataset | The dataset. |
---|---|
domainAxis | The domain axis. |
rangeAxis | The range axis. |
colorBar | The z-axis axis. |
Adds an annotation to the plot.
annotation | the annotation. |
---|
Adds a marker for the domain axis.
Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
marker | the marker. |
---|
Adds a marker for the range axis.
Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
marker | The marker. |
---|
Receives notification of a change to one of the plot's axes.
event | information about the event. |
---|
Clears all the annotations.
Clears all the domain markers.
Clears all the range markers.
Fills the plot.
g2 | the graphics device. |
---|---|
dataArea | the area within which the data is being drawn. |
info | collects information about the drawing. |
plot | the plot (can be used to obtain standard color information etc). |
horizontalAxis | the domain (horizontal) axis. |
verticalAxis | the range (vertical) axis. |
colorBar | the color bar axis. |
data | the dataset. |
crosshairState | information about crosshairs on a plot. |
Receives notification of a change to the plot's dataset.
The chart reacts by passing on a chart change event to all registered listeners.
event | Information about the event (not used here). |
---|
Draws the plot on a Java 2D graphics device (such as the screen or a printer).
The optional info
argument collects information about the
rendering of the plot (dimensions, tooltip information etc). Just pass
in null
if you do not need this information.
g2 | the graphics device. |
---|---|
area | the area within which the plot (including axis labels) should be drawn. |
anchor | the anchor point (null permitted). |
parentState | the state from the parent plot, if there is one. |
info | collects chart drawing information (null
permitted).
|
Draws a vertical line on the chart to represent a 'range marker'.
g2 | the graphics device. |
---|---|
plot | the plot. |
domainAxis | the domain axis. |
marker | the marker line. |
dataArea | the axis data area. |
Draws a horizontal line across the chart to represent a 'range marker'.
g2 | the graphics device. |
---|---|
plot | the plot. |
rangeAxis | the range axis. |
marker | the marker line. |
dataArea | the axis data area. |
Returns the color bar location.
Returns the range for the Contours.
Returns the data area ratio.
Returns the range for an axis.
axis | the axis. |
---|
Returns the primary dataset for the plot.
null
).
Returns the domain crosshair color.
Returns the Stroke used to draw the crosshair (if visible).
Returns the domain crosshair value.
Returns the plot type as a string.
Returns the ptSizePct.
Returns the range crosshair color.
Returns the Stroke used to draw the crosshair (if visible).
Returns the range crosshair value.
Returns the tool tip generator.
Returns the URL generator for HTML image maps.
Handles a 'click' on the plot by updating the anchor values...
x | x-coordinate, where the click occured. |
---|---|
y | y-coordinate, where the click occured. |
info | An object for collection dimension information. |
Checks the compatibility of a domain axis, returning true if the axis is compatible with the plot, and false otherwise.
axis | The proposed axis. |
---|
true
if the axis is compatible with the plot.
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
Returns a flag indicating whether or not the domain crosshair is visible.
Returns false
.
Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
Returns a flag indicating whether or not the range crosshair is visible.
Returns false
.
Returns the renderAsPoints.
Draws the visual representation of a single data item.
g2 | the graphics device. |
---|---|
dataArea | the area within which the data is being drawn. |
info | collects information about the drawing. |
plot | the plot (can be used to obtain standard color information etc). |
domainAxis | the domain (horizontal) axis. |
rangeAxis | the range (vertical) axis. |
colorBar | the color bar axis. |
data | the dataset. |
crosshairState | information about crosshairs on a plot. |
Notifies all registered listeners of a property change.
One source of property change events is the plot's renderer.
event | Information about the property change. |
---|
Draws a representation of the data within the dataArea region, using the current renderer.
The info
and crosshairState
arguments may be
null
.
g2 | the graphics device. |
---|---|
dataArea | the region in which the data is to be drawn. |
info | an optional object for collection dimension information. |
crosshairState | an optional object for collecting crosshair info. |
Sets the clipPath.
clipPath | The clipPath to set |
---|
Sets the colorbar for the plot.
axis | The new axis (null permitted). |
---|
Sets the color bar location and sends a PlotChangeEvent
to all
registered listeners.
edge | the location. |
---|
Sets the data area ratio.
ratio | the ratio. |
---|
Sets the dataset for the plot, replacing the existing dataset if there is one.
dataset | the dataset (null permitted).
|
---|
Sets the domain axis for the plot (this must be compatible with the plot type or an exception is thrown).
axis | The new axis. |
---|
Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.
flag | the flag. |
---|
Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
paint | the new crosshair paint. |
---|
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
stroke | the new crosshair stroke. |
---|
Sets the domain crosshair value.
Registered listeners are notified that the axis has been modified, but only if the crosshair is visible.
value | the new value. |
---|---|
notify | a flag that controls whether or not listeners are notified. |
Sets the domain crosshair value.
Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
value | the new value. |
---|
Sets the flag indicating whether or not the domain crosshair is visible.
flag | the new value of the flag. |
---|
Sets the missingPaint.
paint | the missingPaint to set. |
---|
Sets the ptSizePct.
ptSizePct | The ptSizePct to set |
---|
Sets the range axis for the plot.
An exception is thrown if the new axis and the plot are not mutually compatible.
axis | The new axis (null permitted). |
---|
Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.
flag | the flag. |
---|
Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
paint | the new crosshair paint. |
---|
Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
stroke | the new crosshair stroke. |
---|
Sets the domain crosshair value.
Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
value | the new value. |
---|
Sets the range crosshair value.
Registered listeners are notified that the axis has been modified, but only if the crosshair is visible.
value | the new value. |
---|---|
notify | a flag that controls whether or not listeners are notified. |
Sets the flag indicating whether or not the range crosshair is visible.
flag | the new value of the flag. |
---|
Sets the renderAsPoints.
renderAsPoints | The renderAsPoints to set |
---|
Sets the tool tip generator.
generator | the tool tip generator (null permitted). |
---|
Sets the URL generator for HTML image maps.
urlGenerator | the URL generator (null permitted). |
---|
Returns the visible z-range.
data | the dataset. |
---|---|
x | the x range. |
y | the y range. |
Zooms the axis ranges by the specified percentage about the anchor point.
percent | The amount of the zoom. |
---|
Multiplies the range on the domain axis/axes by the specified factor (to be implemented).
x | the x-coordinate (in Java2D space). |
---|---|
y | the y-coordinate (in Java2D space). |
factor | the zoom factor. |
Zooms the domain axes (not yet implemented).
x | the x-coordinate (in Java2D space). |
---|---|
y | the y-coordinate (in Java2D space). |
lowerPercent | the new lower bound. |
upperPercent | the new upper bound. |
Multiplies the range on the range axis/axes by the specified factor.
x | the x-coordinate (in Java2D space). |
---|---|
y | the y-coordinate (in Java2D space). |
factor | the zoom factor. |
Zooms the range axes (not yet implemented).
x | the x-coordinate (in Java2D space). |
---|---|
y | the y-coordinate (in Java2D space). |
lowerPercent | the new lower bound. |
upperPercent | the new upper bound. |
Utility method for drawing a crosshair on the chart (if required).
g2 | The graphics device. |
---|---|
dataArea | The data area. |
value | The coordinate, where to draw the line. |
stroke | The stroke to use. |
paint | The paint to use. |
Utility method for drawing a crosshair on the chart (if required).
g2 | The graphics device. |
---|---|
dataArea | The data area. |
value | The coordinate, where to draw the line. |
stroke | The stroke to use. |
paint | The paint to use. |