@Test public void testCloning() throws CloneNotSupportedException { TextTitle t = new TextTitle("Title"); XYTitleAnnotation a1 = new XYTitleAnnotation(1.0, 2.0, t); XYTitleAnnotation a2 = (XYTitleAnnotation) a1.clone(); assertNotSame(a1, a2); assertSame(a1.getClass(), a2.getClass()); assertEquals(a1, a2); }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
XYTitleAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }
XYTitleAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } XYTitleAnnotation(double x, double y, Title title);  XYTitleAnnotation(double x, double y, Title title,
            RectangleAnchor anchor); }
XYTitleAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } XYTitleAnnotation(double x, double y, Title title);  XYTitleAnnotation(double x, double y, Title title,
            RectangleAnchor anchor); XYCoordinateType getCoordinateType(); double getX(); double getY(); Title getTitle(); RectangleAnchor getTitleAnchor(); double getMaxWidth(); void setMaxWidth(double max); double getMaxHeight(); void setMaxHeight(double max); @Override void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
                     ValueAxis domainAxis, ValueAxis rangeAxis,
                     int rendererIndex,
                     PlotRenderingInfo info); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
XYTitleAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } XYTitleAnnotation(double x, double y, Title title);  XYTitleAnnotation(double x, double y, Title title,
            RectangleAnchor anchor); XYCoordinateType getCoordinateType(); double getX(); double getY(); Title getTitle(); RectangleAnchor getTitleAnchor(); double getMaxWidth(); void setMaxWidth(double max); double getMaxHeight(); void setMaxHeight(double max); @Override void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
                     ValueAxis domainAxis, ValueAxis rangeAxis,
                     int rendererIndex,
                     PlotRenderingInfo info); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }