public class DrawnIcon extends Drawing
Modifier and Type | Field and Description |
---|---|
static int |
BOX |
static int |
CROSS
This is a 'X' cross.
|
static int |
FILLED_CIRCLE |
static int |
TICK
This is a tick mark.
|
AlwaysOnTop, CompletelyIn, freeImageWithDrawing, HasBorder, HasChanged, HasMoved, hotArea, hotPolygon, image, InUse, IsAnimated, IsEmpty, IsInvisible, IsLocked, IsMoveable, IsNotHot, IsNotStill, IsPrepared, IsPreparing, KeepOnScreen, lastDrawn, location, MouseMustBeOver, properties, RelativeToOrigin
background, height, width
CREATE_OPTION_DONT_SCALE_UP, CREATE_OPTION_IGNORE_ALPHA, CREATE_OPTION_KEEP_ASPECT_RATIO, CREATE_OPTION_ROUGH_SCALING, SCAN_LINE_BYTE_ARRAY, SCAN_LINE_INT_ARRAY, TYPE_ARGB, TYPE_GRAY_SCALE_16, TYPE_GRAY_SCALE_2, TYPE_GRAY_SCALE_256, TYPE_GRAY_SCALE_4, TYPE_INDEXED_16, TYPE_INDEXED_2, TYPE_INDEXED_256, TYPE_INDEXED_4, TYPE_MASK, TYPE_MONO, TYPE_RGB, TYPE_UNKNOWN
Constructor and Description |
---|
DrawnIcon(int type,
int width,
int height,
Color c)
Create a new DrawnIcon
|
DrawnIcon(int type,
int width,
int height,
Pen p,
Brush b)
Create a new DrawnIcon
|
Modifier and Type | Method and Description |
---|---|
void |
doDraw(Graphics g,
int options)
Bottom level draw.
|
void |
draw(Graphics g,
int dx,
int dy,
int dw,
int dh,
int options) |
boolean |
usesAlpha()
Returns whether the image uses the Alpha channel.
|
compareTo, copyFrom, draw, draw, drawBorder, drawn, free, getBackground, getCopy, getDim, getHotArea, getImage, getImageScanLines, getLocation, getNew, getPixels, getSize, getUnusedColor, isWriteableImage, onHotArea, setHotAreaInImage, setImage, setImageScanLines, setLocation, setPixels, setRect, setSize
createImageFor, draw, freeImage, getCompatibleImagePoints, getDPI, getHeight, getImageColorTable, getImageData, getImageHeight, getImageScanLineLength, getImageScanLineType, getImageType, getImageWidth, getNativeDrawable, getPixelsUsingScanLines, getScanLinesUsingPixels, getWidth, isReadableImage, scanLinesComplete, setPixelsUsingScanLines, setScanLinePixels, setScanLinesUsingPixels
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
freeImage, getImageColorTable, getImageHeight, getImageScanLineLength, getImageScanLineType, getImageType, getImageWidth, isReadableImage
public static final int CROSS
public static final int TICK
public static final int FILLED_CIRCLE
public static final int BOX
public DrawnIcon(int type, int width, int height, Color c)
type
- either CROSS or TICK.width
- The width of the icon.height
- The height of the icon.c
- The color of the icon.public void doDraw(Graphics g, int options)
Drawing
public void draw(Graphics g, int dx, int dy, int dw, int dh, int options)
draw
in interface Drawable
draw
in class ImageObject