|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.chart.Plot | +--com.jrefinery.chart.XYPlot | +--com.jrefinery.chart.PeriodMarkerPlot
A plot that marks time periods, for use in overlaid plots.
Fields inherited from interface com.jrefinery.chart.AxisConstants |
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_PAINT, DEFAULT_TICK_STROKE |
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 drawArea,
ChartRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
java.util.List |
getLegendItemLabels()
Deprecated. use getLegendItems(). |
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. |
Range |
getVerticalDataRange()
Returns the range for the vertical axis. |
boolean |
isCompatibleHorizontalAxis(Axis axis)
Checks the compatibility of a horizontal axis, returning true if the axis is compatible with the plot, and false otherwise. |
boolean |
isCompatibleVerticalAxis(Axis axis)
Checks the compatibility of a vertical axis, returning true if the axis is compatible with the plot, and false otherwise. |
void |
zoom(double percent)
A zoom method that does nothing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jrefinery.chart.HorizontalValuePlot |
getHorizontalDataRange, getHorizontalValueAxis |
Methods inherited from interface com.jrefinery.chart.VerticalValuePlot |
getVerticalValueAxis |
Constructor Detail |
public PeriodMarkerPlot(XYDataset data, ValueAxis domainAxis, ValueAxis rangeAxis)
data
- the data series.domainAxis
- the domain axis.rangeAxis
- the range axis.Method Detail |
public LegendItemCollection getLegendItems()
getLegendItems
in class XYPlot
public java.lang.String getPlotType()
getPlotType
in class XYPlot
public Range getVerticalDataRange()
getVerticalDataRange
in interface VerticalValuePlot
getVerticalDataRange
in class XYPlot
public XYDataset getTempXYDataset()
public boolean isCompatibleHorizontalAxis(Axis axis)
axis
- the horizontal axis.true
if the axis is compatible with the plot.public boolean isCompatibleVerticalAxis(Axis axis)
axis
- the vertical axis.true
if the axis is compatible with the plot.public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D drawArea, ChartRenderingInfo info)
draw
in class XYPlot
g2
- the graphics device.drawArea
- the area within which the plot should be drawn.info
- an optional info collection object to return data back to the caller.public void zoom(double percent)
zoom
in class XYPlot
percent
- the zoom percentage.public java.util.List getLegendItemLabels()
getLegendItemLabels
in class XYPlot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |