public interface CopyableIcon
extends javax.swing.Icon
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
copy()
Returns a copy of this icon.
|
default javax.swing.Icon |
deepCopy()
Returns a copy of this icon (see
copy() ) trying to deep-copy composited icons when applicable. |
javax.swing.Icon copy()
The copy should be a new instance, it should preserve the original size and should paint equal to the original bitmap. The subtype of the new icon is up to an implementor. It may or may not be equal the original subtype.
default javax.swing.Icon deepCopy()
copy()
) trying to deep-copy composited icons when applicable.