@Test public void testCloning() throws CloneNotSupportedException { LegendItemEntity e1 = new LegendItemEntity(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0)); LegendItemEntity e2 = (LegendItemEntity) e1.clone(); assertNotSame(e1, e2); assertSame(e1.getClass(), e2.getClass()); assertEquals(e1, e2); }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
LegendItemEntity extends ChartEntity implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }
LegendItemEntity extends ChartEntity implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } LegendItemEntity(Shape area); }
LegendItemEntity extends ChartEntity implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } LegendItemEntity(Shape area); Dataset getDataset(); void setDataset(Dataset dataset); Comparable getSeriesKey(); void setSeriesKey(Comparable key); @Override boolean equals(Object obj); @Override Object clone(); @Override String toString(); }
LegendItemEntity extends ChartEntity implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } LegendItemEntity(Shape area); Dataset getDataset(); void setDataset(Dataset dataset); Comparable getSeriesKey(); void setSeriesKey(Comparable key); @Override boolean equals(Object obj); @Override Object clone(); @Override String toString();  }