@Test public void testCloning() throws CloneNotSupportedException { TextTitle t1 = new TextTitle(); TextTitle t2 = (TextTitle) t1.clone(); assertNotSame(t1, t2); assertSame(t1.getClass(), t2.getClass()); assertEquals(t1, t2); }
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
TextTitle extends Title implements Serializable, Cloneable, PublicCloneable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } }
TextTitle extends Title implements Serializable, Cloneable, PublicCloneable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } TextTitle();  TextTitle(String text);  TextTitle(String text, Font font);  TextTitle(String text, Font font, Paint paint,
                     RectangleEdge position,
                     HorizontalAlignment horizontalAlignment,
                     VerticalAlignment verticalAlignment,
                     RectangleInsets padding); }
TextTitle extends Title implements Serializable, Cloneable, PublicCloneable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } TextTitle();  TextTitle(String text);  TextTitle(String text, Font font);  TextTitle(String text, Font font, Paint paint,
                     RectangleEdge position,
                     HorizontalAlignment horizontalAlignment,
                     VerticalAlignment verticalAlignment,
                     RectangleInsets padding); String getText(); void setText(String text); HorizontalAlignment getTextAlignment(); void setTextAlignment(HorizontalAlignment alignment); Font getFont(); void setFont(Font font); Paint getPaint(); void setPaint(Paint paint); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); String getToolTipText(); void setToolTipText(String text); String getURLText(); void setURLText(String text); boolean getExpandToFitSpace(); void setExpandToFitSpace(boolean expand); int getMaximumLinesToDisplay(); void setMaximumLinesToDisplay(int max); @Override Size2D arrange(Graphics2D g2, RectangleConstraint constraint); @Override void draw(Graphics2D g2, Rectangle2D area); @Override Object draw(Graphics2D g2, Rectangle2D area, Object params); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
TextTitle extends Title implements Serializable, Cloneable, PublicCloneable { @Override public Object clone() throws CloneNotSupportedException { return super.clone(); } TextTitle();  TextTitle(String text);  TextTitle(String text, Font font);  TextTitle(String text, Font font, Paint paint,
                     RectangleEdge position,
                     HorizontalAlignment horizontalAlignment,
                     VerticalAlignment verticalAlignment,
                     RectangleInsets padding); String getText(); void setText(String text); HorizontalAlignment getTextAlignment(); void setTextAlignment(HorizontalAlignment alignment); Font getFont(); void setFont(Font font); Paint getPaint(); void setPaint(Paint paint); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); String getToolTipText(); void setToolTipText(String text); String getURLText(); void setURLText(String text); boolean getExpandToFitSpace(); void setExpandToFitSpace(boolean expand); int getMaximumLinesToDisplay(); void setMaximumLinesToDisplay(int max); @Override Size2D arrange(Graphics2D g2, RectangleConstraint constraint); @Override void draw(Graphics2D g2, Rectangle2D area); @Override Object draw(Graphics2D g2, Rectangle2D area, Object params); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); static final Font DEFAULT_FONT; static final Paint DEFAULT_TEXT_PAINT; }