Package megamek.client.ui.baseComponents
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
ConstructorsConstructorDescriptionCreates 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
Methods inherited from class com.formdev.flatlaf.icons.FlatAbstractIcon
getIconHeight, getIconWidth, getScale, paintBackground, paintIcon, scale, setScale
-
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
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 scalingcolor- The color to use for drawing the icon's shape
-
-
Method Details
-
paintIcon
- Specified by:
paintIconin classcom.formdev.flatlaf.icons.FlatAbstractIcon
-