|
||||||||
| 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.OverlaidXYPlot
public class OverlaidXYPlot
An extension of XYPlot that allows multiple XYPlots 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.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 | |
|---|---|
OverlaidXYPlot(java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel)
Constructs a new overlaid XY plot. |
|
OverlaidXYPlot(ValueAxis domain,
ValueAxis range)
Constructs an OverlaidXYPlot. |
|
| Method Summary | |
|---|---|
void |
add(XYPlot subplot)
Adds a subplot. |
Range |
getHorizontalDataRange()
Returns the horizontal (x-axis) data range. |
java.util.List |
getLegendItemLabels()
Returns an array of labels to be displayed by the legend. |
java.lang.String |
getPlotType()
Returns a string representing the plot type. |
int |
getSeriesCount()
Returns the number of series in this plot. |
Range |
getVerticalDataRange()
Returns the vertical (y-axis) data range. |
void |
render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
CrosshairInfo crosshairInfo)
Renders the subplots. |
void |
setFirstSeriesIndex(int index)
Sets the first series index. |
| Methods inherited from class com.jrefinery.chart.XYPlot |
|---|
addHorizontalLine, addHorizontalLine, addVerticalLine, addVerticalLine, datasetChanged, draw, draw, draw, drawHorizontalLine, drawHorizontalLines, drawVerticalLine, drawVerticalLines, getDomainAxis, getHorizontalAxis, getHorizontalValueAxis, getItemRenderer, getParent, getRangeAxis, getVerticalAxis, getVerticalValueAxis, getWeight, getXYDataset, handleClick, handleClick, isCompatibleDomainAxis, isCompatibleRangeAxis, isSubplot, propertyChange, setDomainAxis, setParent, setRangeAxis, setWeight, setXYItemRenderer, zoom |
| 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 OverlaidXYPlot(java.lang.String domainAxisLabel,
java.lang.String rangeAxisLabel)
After creating a new OverlaidXYPlot, you need to add some subplots.
No dataset is required, because each of the subplots maintains its own dataset.
This constructor is provided for convenience. If you need greater control over the axes, use another constructor.
domainAxisLabel - The label for the domain axis.rangeAxisLabel - The label for the range axis.
public OverlaidXYPlot(ValueAxis 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(XYPlot subplot)
This method sets the axes of the subplot to null.
subplot - The subplot.public java.util.List getLegendItemLabels()
getLegendItemLabels in class XYPlot
public void render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
CrosshairInfo crosshairInfo)
The draw(...) method inherited from XYPlot takes care of all the setup (background and axes) then calls the render(...) method.
render in class XYPlotg2 - The graphics device.dataArea - The area inside the axes.info - Optional information collection.crosshairInfo - Collects information about crosshairs.public java.lang.String getPlotType()
getPlotType in class XYPlotpublic Range getHorizontalDataRange()
getHorizontalDataRange in interface HorizontalValuePlotgetHorizontalDataRange in class XYPlotpublic Range getVerticalDataRange()
getVerticalDataRange in interface VerticalValuePlotgetVerticalDataRange in class XYPlotpublic int getSeriesCount()
getSeriesCount in class XYPlotpublic void setFirstSeriesIndex(int index)
setFirstSeriesIndex in class Plotindex - The index.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||