ucar.unidata.idv.control.chart
Class MyXYPlot

java.lang.Object
  extended by org.jfree.chart.plot.Plot
      extended by org.jfree.chart.plot.XYPlot
          extended by ucar.unidata.idv.control.chart.MyXYPlot
All Implemented Interfaces:
Serializable, Cloneable, EventListener, org.jfree.chart.event.AxisChangeListener, org.jfree.chart.event.MarkerChangeListener, org.jfree.chart.event.RendererChangeListener, org.jfree.chart.LegendItemSource, org.jfree.chart.plot.ValueAxisPlot, org.jfree.chart.plot.Zoomable, org.jfree.data.general.DatasetChangeListener, org.jfree.util.PublicCloneable

public class MyXYPlot
extends org.jfree.chart.plot.XYPlot
implements org.jfree.chart.plot.ValueAxisPlot, org.jfree.chart.plot.Zoomable, org.jfree.chart.event.RendererChangeListener, Cloneable, org.jfree.util.PublicCloneable, Serializable

A general class for plotting data in the form of (x, y) pairs. This plot can use data from any class that implements the XYDataset interface.

XYPlot makes use of an XYItemRenderer to draw each point on the plot. By using different renderers, various chart types can be produced.

The ChartFactory class contains static methods for creating pre-configured charts.

See Also:
Serialized Form

Field Summary
static Paint DEFAULT_CROSSHAIR_PAINT
          The default crosshair paint.
static Stroke DEFAULT_CROSSHAIR_STROKE
          The default crosshair stroke.
static boolean DEFAULT_CROSSHAIR_VISIBLE
          The default crosshair visibility.
static Paint DEFAULT_GRIDLINE_PAINT
          The default grid line paint.
static Stroke DEFAULT_GRIDLINE_STROKE
          The default grid line stroke.
protected static ResourceBundle localizationResources
          The resourceBundle for the localization.
 
Fields inherited from class org.jfree.chart.plot.Plot
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, 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
MyXYPlot()
          Default constructor.
MyXYPlot(org.jfree.data.xy.XYDataset dataset, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, org.jfree.chart.renderer.xy.XYItemRenderer renderer)
          Creates a new plot.
 
Method Summary
 void addAnnotation(org.jfree.chart.annotations.XYAnnotation annotation)
          Adds an annotation to the plot and sends a PlotChangeEvent to all registered listeners.
 void addDomainMarker(int index, org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer)
          Adds a marker for a renderer and sends a PlotChangeEvent to all registered listeners.
 void addDomainMarker(org.jfree.chart.plot.Marker marker)
          Adds a marker for the domain axis and sends a PlotChangeEvent to all registered listeners.
 void addDomainMarker(org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer)
          Adds a marker for the domain axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
 void addRangeMarker(int index, org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer)
          Adds a marker for a renderer and sends a PlotChangeEvent to all registered listeners.
 void addRangeMarker(org.jfree.chart.plot.Marker marker)
          Adds a marker for the range axis and sends a PlotChangeEvent to all registered listeners.
 void addRangeMarker(org.jfree.chart.plot.Marker marker, org.jfree.ui.Layer layer)
          Adds a marker for the range axis in the specified layer and sends a PlotChangeEvent to all registered listeners.
protected  org.jfree.chart.axis.AxisSpace calculateAxisSpace(Graphics2D g2, Rectangle2D plotArea)
          Calculates the space required for all the axes in the plot.
protected  org.jfree.chart.axis.AxisSpace calculateDomainAxisSpace(Graphics2D g2, Rectangle2D plotArea, org.jfree.chart.axis.AxisSpace space)
          Calculates the space required for the domain axis/axes.
protected  org.jfree.chart.axis.AxisSpace calculateRangeAxisSpace(Graphics2D g2, Rectangle2D plotArea, org.jfree.chart.axis.AxisSpace space)
          Calculates the space required for the range axis/axes.
 void clearAnnotations()
          Clears all the annotations and sends a PlotChangeEvent to all registered listeners.
 void clearDatasets()
          Clear the data sets
 void clearDomainAxes()
          Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.
 void clearDomainMarkers()
          Clears all the (foreground and background) domain markers and sends a PlotChangeEvent to all registered listeners.
 void clearDomainMarkers(int index)
          Clears the (foreground and background) domain markers for a particular renderer.
 void clearRangeAxes()
          Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners.
 void clearRangeMarkers()
          Clears all the range markers and sends a PlotChangeEvent to all registered listeners.
 void clearRangeMarkers(int index)
          Clears the (foreground and background) range markers for a particular renderer.
 Object clone()
          Returns a clone of the plot.
 void configureDomainAxes()
          Configures the domain axes.
 void configureRangeAxes()
          Configures the range axes.
 void datasetChanged(org.jfree.data.general.DatasetChangeEvent event)
          Receives notification of a change to the plot's dataset.
 void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, org.jfree.chart.plot.PlotState parentState, org.jfree.chart.plot.PlotRenderingInfo info)
          Draws the plot within the specified area on a graphics device.
 void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo info)
          Draws the annotations for the plot.
protected  Map drawAxes(Graphics2D g2, Rectangle2D plotArea, Rectangle2D dataArea, org.jfree.chart.plot.PlotRenderingInfo plotState)
          A utility method for drawing the axes.
 void drawBackground(Graphics2D g2, Rectangle2D area)
          Draws the background for the plot.
protected  void drawDomainGridlines(Graphics2D g2, Rectangle2D dataArea, List ticks)
          Draws the gridlines for the plot, if they are visible.
protected  void drawDomainMarkers(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.ui.Layer layer)
          Draws the domain markers (if any) for an axis and layer.
 void drawDomainTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks)
          Draws the domain tick bands, if any.
protected  void drawHorizontalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)
          Utility method for drawing a horizontal line across the data area of the plot.
protected  void drawQuadrants(Graphics2D g2, Rectangle2D area)
          Draws the quadrants.
protected  void drawRangeGridlines(Graphics2D g2, Rectangle2D area, List ticks)
          Draws the gridlines for the plot's primary range axis, if they are visible.
protected  void drawRangeMarkers(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.ui.Layer layer)
          Draws the range markers (if any) for a renderer and layer.
 void drawRangeTickBands(Graphics2D g2, Rectangle2D dataArea, List ticks)
          Draws the range tick bands, if any.
protected  void drawVerticalLine(Graphics2D g2, Rectangle2D dataArea, double value, Stroke stroke, Paint paint)
          Utility method for drawing a vertical line on the data area of the plot.
protected  void drawZeroRangeBaseline(Graphics2D g2, Rectangle2D area)
          Draws a base line across the chart at value zero on the range axis.
 boolean equals(Object obj)
          Tests this plot for equality with another object.
 org.jfree.ui.RectangleInsets getAxisOffset()
          Returns the axis offset.
 org.jfree.data.Range getDataRange(org.jfree.chart.axis.ValueAxis axis)
          Returns the range for the specified axis.
 org.jfree.data.xy.XYDataset getDataset()
          Returns the primary dataset for the plot.
 org.jfree.data.xy.XYDataset getDataset(int index)
          Returns a dataset.
 int getDatasetCount()
          Returns the number of datasets.
 org.jfree.chart.plot.DatasetRenderingOrder getDatasetRenderingOrder()
          Returns the dataset rendering order.
 org.jfree.chart.axis.ValueAxis getDomainAxis()
          Returns the domain axis for the plot.
 org.jfree.chart.axis.ValueAxis getDomainAxis(int index)
          Returns a domain axis.
 int getDomainAxisCount()
          Returns the number of domain axes.
 org.jfree.ui.RectangleEdge getDomainAxisEdge()
          Returns the edge for the primary domain axis (taking into account the plot's orientation.
 org.jfree.ui.RectangleEdge getDomainAxisEdge(int index)
          Returns the edge for a domain axis.
 org.jfree.chart.axis.ValueAxis getDomainAxisForDataset(int index)
          Returns the domain axis for a dataset.
 int getDomainAxisIndex(org.jfree.chart.axis.ValueAxis axis)
          Returns the index of the given domain axis.
 org.jfree.chart.axis.AxisLocation getDomainAxisLocation()
          Returns the location of the primary domain axis.
 org.jfree.chart.axis.AxisLocation getDomainAxisLocation(int index)
          Returns the location for a domain axis.
 Paint getDomainCrosshairPaint()
          Returns the domain crosshair color.
 Stroke getDomainCrosshairStroke()
          Returns the Stroke used to draw the crosshair (if visible).
 double getDomainCrosshairValue()
          Returns the domain crosshair value.
 Paint getDomainGridlinePaint()
          Returns the paint for the grid lines (if any) plotted against the domain axis.
 Stroke getDomainGridlineStroke()
          Returns the stroke for the grid-lines (if any) plotted against the domain axis.
 Collection getDomainMarkers(int index, org.jfree.ui.Layer layer)
          Returns a collection of domain markers for a particular renderer and layer.
 Collection getDomainMarkers(org.jfree.ui.Layer layer)
          Returns the list of domain markers (read only) for the specified layer.
 Paint getDomainTickBandPaint()
          Returns the paint used for the domain tick bands.
 org.jfree.chart.axis.AxisSpace getFixedDomainAxisSpace()
          Returns the fixed domain axis space.
 org.jfree.chart.LegendItemCollection getFixedLegendItems()
          Returns the fixed legend items, if any.
 org.jfree.chart.axis.AxisSpace getFixedRangeAxisSpace()
          Returns the fixed range axis space.
 int getIndexOf(org.jfree.chart.renderer.xy.XYItemRenderer renderer)
          Returns the index of the specified renderer, or -1 if the renderer is not assigned to this plot.
 org.jfree.chart.LegendItemCollection getLegendItems()
          Returns the legend items for the plot.
 org.jfree.chart.plot.PlotOrientation getOrientation()
          Returns the orientation of the plot.
 String getPlotType()
          Returns the plot type as a string.
 Point2D getQuadrantOrigin()
          Returns the origin for the quadrants that can be displayed on the plot.
 Paint getQuadrantPaint(int index)
          Returns the paint used for the specified quadrant.
 org.jfree.chart.axis.ValueAxis getRangeAxis()
          Returns the range axis for the plot.
 org.jfree.chart.axis.ValueAxis getRangeAxis(int index)
          Returns a range axis.
 int getRangeAxisCount()
          Returns the number of range axes.
 org.jfree.ui.RectangleEdge getRangeAxisEdge()
          Returns the edge for the primary range axis.
 org.jfree.ui.RectangleEdge getRangeAxisEdge(int index)
          Returns the edge for a range axis.
 org.jfree.chart.axis.ValueAxis getRangeAxisForDataset(int index)
          Returns the range axis for a dataset.
 int getRangeAxisIndex(org.jfree.chart.axis.ValueAxis axis)
          Returns the index of the given range axis.
 org.jfree.chart.axis.AxisLocation getRangeAxisLocation()
          Returns the location of the primary range axis.
 org.jfree.chart.axis.AxisLocation getRangeAxisLocation(int index)
          Returns the location for a range axis.
 Paint getRangeCrosshairPaint()
          Returns the range crosshair color.
 Stroke getRangeCrosshairStroke()
          Returns the Stroke used to draw the crosshair (if visible).
 double getRangeCrosshairValue()
          Returns the range crosshair value.
 Paint getRangeGridlinePaint()
          Returns the paint for the grid lines (if any) plotted against the range axis.
 Stroke getRangeGridlineStroke()
          Returns the stroke for the grid lines (if any) plotted against the range axis.
 Collection getRangeMarkers(int index, org.jfree.ui.Layer layer)
          Returns a collection of range markers for a particular renderer and layer.
 Collection getRangeMarkers(org.jfree.ui.Layer layer)
          Returns the list of range markers (read only) for the specified layer.
 Paint getRangeTickBandPaint()
          Returns the paint used for the range tick bands.
 Paint getRangeZeroBaselinePaint()
          Returns the paint for the zero baseline (if any) plotted against the range axis.
 Stroke getRangeZeroBaselineStroke()
          Returns the stroke used for the zero baseline against the range axis.
 org.jfree.chart.renderer.xy.XYItemRenderer getRenderer()
          Returns the renderer for the primary dataset.
 org.jfree.chart.renderer.xy.XYItemRenderer getRenderer(int index)
          Returns the renderer for a dataset, or null.
 org.jfree.chart.renderer.xy.XYItemRenderer getRendererForDataset(org.jfree.data.xy.XYDataset dataset)
          Returns the renderer for the specified dataset.
 int getSeriesCount()
          Returns the number of series in the primary dataset for this plot.
 org.jfree.chart.plot.SeriesRenderingOrder getSeriesRenderingOrder()
          Returns the series rendering order.
 int getWeight()
          Returns the weight for this plot when it is used as a subplot within a combined plot.
 void handleClick(int x, int y, org.jfree.chart.plot.PlotRenderingInfo info)
          Handles a 'click' on the plot by updating the anchor values...
 int indexOf(org.jfree.data.xy.XYDataset dataset)
          Returns the index of the specified dataset, or -1 if the dataset does not belong to the plot.
 boolean isDomainCrosshairLockedOnData()
          Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
 boolean isDomainCrosshairVisible()
          Returns a flag indicating whether or not the domain crosshair is visible.
 boolean isDomainGridlinesVisible()
          Returns true if the domain gridlines are visible, and false otherwise.
 boolean isDomainZoomable()
          Returns true
 boolean isRangeCrosshairLockedOnData()
          Returns a flag indicating whether or not the crosshair should "lock-on" to actual data values.
 boolean isRangeCrosshairVisible()
          Returns a flag indicating whether or not the range crosshair is visible.
 boolean isRangeGridlinesVisible()
          Returns true if the range axis grid is visible, and false otherwise.
 boolean isRangeZeroBaselineVisible()
          Returns a flag that controls whether or not a zero baseline is displayed for the range axis.
 boolean isRangeZoomable()
          Returns true
 void mapDatasetToDomainAxis(int index, int axisIndex)
          Maps a dataset to a particular domain axis.
 void mapDatasetToRangeAxis(int index, int axisIndex)
          Maps a dataset to a particular range axis.
 boolean removeAnnotation(org.jfree.chart.annotations.XYAnnotation annotation)
          Removes an annotation from the plot and sends a PlotChangeEvent to all registered listeners.
 boolean render(Graphics2D g2, Rectangle2D dataArea, int index, org.jfree.chart.plot.PlotRenderingInfo info, org.jfree.chart.plot.CrosshairState crosshairState)
          Draws a representation of the data within the dataArea region, using the current renderer.
 void rendererChanged(org.jfree.chart.event.RendererChangeEvent event)
          Receives notification of a renderer change event.
 void setAxisOffset(org.jfree.ui.RectangleInsets offset)
          Sets the axis offsets (gap between the data area and the axes).
 void setDataset(int index, org.jfree.data.xy.XYDataset dataset)
          Sets a dataset for the plot.
 void setDataset(org.jfree.data.xy.XYDataset dataset)
          Sets the primary dataset for the plot, replacing the existing dataset if there is one.
 void setDatasetRenderingOrder(org.jfree.chart.plot.DatasetRenderingOrder order)
          Sets the rendering order and sends a PlotChangeEvent to all registered listeners.
 void setDomainAxes(org.jfree.chart.axis.ValueAxis[] axes)
          Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners.
 void setDomainAxis(int index, org.jfree.chart.axis.ValueAxis axis)
          Sets a domain axis and sends a PlotChangeEvent to all registered listeners.
 void setDomainAxis(int index, org.jfree.chart.axis.ValueAxis axis, boolean notify)
          Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
 void setDomainAxis(org.jfree.chart.axis.ValueAxis axis)
          Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners.
 void setDomainAxisLocation(org.jfree.chart.axis.AxisLocation location)
          Sets the location of the domain axis and sends a PlotChangeEvent to all registered listeners.
 void setDomainAxisLocation(org.jfree.chart.axis.AxisLocation location, boolean notify)
          Sets the location of the domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.
 void setDomainAxisLocation(int index, org.jfree.chart.axis.AxisLocation location)
          Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners.
 void setDomainCrosshairLockedOnData(boolean flag)
          Sets the flag indicating whether or not the domain crosshair should "lock-on" to actual data values.
 void setDomainCrosshairPaint(Paint paint)
          Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
 void setDomainCrosshairStroke(Stroke stroke)
          Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
 void setDomainCrosshairValue(double value)
          Sets the domain crosshair value and sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
 void setDomainCrosshairValue(double value, boolean notify)
          Sets the domain crosshair value and, if requested, sends a PlotChangeEvent to all registered listeners (provided that the domain crosshair is visible).
 void setDomainCrosshairVisible(boolean flag)
          Sets the flag indicating whether or not the domain crosshair is visible.
 void setDomainGridlinePaint(Paint paint)
          Sets the paint for the grid lines plotted against the domain axis.
 void setDomainGridlineStroke(Stroke stroke)
          Sets the stroke for the grid lines plotted against the domain axis.
 void setDomainGridlinesVisible(boolean visible)
          Sets the flag that controls whether or not the domain grid-lines are visible.
 void setDomainTickBandPaint(Paint paint)
          Sets the paint for the domain tick bands.
 void setFixedDomainAxisSpace(org.jfree.chart.axis.AxisSpace space)
          Sets the fixed domain axis space.
 void setFixedLegendItems(org.jfree.chart.LegendItemCollection items)
          Sets the fixed legend items for the plot.
 void setFixedRangeAxisSpace(org.jfree.chart.axis.AxisSpace space)
          Sets the fixed range axis space.
 void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
          Sets the orientation for the plot.
 void setQuadrantOrigin(Point2D origin)
          Sets the quadrant origin and sends a PlotChangeEvent to all registered listeners.
 void setQuadrantPaint(int index, Paint paint)
          Sets the paint used for the specified quadrant and sends a PlotChangeEvent to all registered listeners.
 void setRangeAxes(org.jfree.chart.axis.ValueAxis[] axes)
          Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners.
 void setRangeAxis(int index, org.jfree.chart.axis.ValueAxis axis)
          Sets a range axis and sends a PlotChangeEvent to all registered listeners.
 void setRangeAxis(int index, org.jfree.chart.axis.ValueAxis axis, boolean notify)
          Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
 void setRangeAxis(org.jfree.chart.axis.ValueAxis axis)
          Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners.
 void setRangeAxisLocation(org.jfree.chart.axis.AxisLocation location)
          Sets the location of the primary range axis and sends a PlotChangeEvent to all registered listeners.
 void setRangeAxisLocation(org.jfree.chart.axis.AxisLocation location, boolean notify)
          Sets the location of the primary range axis and, if requested, sends a PlotChangeEvent to all registered listeners.
 void setRangeAxisLocation(int index, org.jfree.chart.axis.AxisLocation location)
          Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners.
 void setRangeCrosshairLockedOnData(boolean flag)
          Sets the flag indicating whether or not the range crosshair should "lock-on" to actual data values.
 void setRangeCrosshairPaint(Paint paint)
          Sets the Paint used to color the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
 void setRangeCrosshairStroke(Stroke stroke)
          Sets the Stroke used to draw the crosshairs (if visible) and notifies registered listeners that the axis has been modified.
 void setRangeCrosshairValue(double value)
          Sets the domain crosshair value.
 void setRangeCrosshairValue(double value, boolean notify)
          Sets the range crosshair value.
 void setRangeCrosshairVisible(boolean flag)
          Sets the flag indicating whether or not the range crosshair is visible.
 void setRangeGridlinePaint(Paint paint)
          Sets the paint for the grid lines plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
 void setRangeGridlineStroke(Stroke stroke)
          Sets the stroke for the grid lines plotted against the range axis, and sends a PlotChangeEvent to all registered listeners.
 void setRangeGridlinesVisible(boolean visible)
          Sets the flag that controls whether or not the range axis grid lines are visible.
 void setRangeTickBandPaint(Paint paint)
          Sets the paint for the range tick bands.
 void setRangeZeroBaselinePaint(Paint paint)
          Sets the paint for the zero baseline plotted against the range axis and sends a PlotChangeEvent to all registered listeners.
 void setRangeZeroBaselineStroke(Stroke stroke)
          Sets the stroke for the zero baseline for the range axis, and sends a PlotChangeEvent to all registered listeners.
 void setRangeZeroBaselineVisible(boolean visible)
          Sets the flag that controls whether or not the zero baseline is displayed for the range axis, and sends a PlotChangeEvent to all registered listeners.
 void setRenderer(int index, org.jfree.chart.renderer.xy.XYItemRenderer renderer)
          Sets a renderer and sends a PlotChangeEvent is sent to all registered listeners.
 void setRenderer(org.jfree.chart.renderer.xy.XYItemRenderer renderer)
          Sets the renderer for the primary dataset and sends a PlotChangeEvent to all registered listeners.
 void setSeriesRenderingOrder(org.jfree.chart.plot.SeriesRenderingOrder order)
          Sets the series order and sends a PlotChangeEvent to all registered listeners.
 void setWeight(int weight)
          Sets the weight for the plot.
 void zoomDomainAxes(double lowerPercent, double upperPercent, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source)
          Zooms in on the domain axis/axes.
 void zoomDomainAxes(double factor, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source)
          Multiplies the range on the domain axis/axes by the specified factor.
 void zoomRangeAxes(double lowerPercent, double upperPercent, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source)
          Zooms in on the range axes.
 void zoomRangeAxes(double factor, org.jfree.chart.plot.PlotRenderingInfo info, Point2D source)
          Multiplies the range on the range axis/axes by the specified factor.
 
Methods inherited from class org.jfree.chart.plot.XYPlot
drawDomainCrosshair, drawRangeCrosshair, drawZeroDomainBaseline, getAnnotations, getDomainZeroBaselinePaint, getDomainZeroBaselineStroke, isDomainZeroBaselineVisible, removeDomainMarker, removeDomainMarker, removeDomainMarker, removeRangeMarker, removeRangeMarker, removeRangeMarker, setDomainAxisLocation, setDomainZeroBaselinePaint, setDomainZeroBaselineStroke, setDomainZeroBaselineVisible, setRangeAxisLocation, setRenderer, setRenderers, zoomDomainAxes, zoomRangeAxes
 
Methods inherited from class org.jfree.chart.plot.Plot
addChangeListener, axisChanged, drawBackgroundImage, drawNoDataMessage, drawOutline, fillBackground, fillBackground, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundImageAlpha, getBackgroundPaint, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, isOutlineVisible, isSubplot, markerChanged, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundImageAlpha, setBackgroundPaint, setDatasetGroup, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setOutlineVisible, setParent, zoom
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.chart.plot.Zoomable
zoomDomainAxes, zoomRangeAxes
 

Field Detail

DEFAULT_GRIDLINE_STROKE

public static final Stroke DEFAULT_GRIDLINE_STROKE
The default grid line stroke.


DEFAULT_GRIDLINE_PAINT

public static final Paint DEFAULT_GRIDLINE_PAINT
The default grid line paint.


DEFAULT_CROSSHAIR_VISIBLE

public static final boolean DEFAULT_CROSSHAIR_VISIBLE
The default crosshair visibility.

See Also:
Constant Field Values

DEFAULT_CROSSHAIR_STROKE

public static final Stroke DEFAULT_CROSSHAIR_STROKE
The default crosshair stroke.


DEFAULT_CROSSHAIR_PAINT

public static final Paint DEFAULT_CROSSHAIR_PAINT
The default crosshair paint.


localizationResources

protected static ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Detail

MyXYPlot

public MyXYPlot()
Default constructor.


MyXYPlot

public MyXYPlot(org.jfree.data.xy.XYDataset dataset,
                org.jfree.chart.axis.ValueAxis domainAxis,
                org.jfree.chart.axis.ValueAxis rangeAxis,
                org.jfree.chart.renderer.xy.XYItemRenderer renderer)
Creates a new plot.

Parameters:
dataset - the dataset (null permitted).
domainAxis - the domain axis (null permitted).
rangeAxis - the range axis (null permitted).
renderer - the renderer (null permitted).
Method Detail

getPlotType

public String getPlotType()
Returns the plot type as a string.

Overrides:
getPlotType in class org.jfree.chart.plot.XYPlot
Returns:
A short string describing the type of plot.

getOrientation

public org.jfree.chart.plot.PlotOrientation getOrientation()
Returns the orientation of the plot.

Specified by:
getOrientation in interface org.jfree.chart.plot.Zoomable
Overrides:
getOrientation in class org.jfree.chart.plot.XYPlot
Returns:
The orientation of the plot.

setOrientation

public void setOrientation(org.jfree.chart.plot.PlotOrientation orientation)
Sets the orientation for the plot.

Overrides:
setOrientation in class org.jfree.chart.plot.XYPlot
Parameters:
orientation - the orientation (null not allowed).

getAxisOffset

public org.jfree.ui.RectangleInsets getAxisOffset()
Returns the axis offset.

Overrides:
getAxisOffset in class org.jfree.chart.plot.XYPlot
Returns:
The axis offset (never null).

setAxisOffset

public void setAxisOffset(org.jfree.ui.RectangleInsets offset)
Sets the axis offsets (gap between the data area and the axes).

Overrides:
setAxisOffset in class org.jfree.chart.plot.XYPlot
Parameters:
offset - the offset (null not permitted).

getDomainAxis

public org.jfree.chart.axis.ValueAxis getDomainAxis()
Returns the domain axis for the plot. If the domain axis for this plot is null, then the method will return the parent plot's domain axis (if there is a parent plot).

Overrides:
getDomainAxis in class org.jfree.chart.plot.XYPlot
Returns:
The domain axis.

getDomainAxis

public org.jfree.chart.axis.ValueAxis getDomainAxis(int index)
Returns a domain axis.

Overrides:
getDomainAxis in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
Returns:
The axis (null possible).

setDomainAxis

public void setDomainAxis(org.jfree.chart.axis.ValueAxis axis)
Sets the domain axis for the plot and sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxis in class org.jfree.chart.plot.XYPlot
Parameters:
axis - the new axis (null permitted).

setDomainAxis

public void setDomainAxis(int index,
                          org.jfree.chart.axis.ValueAxis axis)
Sets a domain axis and sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxis in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
axis - the axis.

setDomainAxis

public void setDomainAxis(int index,
                          org.jfree.chart.axis.ValueAxis axis,
                          boolean notify)
Sets a domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxis in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
axis - the axis.
notify - notify listeners?

setDomainAxes

public void setDomainAxes(org.jfree.chart.axis.ValueAxis[] axes)
Sets the domain axes for this plot and sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxes in class org.jfree.chart.plot.XYPlot
Parameters:
axes - the axes.

getDomainAxisLocation

public org.jfree.chart.axis.AxisLocation getDomainAxisLocation()
Returns the location of the primary domain axis.

Overrides:
getDomainAxisLocation in class org.jfree.chart.plot.XYPlot
Returns:
The location (never null).

setDomainAxisLocation

public void setDomainAxisLocation(org.jfree.chart.axis.AxisLocation location)
Sets the location of the domain axis and sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
location - the location (null not permitted).

setDomainAxisLocation

public void setDomainAxisLocation(org.jfree.chart.axis.AxisLocation location,
                                  boolean notify)
Sets the location of the domain axis and, if requested, sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
location - the location (null not permitted).
notify - notify listeners?

getDomainAxisEdge

public org.jfree.ui.RectangleEdge getDomainAxisEdge()
Returns the edge for the primary domain axis (taking into account the plot's orientation.

Overrides:
getDomainAxisEdge in class org.jfree.chart.plot.XYPlot
Returns:
The edge.

getDomainAxisCount

public int getDomainAxisCount()
Returns the number of domain axes.

Overrides:
getDomainAxisCount in class org.jfree.chart.plot.XYPlot
Returns:
The axis count.

clearDomainAxes

public void clearDomainAxes()
Clears the domain axes from the plot and sends a PlotChangeEvent to all registered listeners.

Overrides:
clearDomainAxes in class org.jfree.chart.plot.XYPlot

configureDomainAxes

public void configureDomainAxes()
Configures the domain axes.

Overrides:
configureDomainAxes in class org.jfree.chart.plot.XYPlot

getDomainAxisLocation

public org.jfree.chart.axis.AxisLocation getDomainAxisLocation(int index)
Returns the location for a domain axis. If this hasn't been set explicitly, the method returns the location that is opposite to the primary domain axis location.

Overrides:
getDomainAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
Returns:
The location (never null).

setDomainAxisLocation

public void setDomainAxisLocation(int index,
                                  org.jfree.chart.axis.AxisLocation location)
Sets the location for a domain axis and sends a PlotChangeEvent to all registered listeners.

Overrides:
setDomainAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
location - the location (null permitted).

getDomainAxisEdge

public org.jfree.ui.RectangleEdge getDomainAxisEdge(int index)
Returns the edge for a domain axis.

Overrides:
getDomainAxisEdge in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
Returns:
The edge.

getRangeAxis

public org.jfree.chart.axis.ValueAxis getRangeAxis()
Returns the range axis for the plot. If the range axis for this plot is null, then the method will return the parent plot's range axis (if there is a parent plot).

Overrides:
getRangeAxis in class org.jfree.chart.plot.XYPlot
Returns:
The range axis.

setRangeAxis

public void setRangeAxis(org.jfree.chart.axis.ValueAxis axis)
Sets the range axis for the plot and sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxis in class org.jfree.chart.plot.XYPlot
Parameters:
axis - the axis (null permitted).

getRangeAxisLocation

public org.jfree.chart.axis.AxisLocation getRangeAxisLocation()
Returns the location of the primary range axis.

Overrides:
getRangeAxisLocation in class org.jfree.chart.plot.XYPlot
Returns:
The location (never null).

setRangeAxisLocation

public void setRangeAxisLocation(org.jfree.chart.axis.AxisLocation location)
Sets the location of the primary range axis and sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
location - the location (null not permitted).

setRangeAxisLocation

public void setRangeAxisLocation(org.jfree.chart.axis.AxisLocation location,
                                 boolean notify)
Sets the location of the primary range axis and, if requested, sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
location - the location (null not permitted).
notify - notify listeners?

getRangeAxisEdge

public org.jfree.ui.RectangleEdge getRangeAxisEdge()
Returns the edge for the primary range axis.

Overrides:
getRangeAxisEdge in class org.jfree.chart.plot.XYPlot
Returns:
The range axis edge.

getRangeAxis

public org.jfree.chart.axis.ValueAxis getRangeAxis(int index)
Returns a range axis.

Overrides:
getRangeAxis in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
Returns:
The axis (null possible).

setRangeAxis

public void setRangeAxis(int index,
                         org.jfree.chart.axis.ValueAxis axis)
Sets a range axis and sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxis in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
axis - the axis (null permitted).

setRangeAxis

public void setRangeAxis(int index,
                         org.jfree.chart.axis.ValueAxis axis,
                         boolean notify)
Sets a range axis and, if requested, sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxis in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
axis - the axis (null permitted).
notify - and notify the listeners

setRangeAxes

public void setRangeAxes(org.jfree.chart.axis.ValueAxis[] axes)
Sets the range axes for this plot and sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxes in class org.jfree.chart.plot.XYPlot
Parameters:
axes - the axes.

getRangeAxisCount

public int getRangeAxisCount()
Returns the number of range axes.

Overrides:
getRangeAxisCount in class org.jfree.chart.plot.XYPlot
Returns:
The axis count.

clearRangeAxes

public void clearRangeAxes()
Clears the range axes from the plot and sends a PlotChangeEvent to all registered listeners.

Overrides:
clearRangeAxes in class org.jfree.chart.plot.XYPlot

configureRangeAxes

public void configureRangeAxes()
Configures the range axes.

Overrides:
configureRangeAxes in class org.jfree.chart.plot.XYPlot

getRangeAxisLocation

public org.jfree.chart.axis.AxisLocation getRangeAxisLocation(int index)
Returns the location for a range axis. If this hasn't been set explicitly, the method returns the location that is opposite to the primary range axis location.

Overrides:
getRangeAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
Returns:
The location (never null).

setRangeAxisLocation

public void setRangeAxisLocation(int index,
                                 org.jfree.chart.axis.AxisLocation location)
Sets the location for a range axis and sends a PlotChangeEvent to all registered listeners.

Overrides:
setRangeAxisLocation in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
location - the location (null permitted).

getRangeAxisEdge

public org.jfree.ui.RectangleEdge getRangeAxisEdge(int index)
Returns the edge for a range axis.

Overrides:
getRangeAxisEdge in class org.jfree.chart.plot.XYPlot
Parameters:
index - the axis index.
Returns:
The edge.