org.jfree.chart.plot
Class PeriodMarkerPlot

java.lang.Object
  extended byorg.jfree.chart.plot.Plot
      extended byorg.jfree.chart.plot.XYPlot
          extended byorg.jfree.chart.plot.PeriodMarkerPlot
All Implemented Interfaces:
AxisChangeListener, AxisConstants, java.lang.Cloneable, DatasetChangeListener, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, ValueAxisPlot

public class PeriodMarkerPlot
extends XYPlot
implements ValueAxisPlot

A plot that marks time periods, for use in overlaid plots.

Author:
sylvain
See Also:
Serialized Form

Field Summary
protected static java.util.ResourceBundle localizationResources
          The resourceBundle for the localization.
 
Fields inherited from class org.jfree.chart.plot.XYPlot
DEFAULT_CROSSHAIR_PAINT, DEFAULT_CROSSHAIR_STROKE, DEFAULT_CROSSHAIR_VISIBLE, DEFAULT_GRIDLINE_PAINT, DEFAULT_GRIDLINE_STROKE
 
Fields inherited from class org.jfree.chart.plot.Plot
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO
 
Fields inherited from interface org.jfree.chart.axis.AxisConstants
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_AXIS_LINE_PAINT, DEFAULT_AXIS_LINE_STROKE, DEFAULT_AXIS_VISIBLE, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_LABELS_VISIBLE, DEFAULT_TICK_MARK_INSIDE_LENGTH, DEFAULT_TICK_MARK_OUTSIDE_LENGTH, DEFAULT_TICK_MARK_PAINT, DEFAULT_TICK_MARK_STROKE, DEFAULT_TICK_MARKS_VISIBLE
 
Constructor Summary
PeriodMarkerPlot(XYDataset data, ValueAxis domainAxis, ValueAxis rangeAxis)
          Creates a new period marker plot.
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, ChartRenderingInfo info)
          Draws the plot on a Java 2D graphics device (such as the screen or a printer).
 LegendItemCollection getLegendItems()
          Returns the legend items (null for this plot).
 java.lang.String getPlotType()
          Returns the plot type as a string.
 XYDataset getTempXYDataset()
          A convenience method that returns the dataset for the plot, cast as an XYDataset.
 void zoom(double percent)
          A zoom method that does nothing.
 
Methods inherited from class org.jfree.chart.plot.XYPlot
addAnnotation, addDomainMarker, addDomainMarker, addRangeMarker, addRangeMarker, addSecondaryDomainMarker, addSecondaryDomainMarker, addSecondaryRangeMarker, addSecondaryRangeMarker, calculateAxisSpace, calculateDomainAxisSpace, calculateRangeAxisSpace, clearAnnotations, clearDomainMarkers, clearRangeMarkers, clearSecondaryDomainAxes, clearSecondaryRangeAxes, clearSecondaryRangeMarkers, clearSecondaryRangeMarkers, clone, configureSecondaryDomainAxes, configureSecondaryRangeAxes, datasetChanged, draw, draw, drawAnnotations, drawAxes, drawDomainGridlines, drawDomainMarkers, drawDomainTickBands, drawHorizontalLine, drawRangeGridlines, drawRangeMarkers, drawRangeTickBands, drawSecondaryDomainMarkers, drawSecondaryRangeMarkers, drawVerticalLine, equals, getAxisOffset, getDataRange, getDataset, getDomainAxis, getDomainAxisEdge, getDomainAxisLocation, getDomainCrosshairPaint, getDomainCrosshairStroke, getDomainCrosshairValue, getDomainGridlinePaint, getDomainGridlineStroke, getDomainMarkers, getDomainTickBandPaint, getFixedDomainAxisSpace, getFixedRangeAxisSpace, getOrientation, getRangeAxis, getRangeAxisEdge, getRangeAxisLocation, getRangeCrosshairPaint, getRangeCrosshairStroke, getRangeCrosshairValue, getRangeGridlinePaint, getRangeGridlineStroke, getRangeMarkers, getRangeTickBandPaint, getRenderer, getSecondaryDataset, getSecondaryDatasetCount, getSecondaryDomainAxis, getSecondaryDomainAxisCount, getSecondaryDomainAxisEdge, getSecondaryDomainAxisLocation, getSecondaryDomainAxisMappedToDataset, getSecondaryDomainMarkers, getSecondaryRangeAxis, getSecondaryRangeAxisCount, getSecondaryRangeAxisEdge, getSecondaryRangeAxisLocation, getSecondaryRangeAxisMappedToDataset, getSecondaryRangeMarkers, getSecondaryRenderer, getSeriesCount, getWeight, handleClick, isDomainCrosshairLockedOnData, isDomainCrosshairVisible, isDomainGridlinesVisible, isRangeCrosshairLockedOnData, isRangeCrosshairVisible, isRangeGridlinesVisible, mapSecondaryDatasetToDomainAxis, mapSecondaryDatasetToRangeAxis, propertyChange, render, render2, setAxisOffset, setDataset, setDomainAxis, setDomainAxisLocation, setDomainAxisLocation, setDomainCrosshairLockedOnData, setDomainCrosshairPaint, setDomainCrosshairStroke, setDomainCrosshairValue, setDomainCrosshairValue, setDomainCrosshairVisible, setDomainGridlinePaint, setDomainGridlineStroke, setDomainGridlinesVisible, setDomainTickBandPaint, setFixedDomainAxisSpace, setFixedRangeAxisSpace, setOrientation, setRangeAxis, setRangeAxisLocation, setRangeAxisLocation, setRangeCrosshairLockedOnData, setRangeCrosshairPaint, setRangeCrosshairStroke, setRangeCrosshairValue, setRangeCrosshairValue, setRangeCrosshairVisible, setRangeGridlinePaint, setRangeGridlineStroke, setRangeGridlinesVisible, setRangeTickBandPaint, setRenderer, setSecondaryDataset, setSecondaryDomainAxis, setSecondaryDomainAxisLocation, setSecondaryRangeAxis, setSecondaryRangeAxisLocation, setSecondaryRenderer, setWeight, zoomHorizontalAxes, zoomHorizontalAxes, zoomVerticalAxes, zoomVerticalAxes
 
Methods inherited from class org.jfree.chart.plot.Plot
addChangeListener, axisChanged, drawBackground, drawNoDataMessage, drawOutline, getBackgroundAlpha, getBackgroundImage, getBackgroundImageAlignment, getBackgroundPaint, getDataAreaRatio, getDatasetGroup, getDrawingSupplier, getForegroundAlpha, getInsets, getNoDataMessage, getNoDataMessageFont, getNoDataMessagePaint, getOutlinePaint, getOutlineStroke, getParent, getRectX, getRectY, getRootPlot, isSubplot, notifyListeners, removeChangeListener, resolveDomainAxisLocation, resolveRangeAxisLocation, setBackgroundAlpha, setBackgroundImage, setBackgroundImageAlignment, setBackgroundPaint, setDataAreaRatio, setDatasetGroup, setDrawingSupplier, setForegroundAlpha, setInsets, setInsets, setNoDataMessage, setNoDataMessageFont, setNoDataMessagePaint, setOutlinePaint, setOutlineStroke, setParent
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfree.chart.plot.ValueAxisPlot
getDataRange, zoomHorizontalAxes, zoomHorizontalAxes, zoomVerticalAxes, zoomVerticalAxes
 

Field Detail

localizationResources

protected static java.util.ResourceBundle localizationResources
The resourceBundle for the localization.

Constructor Detail

PeriodMarkerPlot

public PeriodMarkerPlot(XYDataset data,
                        ValueAxis domainAxis,
                        ValueAxis rangeAxis)
Creates a new period marker plot.

Parameters:
data - the data series.
domainAxis - the domain axis.
rangeAxis - the range axis.
Method Detail

getLegendItems

public LegendItemCollection getLegendItems()
Returns the legend items (null for this plot).

Overrides:
getLegendItems in class XYPlot
Returns:
the legend items.

getPlotType

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

Overrides:
getPlotType in class XYPlot
Returns:
Period Marker Plot.

getTempXYDataset

public XYDataset getTempXYDataset()
A convenience method that returns the dataset for the plot, cast as an XYDataset.

Returns:
a dataset.

draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.Rectangle2D plotArea,
                 ChartRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a printer).

Parameters:
g2 - the graphics device.
plotArea - the area within which the plot should be drawn.
info - an optional info collection object to return data back to the caller.

zoom

public void zoom(double percent)
A zoom method that does nothing. TO BE DONE.

Overrides:
zoom in class XYPlot
Parameters:
percent - the zoom percentage.