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

    Constructors
    Constructor
    Description
    Creates 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

    Modifier and Type
    Method
    Description
    protected void
     

    Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon

    getIconHeight, getIconWidth, getScale, paintBackground, paintIcon, scale, setScale

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected void paintIcon(Component c, Graphics2D g)
      Specified by:
      paintIcon in class com.formdev.flatlaf.icons.FlatAbstractIcon