Package megamek.client.ui.baseComponents
Class DeleteIcon
java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
megamek.client.ui.baseComponents.DeleteIcon
- All Implemented Interfaces:
Icon,UIResource
public class DeleteIcon
extends com.formdev.flatlaf.icons.FlatAbstractIcon
An icon showing an x in the GUIPreferences warning color for a "delete" or "clear" button
-
Field Summary
Fields inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
color, height, width -
Constructor Summary
ConstructorsConstructorDescriptionCreates a delete/clear icon at the standard size (16) suitable to place it in line with, e.g.DeleteIcon(int size) Creates a delete/clear icon of the given size and with the GUIPreferences warning color. -
Method Summary
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, getScale, paintBackground, paintIcon, scale, setScale
-
Constructor Details
-
DeleteIcon
public DeleteIcon()Creates a delete/clear icon at the standard size (16) suitable to place it in line with, e.g. a JTextfield and with a GUIPreferences warning color. -
DeleteIcon
public DeleteIcon(int size) Creates a delete/clear icon of the given size and with the GUIPreferences warning color.
-
-
Method Details
-
paintIcon
- Specified by:
paintIconin classcom.formdev.flatlaf.icons.FlatAbstractIcon
-