|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jfree.chart.plot.Plot
|
+--org.jfree.chart.plot.CategoryPlot
|
+--org.jfree.chart.plot.VerticalCategoryPlot
|
+--org.jfree.chart.plot.OverlaidVerticalCategoryPlot
An extension of VerticalCategoryPlot that allows multiple plots to be overlaid in one
space, using common axes.
The code assumes that all the subplots use datasets with the SAME categories.
| Field Summary |
| 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.plot.CategoryPlotConstants |
DEFAULT_DOMAIN_GRIDLINES_VISIBLE, DEFAULT_GRIDLINE_PAINT, DEFAULT_GRIDLINE_STROKE, DEFAULT_RANGE_GRIDLINES_VISIBLE, DEFAULT_VALUE_LABEL_FONT |
| Constructor Summary | |
OverlaidVerticalCategoryPlot(CategoryAxis domain,
ValueAxis range)
Constructs a new overlaid vertical category plot. |
|
OverlaidVerticalCategoryPlot(java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel)
Constructs a new overlaid vertical category plot. |
|
| Method Summary | |
void |
add(VerticalCategoryPlot subplot)
Adds a subplot. |
CategoryDataset |
getCategoryDataset()
Returns the category dataset for the plot. |
LegendItemCollection |
getLegendItems()
Returns the legend items. |
java.lang.String |
getPlotType()
Returns a string for the plot type. |
Range |
getVerticalDataRange(ValueAxis axis)
Returns the range of data values that will be plotted against the range axis. |
void |
render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info)
Performs the actual drawing of the data. |
| Methods inherited from class org.jfree.chart.plot.VerticalCategoryPlot |
draw, getVerticalValueAxis, handleClick, isCompatibleDomainAxis, isCompatibleHorizontalAxis, isCompatibleRangeAxis, isCompatibleVerticalAxis, render2 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OverlaidVerticalCategoryPlot(java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel)
domainAxisLabel - the label for the domain axis.rangeAxisLabel - the label for the range axis.
public OverlaidVerticalCategoryPlot(CategoryAxis domain,
ValueAxis range)
domain - horizontal axis to use for all sub-plots.range - vertical axis to use for all sub-plots.| Method Detail |
public void add(VerticalCategoryPlot subplot)
This method sets the axes of the subplot to null.
subplot - the subplot.public CategoryDataset getCategoryDataset()
getCategoryDataset in class CategoryPlotpublic LegendItemCollection getLegendItems()
getLegendItems in class CategoryPlot
public void render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info)
render in class VerticalCategoryPlotg2 - the graphics device.dataArea - the data area.info - the chart rendering info.public java.lang.String getPlotType()
getPlotType in class VerticalCategoryPlotpublic Range getVerticalDataRange(ValueAxis axis)
If the dataset is null, this method returns null.
getVerticalDataRange in interface VerticalValuePlotgetVerticalDataRange in class VerticalCategoryPlotaxis - the axis.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||