public class GraphicsServices
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
drawRect(java.awt.Graphics g,
java.awt.Rectangle rect)
Draws a rectangle using a series of lines.
|
static boolean |
isRasterDevice(java.awt.Graphics2D g)
Determines if the graphics device is raster-based as opposed to
vector-based.
|
static boolean |
supportsAlpha(java.awt.Graphics2D g)
Determines if the graphics device supports colors with an alpha
component.
|
static boolean |
supportsBinaryWithTransparency(java.awt.Graphics2D g)
Determines if the graphics device supports a binary mask with a
transparent color.
|
public static boolean supportsAlpha(java.awt.Graphics2D g)
public static boolean isRasterDevice(java.awt.Graphics2D g)
public static boolean supportsBinaryWithTransparency(java.awt.Graphics2D g)
public static void drawRect(java.awt.Graphics g, java.awt.Rectangle rect)
g
- the graphics device to draw to.rect
- the rectangle to draw.