/** * Sets the limit below which pie sections are aggregated. * Set this to 0.0 if you don't want any aggregation to occur. * * @param limit the limit percent. */ public void setLimit(double limit) { this.limit = limit; fireChangeEvent(); }
/** * Sets the limit below which pie sections are aggregated. * Set this to 0.0 if you don't want any aggregation to occur. * * @param limit the limit percent. */ public void setLimit(double limit) { this.limit = limit; fireChangeEvent(); }
/** * Sets the data extract order (by row or by column) and sends a * {@link PlotChangeEvent} to all registered listeners. * * @param order the order (<code>null</code> not permitted). */ public void setDataExtractOrder(TableOrder order) { if (order == null) { throw new IllegalArgumentException("Null 'order' argument"); } this.dataExtractOrder = order; fireChangeEvent(); }
/** * Sets the key for aggregated items in the pie plots. You must ensure * that this doesn't clash with any keys in the dataset. * * @param key the key (<code>null</code> not permitted). * * @since 1.0.2 */ public void setAggregatedItemsKey(Comparable key) { if (key == null) { throw new IllegalArgumentException("Null 'key' argument."); } this.aggregatedItemsKey = key; fireChangeEvent(); }
/** * Sets the paint used to draw the pie section representing the aggregated * items and sends a {@link PlotChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> not permitted). * * @since 1.0.2 */ public void setAggregatedItemsPaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.aggregatedItemsPaint = paint; fireChangeEvent(); }
/** * Sets the shape used for legend items and sends a {@link PlotChangeEvent} * to all registered listeners. * * @param shape the shape (<code>null</code> not permitted). * * @see #getLegendItemShape() * * @since 1.0.12 */ public void setLegendItemShape(Shape shape) { if (shape == null) { throw new IllegalArgumentException("Null 'shape' argument."); } this.legendItemShape = shape; fireChangeEvent(); }
/** * Sets the data extract order (by row or by column) and sends a * {@link PlotChangeEvent} to all registered listeners. * * @param order the order ({@code null} not permitted). */ public void setDataExtractOrder(TableOrder order) { Args.nullNotPermitted(order, "order"); this.dataExtractOrder = order; fireChangeEvent(); }
/** * Sets the key for aggregated items in the pie plots. You must ensure * that this doesn't clash with any keys in the dataset. * * @param key the key ({@code null} not permitted). * * @since 1.0.2 */ public void setAggregatedItemsKey(Comparable key) { Args.nullNotPermitted(key, "key"); this.aggregatedItemsKey = key; fireChangeEvent(); }
/** * Sets the paint used to draw the pie section representing the aggregated * items and sends a {@link PlotChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} not permitted). * * @since 1.0.2 */ public void setAggregatedItemsPaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.aggregatedItemsPaint = paint; fireChangeEvent(); }
/** * Sets the shape used for legend items and sends a {@link PlotChangeEvent} * to all registered listeners. * * @param shape the shape ({@code null} not permitted). * * @see #getLegendItemShape() * * @since 1.0.12 */ public void setLegendItemShape(Shape shape) { Args.nullNotPermitted(shape, "shape"); this.legendItemShape = shape; fireChangeEvent(); }
/** * Sets the chart that is used to draw the individual pie plots. The * chart's plot must be an instance of {@link PiePlot}. * * @param pieChart the pie chart (<code>null</code> not permitted). * * @see #getPieChart() */ public void setPieChart(JFreeChart pieChart) { if (pieChart == null) { throw new IllegalArgumentException("Null 'pieChart' argument."); } if (!(pieChart.getPlot() instanceof PiePlot)) { throw new IllegalArgumentException("The 'pieChart' argument must " + "be a chart based on a PiePlot."); } this.pieChart = pieChart; fireChangeEvent(); }
/** * Sets the chart that is used to draw the individual pie plots. The * chart's plot must be an instance of {@link PiePlot}. * * @param pieChart the pie chart ({@code null} not permitted). * * @see #getPieChart() */ public void setPieChart(JFreeChart pieChart) { Args.nullNotPermitted(pieChart, "pieChart"); if (!(pieChart.getPlot() instanceof PiePlot)) { throw new IllegalArgumentException("The 'pieChart' argument must " + "be a chart based on a PiePlot."); } this.pieChart = pieChart; fireChangeEvent(); }