|
||||||||
| 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.CategoryPlot
com.jrefinery.chart.VerticalCategoryPlot
com.jrefinery.chart.OverlaidVerticalCategoryPlot
public class OverlaidVerticalCategoryPlot
An extension of VerticalCategoryPlot that allows multiple VerticalCategoryPlots to be overlaid in one space, using common axes.
| Field Summary | |
|---|---|
protected int |
seriesCount
The total number of series. |
protected java.util.List |
subplots
Storage for the subplot references. |
| Fields inherited from class com.jrefinery.chart.CategoryPlot |
|---|
categoryGapsPercent, domainAxis, introGapPercent, itemGapsPercent, labelFont, labelFormatPattern, labelFormatter, labelPaint, labelsVisible, markers, parent, rangeAxis, renderer, trailGapPercent, verticalLabels |
| 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.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_STROKE |
| Constructor Summary | |
|---|---|
OverlaidVerticalCategoryPlot(CategoryAxis domain,
ValueAxis range,
java.lang.Object[] categories)
Constructs an OverlaidVerticalCategoryPlot. |
|
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()
Returns an array of labels to be displayed by the legend. |
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 short string describing the type of plot. |
int |
getSeriesCount()
Returns the number of series in this 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)
Draws a representation of the data within the dataArea region, using the current renderer. |
void |
setFirstSeriesIndex(int index)
Sets the index of the first series. |
| 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 |
| Field Detail |
|---|
protected java.util.List subplots
protected int seriesCount
| 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 void render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
java.awt.Shape backgroundPlotArea)
VerticalCategoryPlot
render in class VerticalCategoryPlotg2 - The graphics device.dataArea - The region in which the data is to be drawn.info - An optional object for collection dimension information.backgroundPlotArea - The chart's background area.public java.lang.String getPlotType()
VerticalCategoryPlot
getPlotType in class VerticalCategoryPlotpublic int getSeriesCount()
CategoryPlotThis gets used when the plot is part of a combined chart...there may be a better mechanism in the future.
getSeriesCount in class CategoryPlotpublic void setFirstSeriesIndex(int index)
Plot
setFirstSeriesIndex in class Plotindex - The new index.public Range getVerticalDataRange()
If the dataset is null, this method returns null.
getVerticalDataRange in interface VerticalValuePlotgetVerticalDataRange in class VerticalCategoryPlotpublic java.lang.Number getMinimumVerticalDataValue()
This method will return null if the dataset is null.
getMinimumVerticalDataValue in class VerticalCategoryPlotpublic 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||