Package org.rspeer.commons.swing
Class SwingCommons
- java.lang.Object
-
- org.rspeer.commons.swing.SwingCommons
-
public class SwingCommons extends Object
-
-
Constructor Summary
Constructors Constructor Description SwingCommons()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createPlaceholder(String text, JTextComponent component)
static void
createPlaceholder(String text, JTextComponent component, boolean tooltip)
static BufferedImage
getDebugIcon()
static BufferedImage
getDeveloperIcon()
static BufferedImage
getIcon()
static BufferedImage
getLogo()
static BufferedImage
getScriptImage()
static BufferedImage
resizeImage(BufferedImage image, int newWidth, int newHeight)
static BufferedImage
resizeImage(BufferedImage image, int newWidth, int newHeight, boolean maintainAspectRatio)
static void
setStrictSize(Component component, int width, int height)
static BufferedImage
toBufferedImage(Image image)
-
-
-
Method Detail
-
setStrictSize
public static void setStrictSize(Component component, int width, int height)
-
getScriptImage
public static BufferedImage getScriptImage()
-
getLogo
public static BufferedImage getLogo()
-
getIcon
public static BufferedImage getIcon()
-
getDeveloperIcon
public static BufferedImage getDeveloperIcon()
-
getDebugIcon
public static BufferedImage getDebugIcon()
-
createPlaceholder
public static void createPlaceholder(String text, JTextComponent component)
-
createPlaceholder
public static void createPlaceholder(String text, JTextComponent component, boolean tooltip)
-
resizeImage
public static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight)
-
resizeImage
public static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight, boolean maintainAspectRatio)
-
toBufferedImage
public static BufferedImage toBufferedImage(Image image)
-
-