@Test public void testCloning() throws CloneNotSupportedException { CategoryTextAnnotation a1 = new CategoryTextAnnotation( "Test", "Category", 1.0); CategoryTextAnnotation a2 = (CategoryTextAnnotation) a1.clone(); assertNotSame(a1, a2); assertSame(a1.getClass(), a2.getClass()); assertEquals(a1, a2); }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
CategoryTextAnnotation extends TextAnnotation implements CategoryAnnotation, Cloneable, PublicCloneable,
                   Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }
CategoryTextAnnotation extends TextAnnotation implements CategoryAnnotation, Cloneable, PublicCloneable,
                   Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } CategoryTextAnnotation(String text, Comparable category, 
            double value); }
CategoryTextAnnotation extends TextAnnotation implements CategoryAnnotation, Cloneable, PublicCloneable,
                   Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } CategoryTextAnnotation(String text, Comparable category, 
            double value); Comparable getCategory(); void setCategory(Comparable category); CategoryAnchor getCategoryAnchor(); void setCategoryAnchor(CategoryAnchor anchor); double getValue(); void setValue(double value); @Override void draw(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea,
                     CategoryAxis domainAxis, ValueAxis rangeAxis); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
CategoryTextAnnotation extends TextAnnotation implements CategoryAnnotation, Cloneable, PublicCloneable,
                   Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } CategoryTextAnnotation(String text, Comparable category, 
            double value); Comparable getCategory(); void setCategory(Comparable category); CategoryAnchor getCategoryAnchor(); void setCategoryAnchor(CategoryAnchor anchor); double getValue(); void setValue(double value); @Override void draw(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea,
                     CategoryAxis domainAxis, ValueAxis rangeAxis); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }