public class DisplayUtils extends Object
Constructor and Description |
---|
DisplayUtils() |
Modifier and Type | Method and Description |
---|---|
static Color |
getHighlightColor()
Returns a highlight color suitable for the selected LookAndFeel
|
static Dimension |
getScaledDimension(int width,
int height) |
static Icon |
getScaledIcon(Icon icon) |
static ImageIcon |
getScaledIcon(ImageIcon icon) |
static ImageIcon |
getScaledIcon(URL url)
Gets a correctly scaled icon from the specified url
|
static Insets |
getScaledInsets(int top,
int left,
int bottom,
int right)
Gets correctly scaled Insets
|
static int |
getScaledSize(int size) |
static List<Image> |
getZapIconImages()
Gets the available ZAP icon images.
|
static boolean |
isDarkLookAndFeel()
Returns true if a known dark LookAndFeel is being used
|
static void |
scaleIcon(JButton button) |
static void |
scaleIcon(JLabel label) |
static void |
scaleIcon(JToggleButton button) |
public static ImageIcon getScaledIcon(URL url)
url
- public static Dimension getScaledDimension(int width, int height)
public static int getScaledSize(int size)
public static void scaleIcon(JLabel label)
public static void scaleIcon(JButton button)
public static void scaleIcon(JToggleButton button)
public static List<Image> getZapIconImages()
Contains images with several dimensions, with higher dimensions at the end of the list.
List
with the ZAP icon images.public static Insets getScaledInsets(int top, int left, int bottom, int right)
public static boolean isDarkLookAndFeel()
public static Color getHighlightColor()