|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.chart.Plot
com.jrefinery.chart.XYPlot
com.jrefinery.chart.PeriodMarkerPlot
public class PeriodMarkerPlot
| Field Summary |
|---|
| Fields inherited from class com.jrefinery.chart.XYPlot |
|---|
domainAxis, horizontalColors, horizontalLines, parent, rangeAxis, renderer, verticalColors, verticalLines, weight |
| Fields inherited from class com.jrefinery.chart.Plot |
|---|
backgroundAlpha, backgroundImage, backgroundPaint, dataset, DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, firstSeriesIndex, foregroundAlpha, insets, listeners, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, outlinePaint, outlineStroke, seriesOutlinePaint, seriesOutlineStroke, seriesPaint, seriesStroke, shapeFactory, ZERO |
| 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_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). |
Range |
getHorizontalDataRange()
Returns the range of data values to be plotted along the horizontal axis. |
java.util.List |
getLegendItemLabels()
Returns an array of labels to be displayed by the legend. |
java.lang.Number |
getMaximumVerticalDataValue()
Returns the maximum value in the range, since this is plotted against the vertical axis for a HighLowPlot. |
java.lang.Number |
getMinimumVerticalDataValue()
Returns the minimum value in the range, since this is plotted against the vertical axis for a HighLowPlot. |
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 HighLowDataset. |
Range |
getVerticalDataRange()
Returns the range for the data to be plotted against the vertical axis. |
Range |
getVerticalRange()
|
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 |
|---|
getHorizontalValueAxis |
| Methods inherited from interface com.jrefinery.chart.VerticalValuePlot |
|---|
getVerticalValueAxis |
| Constructor Detail |
|---|
public PeriodMarkerPlot(XYDataset data,
ValueAxis domainAxis,
ValueAxis rangeAxis)
throws AxisNotCompatibleException,
PlotNotCompatibleException
AxisNotCompatibleException
PlotNotCompatibleException| Method Detail |
|---|
public java.util.List getLegendItemLabels()
XYPlot
getLegendItemLabels in class XYPlotpublic java.lang.String getPlotType()
getPlotType in class XYPlotpublic Range getVerticalDataRange()
VerticalValuePlot
getVerticalDataRange in interface VerticalValuePlotgetVerticalDataRange in class XYPlotpublic XYDataset getTempXYDataset()
public boolean isCompatibleHorizontalAxis(Axis axis)
axis - The horizontal axis.public boolean isCompatibleVerticalAxis(Axis axis)
axis - The vertical axis.public Range getHorizontalDataRange()
HorizontalValuePlot
getHorizontalDataRange in interface HorizontalValuePlotgetHorizontalDataRange in class XYPlotpublic Range getVerticalRange()
public java.lang.Number getMinimumVerticalDataValue()
public java.lang.Number getMaximumVerticalDataValue()
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D drawArea,
ChartRenderingInfo info)
draw in class XYPlotg2 - The graphics device.drawArea - The area within which the plot should be drawn.info - Collects chart drawing information (null permitted).public void zoom(double percent)
zoom in class XYPlotpercent - The zoom percentage.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||