/** * Creates a new renderer for box and whisker charts. * <P> * Use -1 for the box width if you prefer the width to be calculated automatically. * * @param boxWidth the box width. */ public XYBoxAndWhiskerRenderer(double boxWidth) { super(); this.boxWidth = boxWidth; this.paint = Color.green; this.fillBox = true; setToolTipGenerator(new BoxAndWhiskerXYToolTipGenerator()); }
/** * Simple check that hashCode is implemented. */ public void testHashCode() { BoxAndWhiskerXYToolTipGenerator g1 = new BoxAndWhiskerXYToolTipGenerator(); BoxAndWhiskerXYToolTipGenerator g2 = new BoxAndWhiskerXYToolTipGenerator(); assertTrue(g1.equals(g2)); assertTrue(g1.hashCode() == g2.hashCode()); }
/** * Check to ensure that this class implements PublicCloneable. */ public void testPublicCloneable() { BoxAndWhiskerXYToolTipGenerator g1 = new BoxAndWhiskerXYToolTipGenerator(); assertTrue(g1 instanceof PublicCloneable); }
/** * Creates a new renderer for box and whisker charts. * <P> * Use -1 for the box width if you prefer the width to be calculated * automatically. * * @param boxWidth the box width. */ public XYBoxAndWhiskerRenderer(double boxWidth) { super(); this.boxWidth = boxWidth; this.boxPaint = Color.green; this.fillBox = true; setToolTipGenerator(new BoxAndWhiskerXYToolTipGenerator()); }
/** * Creates a new renderer for box and whisker charts. * <P> * Use -1 for the box width if you prefer the width to be calculated * automatically. * * @param boxWidth the box width. */ public XYBoxAndWhiskerRenderer(double boxWidth) { super(); this.boxWidth = boxWidth; this.boxPaint = Color.green; this.fillBox = true; setBaseToolTipGenerator(new BoxAndWhiskerXYToolTipGenerator()); }
/** * Creates a new renderer for box and whisker charts. * <P> * Use -1 for the box width if you prefer the width to be calculated * automatically. * * @param boxWidth the box width. */ public XYBoxAndWhiskerRenderer(double boxWidth) { super(); this.boxWidth = boxWidth; this.boxPaint = Color.GREEN; this.fillBox = true; setDefaultToolTipGenerator(new BoxAndWhiskerXYToolTipGenerator()); }