public class Painter extends Object implements GraphicsConstants, AlignmentConstants
All, BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, Down, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN, Left, Right, Up
BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, LEFT, NORTH, NORTHEAST, NORTHWEST, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BORDER, TAG_FIXEDSIZE, TAG_INSETS, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PREFERREDSIZE, TAG_RECT, TAG_SPAN, TAG_TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
Constructor and Description |
---|
Painter() |
Modifier and Type | Method and Description |
---|---|
void |
cache() |
Painter |
clearBackground() |
Painter |
clearForeground() |
static Painter |
getCached() |
Painter |
paint(Graphics g,
int x,
int y,
int width,
int height,
PaintParameters pp) |
Painter |
paint(Graphics g,
Rect r,
PaintParameters pp) |
Painter |
setBackground(Brush b) |
Painter |
setBackground(Color c) |
Painter |
setForeground(Color c) |
public Painter clearBackground()
public Painter clearForeground()
public Painter paint(Graphics g, int x, int y, int width, int height, PaintParameters pp)
public Painter paint(Graphics g, Rect r, PaintParameters pp)
public static Painter getCached()
public void cache()