public class RMIconUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RMIconUtils.BorderIcon
An icon implementation that renders a border on another icon.
|
static class |
RMIconUtils.CompositeIcon
An icon implementation that draws two icons.
|
static class |
RMIconUtils.CompositeIcon2
An icon implementation that draws two icons.
|
static class |
RMIconUtils.LabelIcon
An icon implementation that uses a JLabel.
|
static class |
RMIconUtils.ShapeIcon
A simple icon implementation to draw a given shape in a given color in a given size.
|
static class |
RMIconUtils.SpacerIcon
An icon implementation that renders a border on another icon.
|
static class |
RMIconUtils.StretcherIcon
An icon implementation that stretches another icon to specified with.
|
Constructor and Description |
---|
RMIconUtils() |
Modifier and Type | Method and Description |
---|---|
static RMIconUtils.CompositeIcon2 |
getCompositeIcon(javax.swing.Icon anIcon1,
javax.swing.Icon anIcon2,
int anX,
int aY)
Returns a composite icon for original icon and new icon at x,y.
|
static javax.swing.Icon |
getIcon(java.awt.Shape aShape,
java.awt.Color aColor,
int aWidth,
int aHeight)
Returns an icon for the given shape, color and size.
|
static java.awt.image.BufferedImage |
getImage(javax.swing.Icon anIcon,
int aWidth,
int aHeight)
Returns an image for the given shape, image size and color.
|
static javax.swing.ImageIcon |
getImageIcon(javax.swing.Icon anIcon)
Returns an image icon for given icon.
|
static javax.swing.ImageIcon |
getImageIcon(javax.swing.Icon anIcon,
int aWidth,
int aHeight)
Returns an image icon for given icon.
|
static javax.swing.ImageIcon |
getImageIcon(java.awt.Shape aShape,
java.awt.Color aColor,
int aWidth,
int aHeight)
Returns an image icon for the given shape, color and size.
|
static void |
setButtonIconAsLabelIcon(javax.swing.AbstractButton aButton)
Set button icon.
|
static void |
setRolloverIcons(javax.swing.AbstractButton aButton,
boolean doSelected)
A convenience method for setting roll-over, pressed and selected icons for a tool bar button with just an icon.
|
static void |
setRolloverIcons(javax.swing.AbstractButton aButton,
boolean doSelected,
int w,
int h)
A convenience method for setting roll-over, pressed and selected icons for a tool bar button with just an icon.
|
public static javax.swing.Icon getIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
public static javax.swing.ImageIcon getImageIcon(java.awt.Shape aShape, java.awt.Color aColor, int aWidth, int aHeight)
public static javax.swing.ImageIcon getImageIcon(javax.swing.Icon anIcon)
public static javax.swing.ImageIcon getImageIcon(javax.swing.Icon anIcon, int aWidth, int aHeight)
public static java.awt.image.BufferedImage getImage(javax.swing.Icon anIcon, int aWidth, int aHeight)
public static void setRolloverIcons(javax.swing.AbstractButton aButton, boolean doSelected)
public static void setRolloverIcons(javax.swing.AbstractButton aButton, boolean doSelected, int w, int h)
public static RMIconUtils.CompositeIcon2 getCompositeIcon(javax.swing.Icon anIcon1, javax.swing.Icon anIcon2, int anX, int aY)
public static void setButtonIconAsLabelIcon(javax.swing.AbstractButton aButton)