public final class ImagePainter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TransparencyOpaque |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.geom.Rectangle2D |
alignRect(java.awt.geom.Dimension2D size,
java.awt.geom.Rectangle2D rect,
java.util.EnumSet<ImageAlignment> align)
Calculates the target rectangle for an object of given size inside a destination rectangle
according to the specified alignment.
|
static void |
draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.geom.Rectangle2D rect,
java.util.EnumSet<ImageAlignment> align)
Draws the specified image in the target rectangle
in the specified graphics using the specified image alignment.
|
static void |
draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.geom.Rectangle2D rect,
java.util.EnumSet<ImageAlignment> align,
int transparency)
Draws the specified image in the target rectangle in the specified graphics
using the specified image alignment and semi-transparency factor.
|
static void |
draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.geom.Rectangle2D rect,
ImageAlignment align)
Draws the specified image in the target rectangle
in the specified graphics using the specified image alignment.
|
static void |
draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.Rectangle rect,
java.util.EnumSet<ImageAlignment> align)
Draws the specified image in the target rectangle
in the specified graphics using the specified image alignment.
|
static void |
draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.Rectangle rect,
java.util.EnumSet<ImageAlignment> align,
int transparency)
Draws the specified image in the target rectangle in the specified graphics
using the specified image alignment and semi-transparency factor.
|
static void |
draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.Rectangle rect,
ImageAlignment align)
Draws the specified image in the target rectangle
in the specified graphics using the specified image alignment.
|
public static java.awt.geom.Rectangle2D alignRect(java.awt.geom.Dimension2D size,
java.awt.geom.Rectangle2D rect,
java.util.EnumSet<ImageAlignment> align)
size - The size of the object to align.rect - The destination rectangle.align - The alignment options.public static void draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.Rectangle rect,
ImageAlignment align)
public static void draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.Rectangle rect,
java.util.EnumSet<ImageAlignment> align)
public static void draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.geom.Rectangle2D rect,
ImageAlignment align)
public static void draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.geom.Rectangle2D rect,
java.util.EnumSet<ImageAlignment> align)
public static void draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.Rectangle rect,
java.util.EnumSet<ImageAlignment> align,
int transparency)
public static void draw(java.awt.Graphics2D g,
java.awt.Image image,
java.awt.geom.Rectangle2D rect,
java.util.EnumSet<ImageAlignment> align,
int transparency)