Class ContourPlot
- All Implemented Interfaces:
PropertyChangeListener
,Serializable
,Cloneable
,EventListener
,AnnotationChangeListener
,AxisChangeListener
,MarkerChangeListener
,LegendItemSource
,ContourValuePlot
,ValueAxisPlot
,DatasetChangeListener
,org.jfree.util.PublicCloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
Deprecated.A list of annotations (optional) for the plot.private ClipPath
Deprecated.Contains the a ClipPath to "trim" the contours.private ColorBar
Deprecated.The colorbar axis (used for the z-values).private org.jfree.ui.RectangleEdge
Deprecated.The color bar location.private double
Deprecated.Defines dataArea rectangle as the ratio formed from dividing height by width (of the dataArea).private ContourDataset
Deprecated.The dataset.protected static final org.jfree.ui.RectangleInsets
Deprecated.The default insets.private ValueAxis
Deprecated.The domain axis (used for the x-values).private boolean
Deprecated.A flag that controls whether or not the crosshair locks onto actual data points.private Paint
Deprecated.The color used to draw the crosshair (if any).private Stroke
Deprecated.The pen/brush used to draw the crosshair (if any).private double
Deprecated.The domain crosshair value.private boolean
Deprecated.A flag that controls whether or not a domain crosshair is drawn..private List
Deprecated.A list of markers (optional) for the domain axis.protected static ResourceBundle
Deprecated.The resourceBundle for the localization.private Paint
Deprecated.Set to Paint to represent missing values.private double
Deprecated.Size of points rendered when renderAsPoints = true.private ValueAxis
Deprecated.The range axis (used for the y-values).private boolean
Deprecated.A flag that controls whether or not the crosshair locks onto actual data points.private Paint
Deprecated.The color used to draw the crosshair (if any).private Stroke
Deprecated.The pen/brush used to draw the crosshair (if any).private double
Deprecated.The range crosshair value.private boolean
Deprecated.A flag that controls whether or not a range crosshair is drawn..private List
Deprecated.A list of markers (optional) for the range axis.private boolean
Deprecated.Controls whether data are render as filled rectangles or rendered as pointsprivate static final long
Deprecated.For serialization.private ContourToolTipGenerator
Deprecated.The tool tip generator.private XYURLGenerator
Deprecated.The URL text generator.Fields inherited from class org.jfree.chart.plot.Plot
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new plot with no dataset or axes.ContourPlot
(ContourDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar) Deprecated.Constructs a contour plot with the specified axes (other attributes take default values). -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(XYAnnotation annotation) Deprecated.Adds an annotation to the plot.void
addDomainMarker
(Marker marker) Deprecated.Adds a marker for the domain axis.void
addRangeMarker
(Marker marker) Deprecated.Adds a marker for the range axis.void
axisChanged
(AxisChangeEvent event) Deprecated.Receives notification of a change to one of the plot's axes.void
Deprecated.Clears all the annotations.void
Deprecated.Clears all the domain markers.void
Deprecated.Clears all the range markers.clone()
Deprecated.Extends plot cloning to this plot typevoid
contourRenderer
(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, ContourPlot plot, ValueAxis horizontalAxis, ValueAxis verticalAxis, ColorBar colorBar, ContourDataset data, CrosshairState crosshairState) Deprecated.Fills the plot.void
datasetChanged
(DatasetChangeEvent event) Deprecated.Receives notification of a change to the plot's dataset.void
draw
(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Deprecated.Draws the plot on a Java 2D graphics device (such as the screen or a printer).void
drawDomainMarker
(Graphics2D g2, ContourPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea) Deprecated.Draws a vertical line on the chart to represent a 'range marker'.protected void
drawHorizontalLine
(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Deprecated.Utility method for drawing a crosshair on the chart (if required).void
drawRangeMarker
(Graphics2D g2, ContourPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea) Deprecated.Draws a horizontal line across the chart to represent a 'range marker'.protected void
drawVerticalLine
(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Deprecated.Utility method for drawing a crosshair on the chart (if required).Deprecated.Returns the clipPath.Deprecated.Returns the colorbar.org.jfree.ui.RectangleEdge
Deprecated.Returns the color bar location.Deprecated.Returns the range for the Contours.double
Deprecated.Returns the data area ratio.getDataRange
(ValueAxis axis) Deprecated.Returns the range for an axis.Deprecated.Returns the primary dataset for the plot.Deprecated.Returns the domain axis for the plot.Deprecated.Returns the domain crosshair color.Deprecated.Returns the Stroke used to draw the crosshair (if visible).double
Deprecated.Returns the domain crosshair value.Deprecated.Returns the missingPaint.Deprecated.Returns the plot type as a string.double
Deprecated.Returns the ptSizePct.Deprecated.Returns the range axis for the plot.Deprecated.Returns the range crosshair color.Deprecated.Returns the Stroke used to draw the crosshair (if visible).double
Deprecated.Returns the range crosshair value.Deprecated.Returns the tool tip generator.Deprecated.Returns the URL generator for HTML image maps.void
handleClick
(int x, int y, PlotRenderingInfo info) Deprecated.Handles a 'click' on the plot by updating the anchor values...boolean
Deprecated.Checks the compatibility of a domain axis, returning true if the axis is compatible with the plot, and false otherwise.boolean
Deprecated.Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.boolean
Deprecated.Returns a flag indicating whether or not the domain crosshair is visible.boolean
Deprecated.Returnsfalse
.boolean
Deprecated.Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.boolean
Deprecated.Returns a flag indicating whether or not the range crosshair is visible.boolean
Deprecated.Returnsfalse
.boolean
Deprecated.Returns the renderAsPoints.void
pointRenderer
(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, ContourPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar, ContourDataset data, CrosshairState crosshairState) Deprecated.Draws the visual representation of a single data item.void
Deprecated.Notifies all registered listeners of a property change.void
render
(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, CrosshairState crosshairState) Deprecated.Draws a representation of the data within the dataArea region, using the current renderer.void
setClipPath
(ClipPath clipPath) Deprecated.Sets the clipPath.void
setColorBarAxis
(ColorBar axis) Deprecated.Sets the colorbar for the plot.void
setColorBarLocation
(org.jfree.ui.RectangleEdge edge) Deprecated.Sets the color bar location and sends aPlotChangeEvent
to all registered listeners.void
setDataAreaRatio
(double ratio) Deprecated.Sets the data area ratio.void
setDataset
(ContourDataset dataset) Deprecated.Sets the dataset for the plot, replacing the existing dataset if there is one.void
setDomainAxis
(ValueAxis axis) Deprecated.Sets the domain axis for the plot (this must be compatible with the plot type or an exception is thrown).void
setDomainCrosshairLockedOnData
(boolean flag) Deprecated.Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.void
setDomainCrosshairPaint
(Paint paint) Deprecated.Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.void
setDomainCrosshairStroke
(Stroke stroke) Deprecated.Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.void
setDomainCrosshairValue
(double value) Deprecated.Sets the domain crosshair value.void
setDomainCrosshairValue
(double value, boolean notify) Deprecated.Sets the domain crosshair value.void
setDomainCrosshairVisible
(boolean flag) Deprecated.Sets the flag indicating whether or not the domain crosshair is visible.void
setMissingPaint
(Paint paint) Deprecated.Sets the missingPaint.void
setPtSizePct
(double ptSizePct) Deprecated.Sets the ptSizePct.void
setRangeAxis
(ValueAxis axis) Deprecated.Sets the range axis for the plot.void
setRangeCrosshairLockedOnData
(boolean flag) Deprecated.Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.void
setRangeCrosshairPaint
(Paint paint) Deprecated.Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.void
setRangeCrosshairStroke
(Stroke stroke) Deprecated.Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.void
setRangeCrosshairValue
(double value) Deprecated.Sets the domain crosshair value.void
setRangeCrosshairValue
(double value, boolean notify) Deprecated.Sets the range crosshair value.void
setRangeCrosshairVisible
(boolean flag) Deprecated.Sets the flag indicating whether or not the range crosshair is visible.void
setRenderAsPoints
(boolean renderAsPoints) Deprecated.Sets the renderAsPoints.void
setToolTipGenerator
(ContourToolTipGenerator generator) Deprecated.Sets the tool tip generator.void
setURLGenerator
(XYURLGenerator urlGenerator) Deprecated.Sets the URL generator for HTML image maps.visibleRange
(ContourDataset data, Range x, Range y) Deprecated.Returns the visible z-range.void
zoom
(double percent) Deprecated.Zooms the axis ranges by the specified percentage about the anchor point.void
zoomDomainAxes
(double x, double y, double factor) Deprecated.Multiplies the range on the domain axis/axes by the specified factor (to be implemented).void
zoomDomainAxes
(double x, double y, double lowerPercent, double upperPercent) Deprecated.Zooms the domain axes (not yet implemented).void
zoomRangeAxes
(double x, double y, double factor) Deprecated.Multiplies the range on the range axis/axes by the specified factor.void
zoomRangeAxes
(double x, double y, double lowerPercent, double upperPercent) Deprecated.Zooms the range axes (not yet implemented).Methods inherited from class org.jfree.chart.plot.Plot
addChangeListener, annotationChanged, createAndAddEntity, drawBackground, drawBackgroundImage, drawNoDataMessage, drawOutline, equals, fillBackground, fillBackground, fireChangeEvent, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getLegendItems, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, isNotify, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setNotify, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.For serialization.- See Also:
-
DEFAULT_INSETS
protected static final org.jfree.ui.RectangleInsets DEFAULT_INSETSDeprecated.The default insets. -
domainAxis
Deprecated.The domain axis (used for the x-values). -
rangeAxis
Deprecated.The range axis (used for the y-values). -
dataset
Deprecated.The dataset. -
colorBar
Deprecated.The colorbar axis (used for the z-values). -
colorBarLocation
private org.jfree.ui.RectangleEdge colorBarLocationDeprecated.The color bar location. -
domainCrosshairVisible
private boolean domainCrosshairVisibleDeprecated.A flag that controls whether or not a domain crosshair is drawn.. -
domainCrosshairValue
private double domainCrosshairValueDeprecated.The domain crosshair value. -
domainCrosshairStroke
Deprecated.The pen/brush used to draw the crosshair (if any). -
domainCrosshairPaint
Deprecated.The color used to draw the crosshair (if any). -
domainCrosshairLockedOnData
private boolean domainCrosshairLockedOnDataDeprecated.A flag that controls whether or not the crosshair locks onto actual data points. -
rangeCrosshairVisible
private boolean rangeCrosshairVisibleDeprecated.A flag that controls whether or not a range crosshair is drawn.. -
rangeCrosshairValue
private double rangeCrosshairValueDeprecated.The range crosshair value. -
rangeCrosshairStroke
Deprecated.The pen/brush used to draw the crosshair (if any). -
rangeCrosshairPaint
Deprecated.The color used to draw the crosshair (if any). -
rangeCrosshairLockedOnData
private boolean rangeCrosshairLockedOnDataDeprecated.A flag that controls whether or not the crosshair locks onto actual data points. -
dataAreaRatio
private double dataAreaRatioDeprecated.Defines dataArea rectangle as the ratio formed from dividing height by width (of the dataArea). Modifies plot area calculations. ratio > 0 will attempt to layout the plot so that the dataArea.height/dataArea.width = ratio. ratio < 0 will attempt to layout the plot so that the dataArea.height/dataArea.width in plot units (not java2D units as when ratio > 0) = -1.*ratio. -
domainMarkers
Deprecated.A list of markers (optional) for the domain axis. -
rangeMarkers
Deprecated.A list of markers (optional) for the range axis. -
annotations
Deprecated.A list of annotations (optional) for the plot. -
toolTipGenerator
Deprecated.The tool tip generator. -
urlGenerator
Deprecated.The URL text generator. -
renderAsPoints
private boolean renderAsPointsDeprecated.Controls whether data are render as filled rectangles or rendered as points -
ptSizePct
private double ptSizePctDeprecated.Size of points rendered when renderAsPoints = true. Size is relative to dataArea -
clipPath
Deprecated.Contains the a ClipPath to "trim" the contours. -
missingPaint
Deprecated.Set to Paint to represent missing values. -
localizationResources
Deprecated.The resourceBundle for the localization.
-
-
Constructor Details
-
ContourPlot
public ContourPlot()Deprecated.Creates a new plot with no dataset or axes. -
ContourPlot
public ContourPlot(ContourDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar) Deprecated.Constructs a contour plot with the specified axes (other attributes take default values).- Parameters:
dataset
- The dataset.domainAxis
- The domain axis.rangeAxis
- The range axis.colorBar
- The z-axis axis.
-
-
Method Details
-
getColorBarLocation
public org.jfree.ui.RectangleEdge getColorBarLocation()Deprecated.Returns the color bar location.- Returns:
- The color bar location.
-
setColorBarLocation
public void setColorBarLocation(org.jfree.ui.RectangleEdge edge) Deprecated.Sets the color bar location and sends aPlotChangeEvent
to all registered listeners.- Parameters:
edge
- the location.
-
getDataset
Deprecated.Returns the primary dataset for the plot.- Returns:
- The primary dataset (possibly
null
).
-
setDataset
Deprecated.Sets the dataset for the plot, replacing the existing dataset if there is one.- Parameters:
dataset
- the dataset (null
permitted).
-
getDomainAxis
Deprecated.Returns the domain axis for the plot.- Returns:
- The domain axis.
-
setDomainAxis
Deprecated.Sets the domain axis for the plot (this must be compatible with the plot type or an exception is thrown).- Parameters:
axis
- The new axis.
-
getRangeAxis
Deprecated.Returns the range axis for the plot.- Returns:
- The range axis.
-
setRangeAxis
Deprecated.Sets the range axis for the plot.An exception is thrown if the new axis and the plot are not mutually compatible.
- Parameters:
axis
- The new axis (null permitted).
-
setColorBarAxis
Deprecated.Sets the colorbar for the plot.- Parameters:
axis
- The new axis (null permitted).
-
getDataAreaRatio
public double getDataAreaRatio()Deprecated.Returns the data area ratio.- Returns:
- The ratio.
-
setDataAreaRatio
public void setDataAreaRatio(double ratio) Deprecated.Sets the data area ratio.- Parameters:
ratio
- the ratio.
-
addDomainMarker
Deprecated.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.
- Parameters:
marker
- the marker.
-
clearDomainMarkers
public void clearDomainMarkers()Deprecated.Clears all the domain markers. -
addRangeMarker
Deprecated.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.
- Parameters:
marker
- The marker.
-
clearRangeMarkers
public void clearRangeMarkers()Deprecated.Clears all the range markers. -
addAnnotation
Deprecated.Adds an annotation to the plot.- Parameters:
annotation
- the annotation.
-
clearAnnotations
public void clearAnnotations()Deprecated.Clears all the annotations. -
isCompatibleDomainAxis
Deprecated.Checks the compatibility of a domain axis, returning true if the axis is compatible with the plot, and false otherwise.- Parameters:
axis
- The proposed axis.- Returns:
true
if the axis is compatible with the plot.
-
draw
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) Deprecated.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 innull
if you do not need this information.- Specified by:
draw
in classPlot
- Parameters:
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).
-
render
public void render(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, CrosshairState crosshairState) Deprecated.Draws a representation of the data within the dataArea region, using the current renderer.The
info
andcrosshairState
arguments may benull
.- Parameters:
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.
-
contourRenderer
public void contourRenderer(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, ContourPlot plot, ValueAxis horizontalAxis, ValueAxis verticalAxis, ColorBar colorBar, ContourDataset data, CrosshairState crosshairState) Deprecated.Fills the plot.- Parameters:
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.
-
pointRenderer
public void pointRenderer(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, ContourPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar, ContourDataset data, CrosshairState crosshairState) Deprecated.Draws the visual representation of a single data item.- Parameters:
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.
-
drawVerticalLine
protected void drawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Deprecated.Utility method for drawing a crosshair on the chart (if required).- Parameters:
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.
-
drawHorizontalLine
protected void drawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint) Deprecated.Utility method for drawing a crosshair on the chart (if required).- Parameters:
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.
-
handleClick
Deprecated.Handles a 'click' on the plot by updating the anchor values...- Overrides:
handleClick
in classPlot
- Parameters:
x
- x-coordinate, where the click occured.y
- y-coordinate, where the click occured.info
- An object for collection dimension information.
-
zoom
public void zoom(double percent) Deprecated.Zooms the axis ranges by the specified percentage about the anchor point. -
getPlotType
Deprecated.Returns the plot type as a string.- Specified by:
getPlotType
in classPlot
- Returns:
- A short string describing the type of plot.
-
getDataRange
Deprecated.Returns the range for an axis.- Specified by:
getDataRange
in interfaceValueAxisPlot
- Parameters:
axis
- the axis.- Returns:
- The range for an axis.
-
getContourDataRange
Deprecated.Returns the range for the Contours.- Specified by:
getContourDataRange
in interfaceContourValuePlot
- Returns:
- The range for the Contours (z-axis).
-
propertyChange
Deprecated.Notifies all registered listeners of a property change.One source of property change events is the plot's renderer.
- Specified by:
propertyChange
in interfacePropertyChangeListener
- Parameters:
event
- Information about the property change.
-
datasetChanged
Deprecated.Receives notification of a change to the plot's dataset.The chart reacts by passing on a chart change event to all registered listeners.
- Specified by:
datasetChanged
in interfaceDatasetChangeListener
- Overrides:
datasetChanged
in classPlot
- Parameters:
event
- Information about the event (not used here).
-
getColorBar
Deprecated.Returns the colorbar.- Returns:
- The colorbar.
-
isDomainCrosshairVisible
public boolean isDomainCrosshairVisible()Deprecated.Returns a flag indicating whether or not the domain crosshair is visible.- Returns:
- The flag.
-
setDomainCrosshairVisible
public void setDomainCrosshairVisible(boolean flag) Deprecated.Sets the flag indicating whether or not the domain crosshair is visible.- Parameters:
flag
- the new value of the flag.
-
isDomainCrosshairLockedOnData
public boolean isDomainCrosshairLockedOnData()Deprecated.Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.- Returns:
- The flag.
-
setDomainCrosshairLockedOnData
public void setDomainCrosshairLockedOnData(boolean flag) Deprecated.Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.- Parameters:
flag
- the flag.
-
getDomainCrosshairValue
public double getDomainCrosshairValue()Deprecated.Returns the domain crosshair value.- Returns:
- The value.
-
setDomainCrosshairValue
public void setDomainCrosshairValue(double value) Deprecated.Sets the domain crosshair value.Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
- Parameters:
value
- the new value.
-
setDomainCrosshairValue
public void setDomainCrosshairValue(double value, boolean notify) Deprecated.Sets the domain crosshair value.Registered listeners are notified that the axis has been modified, but only if the crosshair is visible.
- Parameters:
value
- the new value.notify
- a flag that controls whether or not listeners are notified.
-
getDomainCrosshairStroke
Deprecated.Returns the Stroke used to draw the crosshair (if visible).- Returns:
- The crosshair stroke.
-
setDomainCrosshairStroke
Deprecated.Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Parameters:
stroke
- the new crosshair stroke.
-
getDomainCrosshairPaint
Deprecated.Returns the domain crosshair color.- Returns:
- The crosshair color.
-
setDomainCrosshairPaint
Deprecated.Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Parameters:
paint
- the new crosshair paint.
-
isRangeCrosshairVisible
public boolean isRangeCrosshairVisible()Deprecated.Returns a flag indicating whether or not the range crosshair is visible.- Returns:
- The flag.
-
setRangeCrosshairVisible
public void setRangeCrosshairVisible(boolean flag) Deprecated.Sets the flag indicating whether or not the range crosshair is visible.- Parameters:
flag
- the new value of the flag.
-
isRangeCrosshairLockedOnData
public boolean isRangeCrosshairLockedOnData()Deprecated.Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.- Returns:
- The flag.
-
setRangeCrosshairLockedOnData
public void setRangeCrosshairLockedOnData(boolean flag) Deprecated.Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.- Parameters:
flag
- the flag.
-
getRangeCrosshairValue
public double getRangeCrosshairValue()Deprecated.Returns the range crosshair value.- Returns:
- The value.
-
setRangeCrosshairValue
public void setRangeCrosshairValue(double value) Deprecated.Sets the domain crosshair value.Registered listeners are notified that the plot has been modified, but only if the crosshair is visible.
- Parameters:
value
- the new value.
-
setRangeCrosshairValue
public void setRangeCrosshairValue(double value, boolean notify) Deprecated.Sets the range crosshair value.Registered listeners are notified that the axis has been modified, but only if the crosshair is visible.
- Parameters:
value
- the new value.notify
- a flag that controls whether or not listeners are notified.
-
getRangeCrosshairStroke
Deprecated.Returns the Stroke used to draw the crosshair (if visible).- Returns:
- The crosshair stroke.
-
setRangeCrosshairStroke
Deprecated.Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Parameters:
stroke
- the new crosshair stroke.
-
getRangeCrosshairPaint
Deprecated.Returns the range crosshair color.- Returns:
- The crosshair color.
-
setRangeCrosshairPaint
Deprecated.Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.- Parameters:
paint
- the new crosshair paint.
-
getToolTipGenerator
Deprecated.Returns the tool tip generator.- Returns:
- The tool tip generator (possibly null).
-
setToolTipGenerator
Deprecated.Sets the tool tip generator.- Parameters:
generator
- the tool tip generator (null permitted).
-
getURLGenerator
Deprecated.Returns the URL generator for HTML image maps.- Returns:
- The URL generator (possibly null).
-
setURLGenerator
Deprecated.Sets the URL generator for HTML image maps.- Parameters:
urlGenerator
- the URL generator (null permitted).
-
drawDomainMarker
public void drawDomainMarker(Graphics2D g2, ContourPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea) Deprecated.Draws a vertical line on the chart to represent a 'range marker'.- Parameters:
g2
- the graphics device.plot
- the plot.domainAxis
- the domain axis.marker
- the marker line.dataArea
- the axis data area.
-
drawRangeMarker
public void drawRangeMarker(Graphics2D g2, ContourPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea) Deprecated.Draws a horizontal line across the chart to represent a 'range marker'.- Parameters:
g2
- the graphics device.plot
- the plot.rangeAxis
- the range axis.marker
- the marker line.dataArea
- the axis data area.
-
getClipPath
Deprecated.Returns the clipPath.- Returns:
- ClipPath
-
setClipPath
Deprecated.Sets the clipPath.- Parameters:
clipPath
- The clipPath to set
-
getPtSizePct
public double getPtSizePct()Deprecated.Returns the ptSizePct.- Returns:
- double
-
isRenderAsPoints
public boolean isRenderAsPoints()Deprecated.Returns the renderAsPoints.- Returns:
- boolean
-
setPtSizePct
public void setPtSizePct(double ptSizePct) Deprecated.Sets the ptSizePct.- Parameters:
ptSizePct
- The ptSizePct to set
-
setRenderAsPoints
public void setRenderAsPoints(boolean renderAsPoints) Deprecated.Sets the renderAsPoints.- Parameters:
renderAsPoints
- The renderAsPoints to set
-
axisChanged
Deprecated.Receives notification of a change to one of the plot's axes.- Specified by:
axisChanged
in interfaceAxisChangeListener
- Overrides:
axisChanged
in classPlot
- Parameters:
event
- information about the event.
-
visibleRange
Deprecated.Returns the visible z-range.- Parameters:
data
- the dataset.x
- the x range.y
- the y range.- Returns:
- The range.
-
getMissingPaint
Deprecated.Returns the missingPaint.- Returns:
- Paint
-
setMissingPaint
Deprecated.Sets the missingPaint.- Parameters:
paint
- the missingPaint to set.
-
zoomDomainAxes
public void zoomDomainAxes(double x, double y, double factor) Deprecated.Multiplies the range on the domain axis/axes by the specified factor (to be implemented).- Parameters:
x
- the x-coordinate (in Java2D space).y
- the y-coordinate (in Java2D space).factor
- the zoom factor.
-
zoomDomainAxes
public void zoomDomainAxes(double x, double y, double lowerPercent, double upperPercent) Deprecated.Zooms the domain axes (not yet implemented).- Parameters:
x
- the x-coordinate (in Java2D space).y
- the y-coordinate (in Java2D space).lowerPercent
- the new lower bound.upperPercent
- the new upper bound.
-
zoomRangeAxes
public void zoomRangeAxes(double x, double y, double factor) Deprecated.Multiplies the range on the range axis/axes by the specified factor.- Parameters:
x
- the x-coordinate (in Java2D space).y
- the y-coordinate (in Java2D space).factor
- the zoom factor.
-
zoomRangeAxes
public void zoomRangeAxes(double x, double y, double lowerPercent, double upperPercent) Deprecated.Zooms the range axes (not yet implemented).- Parameters:
x
- the x-coordinate (in Java2D space).y
- the y-coordinate (in Java2D space).lowerPercent
- the new lower bound.upperPercent
- the new upper bound.
-
isDomainZoomable
public boolean isDomainZoomable()Deprecated.Returnsfalse
.- Returns:
- A boolean.
-
isRangeZoomable
public boolean isRangeZoomable()Deprecated.Returnsfalse
.- Returns:
- A boolean.
-
clone
Deprecated.Extends plot cloning to this plot type- Specified by:
clone
in interfaceorg.jfree.util.PublicCloneable
- Overrides:
clone
in classPlot
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- if some component of the plot does not support cloning.- See Also:
-
XYPlot
with anXYBlockRenderer
.