Class MulLinkIcon

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

public class MulLinkIcon extends com.formdev.flatlaf.icons.FlatAbstractIcon
A link icon (two chain links) and the letters "MUL". Clicking it opens the supplied URL in the system browser (if supported).
  • Field Summary

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

    color, height, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a MUL link icon at the standard size (16) suitable to place it in line with, e.g.
    MulLinkIcon(int size)
    Creates a MUL link icon with the given size and the standard FlatLaf color.
    MulLinkIcon(int size, Color color)
    Creates a MUL link icon with the given size and given 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

    • MulLinkIcon

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

      public MulLinkIcon(int size)
      Creates a MUL link icon with the given size and the standard FlatLaf color.
      Parameters:
      size - The pixel size of the icon. Note that this is automatically scaled depending on the GUI scaling
    • MulLinkIcon

      public MulLinkIcon(int size, Color color)
      Creates a MUL link icon with the given size and given color.
      Parameters:
      size - The pixel size of the icon. Note that this is automatically scaled depending on the GUI scaling
      color - The color to use for drawing the icon's shape
  • Method Details

    • paintIcon

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