Available Methods
- getOrientation ( )
- setDataset ( )
- getRangeAxis ( )
- getDomainAxisEdge ( )
- setRenderer ( )
- getRangeAxisEdge ( )
- getRenderer ( )
- getDomainAxis ( )
- setBackgroundPaint ( )
- setRangeGridlinePaint ( )
- setRangeAxis ( )
- getDomainAxisIndex ( )
- setDomainGridlinePaint ( )
- getRangeAxisIndex ( )
- setOrientation ( )
- setDomainCrosshairVisible ( )
- setAxisOffset ( )
- setRangeCrosshairVisible ( )
- addAnnotation ( )
- getDomainAxisLocation ( )
- getDataset ( )
- setDomainGridlinesVisible ( )
- getRangeAxisLocation ( )
- addDomainMarker ( )
- setRangeGridlinesVisible ( )
- setDomainAxis ( )
- mapDatasetToRangeAxis ( )
- getDomainGridlinePaint ( )
- setDatasetRenderingOrder ( )
- setDomainCrosshairPaint ( )
- setRangeZeroBaselineVisible ( )
- getDrawingSupplier ( )
- setRangeAxisLocation ( )
- getRangeAxisCount ( )
- getDomainGridlineStroke ( )
- setRangeCrosshairPaint ( )
- setDomainGridlineStroke ( )
- setRangePannable ( )
- setDomainPannable ( )
- addRangeMarker ( )
- clearDomainMarkers ( )
- getDatasetCount ( )
- getLegendItems ( )
- getRangeAxisForDataset ( )
- setDomainZeroBaselineVisible ( )
- setRangeGridlineStroke ( )
- setForegroundAlpha ( )
- setInsets ( )
- getDomainCrosshairPaint ( )
- getDomainTickBandPaint ( )
- getRangeTickBandPaint ( )
- setRangeCrosshairValue ( )
- setNotify ( )
- indexOf ( )
- setRangeZeroBaselinePaint ( )
- setNoDataMessage ( )
- setBackgroundImageAlpha ( )
Related Classes
- java.text.SimpleDateFormat
- java.awt.Color
- java.awt.Font
- java.awt.Graphics2D
- java.awt.geom.Rectangle2D
- java.awt.BasicStroke
- java.awt.geom.Point2D
- java.awt.Shape
- java.awt.geom.Ellipse2D
- java.awt.Stroke
- org.jfree.chart.JFreeChart
- java.awt.geom.Line2D
- java.awt.geom.GeneralPath
- java.awt.Paint
- org.jfree.chart.ChartFactory
- java.awt.GradientPaint
- org.jfree.chart.plot.PlotOrientation
- org.jfree.chart.axis.NumberAxis
- org.jfree.chart.ChartPanel
- org.jfree.data.xy.XYSeries
- org.jfree.data.xy.XYSeriesCollection
- org.jfree.chart.renderer.xy.XYLineAndShapeRenderer
- org.jfree.data.xy.XYDataset
- org.jfree.chart.plot.CategoryPlot
- org.jfree.data.time.TimeSeriesCollection
Java Code Examples for org.jfree.chart.plot.XYPlot#getLegendItems()
The following examples show how to use
org.jfree.chart.plot.XYPlot#getLegendItems() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XYPlotTests.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Some checks for the getLegendItems() method. */ public void testGetLegendItems() { // check the case where there is a secondary dataset that doesn't // have a renderer (i.e. falls back to renderer 0) XYDataset d0 = createDataset1(); XYDataset d1 = createDataset2(); XYItemRenderer r0 = new XYLineAndShapeRenderer(); XYPlot plot = new XYPlot(); plot.setDataset(0, d0); plot.setDataset(1, d1); plot.setRenderer(0, r0); LegendItemCollection items = plot.getLegendItems(); assertEquals(2, items.getItemCount()); }
Example 2
Source File: XYPlotTests.java From astor with GNU General Public License v2.0 | 5 votes |
/** * Some checks for the getLegendItems() method. */ public void testGetLegendItems() { // check the case where there is a secondary dataset that doesn't // have a renderer (i.e. falls back to renderer 0) XYDataset d0 = createDataset1(); XYDataset d1 = createDataset2(); XYItemRenderer r0 = new XYLineAndShapeRenderer(); XYPlot plot = new XYPlot(); plot.setDataset(0, d0); plot.setDataset(1, d1); plot.setRenderer(0, r0); LegendItemCollection items = plot.getLegendItems(); assertEquals(2, items.getItemCount()); }