Class CogwheelIcon

java.lang.Object
com.formdev.flatlaf.icons.FlatAbstractIcon
megamek.client.ui.baseComponents.CogwheelIcon
All Implemented Interfaces:
Icon, UIResource

@Deprecated(since="0.51.0", forRemoval=true) public class CogwheelIcon extends com.formdev.flatlaf.icons.FlatAbstractIcon
Deprecated, for removal: This API element is subject to removal in a future version.
This is a cogwheel icon that usually indicates some sort of config menu.
  • Field Summary

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

    color, height, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    CogwheelIcon(int size)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a cogwheel icon of the given size and with a standard FlatLaf color.
    CogwheelIcon(int size, int radius, int teeth, int toothDepth, int holeRadius)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a configurable cogwheel icon at given size and with the given values.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    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

    • CogwheelIcon

      @Deprecated(since="0.51.0", forRemoval=true) public CogwheelIcon()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a cogwheel icon at the standard size (16) suitable to place it in line with, e.g. a JTextfield and with a standard FlatLaf color.
    • CogwheelIcon

      public CogwheelIcon(int size)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a cogwheel icon of the given size and with a standard FlatLaf color.
    • CogwheelIcon

      public CogwheelIcon(int size, int radius, int teeth, int toothDepth, int holeRadius)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a configurable cogwheel icon at given size and with the given values.
  • Method Details

    • paintIcon

      protected void paintIcon(Component c, Graphics2D g)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      paintIcon in class com.formdev.flatlaf.icons.FlatAbstractIcon