Class BooksIcon

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

public class BooksIcon extends com.formdev.flatlaf.icons.FlatAbstractIcon
An icon showing stylized books and a mouse arrow. Used for sourcebook selection.
  • Field Summary

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

    color, height, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a books icon at the standard size (16) suitable to place it in line with, e.g.
    BooksIcon(int size)
    Creates a books icon of the given size and with a standard FlatLaf color.
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    • BooksIcon

      public BooksIcon()
      Creates a books icon at the standard size (16) suitable to place it in line with, e.g. a JTextfield and with a standard FlatLaf color.
    • BooksIcon

      public BooksIcon(int size)
      Creates a books icon of the given size and with a standard FlatLaf color.
  • Method Details

    • paintIcon

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