@Test public void testCloning() throws CloneNotSupportedException { BarRenderer r1 = new BarRenderer(); r1.setDefaultItemLabelGenerator(new StandardCategoryItemLabelGenerator()); r1.setBarPainter(new GradientBarPainter(0.11, 0.22, 0.33)); BarRenderer r2 = (BarRenderer) r1.clone(); assertNotSame(r1, r2); assertSame(r1.getClass(), r2.getClass()); assertEquals(r1, r2); }
public void setBarPainter(BarPainter painter) { if (painter == null) { throw new IllegalArgumentException("Null 'painter' argument."); } this.barPainter = painter; fireChangeEvent(); }
BarRenderer extends AbstractCategoryItemRenderer implements Cloneable, PublicCloneable, Serializable { public void setBarPainter(BarPainter painter) { if (painter == null) { throw new IllegalArgumentException("Null 'painter' argument."); } this.barPainter = painter; fireChangeEvent(); } }
BarRenderer extends AbstractCategoryItemRenderer implements Cloneable, PublicCloneable, Serializable { public void setBarPainter(BarPainter painter) { if (painter == null) { throw new IllegalArgumentException("Null 'painter' argument."); } this.barPainter = painter; fireChangeEvent(); } BarRenderer(); }
BarRenderer extends AbstractCategoryItemRenderer implements Cloneable, PublicCloneable, Serializable { public void setBarPainter(BarPainter painter) { if (painter == null) { throw new IllegalArgumentException("Null 'painter' argument."); } this.barPainter = painter; fireChangeEvent(); } BarRenderer(); static BarPainter getDefaultBarPainter(); static void setDefaultBarPainter(BarPainter painter); static boolean getDefaultShadowsVisible(); static void setDefaultShadowsVisible(boolean visible); double getBase(); void setBase(double base); double getItemMargin(); void setItemMargin(double percent); boolean isDrawBarOutline(); void setDrawBarOutline(boolean draw); double getMaximumBarWidth(); void setMaximumBarWidth(double percent); double getMinimumBarLength(); void setMinimumBarLength(double min); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(
            GradientPaintTransformer transformer); ItemLabelPosition getPositiveItemLabelPositionFallback(); void setPositiveItemLabelPositionFallback(
            ItemLabelPosition position); ItemLabelPosition getNegativeItemLabelPositionFallback(); void setNegativeItemLabelPositionFallback(
            ItemLabelPosition position); boolean getIncludeBaseInRange(); void setIncludeBaseInRange(boolean include); BarPainter getBarPainter(); void setBarPainter(BarPainter painter); boolean getShadowsVisible(); void setShadowVisible(boolean visible); Paint getShadowPaint(); void setShadowPaint(Paint paint); double getShadowXOffset(); void setShadowXOffset(double offset); double getShadowYOffset(); void setShadowYOffset(double offset); double getLowerClip(); double getUpperClip(); @Override CategoryItemRendererState initialise(Graphics2D g2,
                                                Rectangle2D dataArea,
                                                CategoryPlot plot,
                                                int rendererIndex,
                                                PlotRenderingInfo info); @Override Range findRangeBounds(CategoryDataset dataset,
            boolean includeInterval); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override void drawItem(Graphics2D g2,
                         CategoryItemRendererState state,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset dataset,
                         int row,
                         int column,
                         int pass); @Override boolean equals(Object obj); }
BarRenderer extends AbstractCategoryItemRenderer implements Cloneable, PublicCloneable, Serializable { public void setBarPainter(BarPainter painter) { if (painter == null) { throw new IllegalArgumentException("Null 'painter' argument."); } this.barPainter = painter; fireChangeEvent(); } BarRenderer(); static BarPainter getDefaultBarPainter(); static void setDefaultBarPainter(BarPainter painter); static boolean getDefaultShadowsVisible(); static void setDefaultShadowsVisible(boolean visible); double getBase(); void setBase(double base); double getItemMargin(); void setItemMargin(double percent); boolean isDrawBarOutline(); void setDrawBarOutline(boolean draw); double getMaximumBarWidth(); void setMaximumBarWidth(double percent); double getMinimumBarLength(); void setMinimumBarLength(double min); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(
            GradientPaintTransformer transformer); ItemLabelPosition getPositiveItemLabelPositionFallback(); void setPositiveItemLabelPositionFallback(
            ItemLabelPosition position); ItemLabelPosition getNegativeItemLabelPositionFallback(); void setNegativeItemLabelPositionFallback(
            ItemLabelPosition position); boolean getIncludeBaseInRange(); void setIncludeBaseInRange(boolean include); BarPainter getBarPainter(); void setBarPainter(BarPainter painter); boolean getShadowsVisible(); void setShadowVisible(boolean visible); Paint getShadowPaint(); void setShadowPaint(Paint paint); double getShadowXOffset(); void setShadowXOffset(double offset); double getShadowYOffset(); void setShadowYOffset(double offset); double getLowerClip(); double getUpperClip(); @Override CategoryItemRendererState initialise(Graphics2D g2,
                                                Rectangle2D dataArea,
                                                CategoryPlot plot,
                                                int rendererIndex,
                                                PlotRenderingInfo info); @Override Range findRangeBounds(CategoryDataset dataset,
            boolean includeInterval); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override void drawItem(Graphics2D g2,
                         CategoryItemRendererState state,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset dataset,
                         int row,
                         int column,
                         int pass); @Override boolean equals(Object obj); static final double DEFAULT_ITEM_MARGIN; static final double BAR_OUTLINE_WIDTH_THRESHOLD; }