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#setInsets()
The following examples show how to use
org.jfree.chart.plot.XYPlot#setInsets() .
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: ChartUtils.java From PDV with GNU General Public License v3.0 | 5 votes |
/** * Set line style * @param plot XYPlot */ public static void setLineRender(XYPlot plot) { plot.setInsets(new RectangleInsets(10, 10, 0, 10), false); XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) plot.getRenderer(); renderer.setLegendItemToolTipGenerator( new StandardXYSeriesLabelGenerator("Legend {0}")); setXAixs(plot); setYAixs(plot); }
Example 2
Source File: GsnChartJfreechart.java From gsn with GNU General Public License v3.0 | 5 votes |
public JFreeChart createChart(Collection<Data> datas) { TimeSeries t1 = new TimeSeries("S1"); Iterator<Data> iter = datas.iterator() ; Data data ; while (iter.hasNext()) { data = iter.next(); t1.addOrUpdate(RegularTimePeriod.createInstance(Millisecond.class, new Date((Long)data.getP2()), TimeZone.getDefault()), data.getValue()); } XYDataset dataset = new TimeSeriesCollection(t1); JFreeChart chart = ChartFactory.createTimeSeriesChart( null, null, null, dataset, false, false, false ); chart.setAntiAlias(true); chart.setTextAntiAlias(true); chart.setBackgroundPaint(Color.WHITE); // XYPlot plot = (XYPlot) chart.getPlot(); plot.setNoDataMessage("No Data to Display"); plot.setDomainGridlinesVisible(true); plot.setBackgroundPaint(Color.WHITE); plot.setInsets(new RectangleInsets(5,14,0,5)); // DateAxis axis = (DateAxis) plot.getDomainAxis(); axis.setDateFormatOverride(ssdf); axis.setTickLabelFont(TICK_FONT); ValueAxis rangeAxis = plot.getRangeAxis(); rangeAxis.setTickLabelFont(TICK_FONT); // return chart; }