|
||||||||||
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.CategoryPlot | +--com.jrefinery.chart.VerticalCategoryPlot | +--com.jrefinery.chart.OverlaidVerticalCategoryPlot
An extension of VerticalCategoryPlot that allows multiple VerticalCategoryPlots to be overlaid in one space, using common axes.
Fields inherited from class com.jrefinery.chart.CategoryPlot |
categoryGapsPercent, domainAxis, introGapPercent, itemGapsPercent, labelFont, labelFormatPattern, labelFormatter, labelPaint, parent, rangeAxis, rangeMarkers, renderer, trailGapPercent, valueLabelsVisible, verticalLabels |
Fields inherited from interface com.jrefinery.chart.CategoryPlotConstants |
DEFAULT_CATEGORY_GAPS_PERCENT, DEFAULT_INTRO_GAP_PERCENT, DEFAULT_ITEM_GAPS_PERCENT, DEFAULT_LABEL_FONT, DEFAULT_TRAIL_GAP_PERCENT, MAX_CATEGORY_GAPS_PERCENT, MAX_INTRO_GAP_PERCENT, MAX_ITEM_GAPS_PERCENT, MAX_TRAIL_GAP_PERCENT |
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 | |
OverlaidVerticalCategoryPlot(CategoryAxis domain,
ValueAxis range,
java.lang.Object[] categories)
Constructs a new overlaid vertical category plot. |
|
OverlaidVerticalCategoryPlot(java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel,
java.lang.Object[] categories)
Constructs a new overlaid vertical category plot. |
Method Summary | |
void |
add(VerticalCategoryPlot subplot)
Adds a subplot. |
java.util.List |
getLegendItemLabels()
Deprecated. use getLegendItems(). |
LegendItemCollection |
getLegendItems()
Returns the legend items. |
java.lang.Number |
getMaximumVerticalDataValue()
Returns the maximum value in the range (since the range values are plotted against the vertical axis by this plot). |
java.lang.Number |
getMinimumVerticalDataValue()
Returns the minimum value in the range (since this is plotted against the vertical axis by VerticalBarPlot). |
java.lang.String |
getPlotType()
Returns a string for the plot type. |
int |
getSeriesCount()
Returns the number of series in the plot. |
Range |
getVerticalDataRange()
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,
java.awt.Shape backgroundPlotArea)
Performs the actual drawing of the data. |
Methods inherited from class com.jrefinery.chart.VerticalCategoryPlot |
draw, getCategoryCoordinate, getCategoryDataset, getVerticalValueAxis, handleClick, isCompatibleDomainAxis, isCompatibleHorizontalAxis, isCompatibleRangeAxis, isCompatibleVerticalAxis |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OverlaidVerticalCategoryPlot(java.lang.String domainAxisLabel, java.lang.String rangeAxisLabel, java.lang.Object[] categories)
domainAxisLabel
- the label for the domain axis.rangeAxisLabel
- the label for the range axis.categories
- the categories to be shown on the domain axis.public OverlaidVerticalCategoryPlot(CategoryAxis domain, ValueAxis range, java.lang.Object[] categories)
domain
- horizontal axis to use for all sub-plots.range
- vertical axis to use for all sub-plots.categories
- the categories to be shown on the domain axis.Method Detail |
public void add(VerticalCategoryPlot subplot)
This method sets the axes of the subplot to null.
subplot
- the subplot.public java.util.List getLegendItemLabels()
getLegendItemLabels
in class CategoryPlot
public LegendItemCollection getLegendItems()
getLegendItems
in class CategoryPlot
public void render(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, ChartRenderingInfo info, java.awt.Shape backgroundPlotArea)
render
in class VerticalCategoryPlot
g2
- the graphics device.dataArea
- the data area.info
- the chart rendering info.backgroundPlotArea
- ??public java.lang.String getPlotType()
getPlotType
in class VerticalCategoryPlot
public int getSeriesCount()
getSeriesCount
in class CategoryPlot
public Range getVerticalDataRange()
If the dataset is null, this method returns null.
getVerticalDataRange
in class VerticalCategoryPlot
public java.lang.Number getMinimumVerticalDataValue()
This method will return null if the dataset is null.
getMinimumVerticalDataValue
in class VerticalCategoryPlot
public java.lang.Number getMaximumVerticalDataValue()
This method will return null if the dataset is null.
getMaximumVerticalDataValue
in class VerticalCategoryPlot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |