@Test public void testCloning() throws CloneNotSupportedException { IntervalMarker m1 = new IntervalMarker(45.0, 50.0); IntervalMarker m2 = (IntervalMarker) m1.clone(); assertNotSame(m1, m2); assertSame(m1.getClass(), m2.getClass()); assertEquals(m1, m2); }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
IntervalMarker extends Marker implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }
IntervalMarker extends Marker implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } IntervalMarker(double start, double end);  IntervalMarker(double start, double end, Paint paint);  IntervalMarker(double start, double end,
                          Paint paint, Stroke stroke,
                          Paint outlinePaint, Stroke outlineStroke,
                          float alpha); }
IntervalMarker extends Marker implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } IntervalMarker(double start, double end);  IntervalMarker(double start, double end, Paint paint);  IntervalMarker(double start, double end,
                          Paint paint, Stroke stroke,
                          Paint outlinePaint, Stroke outlineStroke,
                          float alpha); double getStartValue(); void setStartValue(double value); double getEndValue(); void setEndValue(double value); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(
            GradientPaintTransformer transformer); @Override boolean equals(Object obj); @Override Object clone(); }
IntervalMarker extends Marker implements Cloneable, Serializable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } IntervalMarker(double start, double end);  IntervalMarker(double start, double end, Paint paint);  IntervalMarker(double start, double end,
                          Paint paint, Stroke stroke,
                          Paint outlinePaint, Stroke outlineStroke,
                          float alpha); double getStartValue(); void setStartValue(double value); double getEndValue(); void setEndValue(double value); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(
            GradientPaintTransformer transformer); @Override boolean equals(Object obj); @Override Object clone();  }