ewe.fx
Class DrawnIcon

java.lang.Object
  extended byewe.fx.mImage
      extended byewe.fx.DrawnIcon
All Implemented Interfaces:
ByteEncodable, IImage, OnScreenImage

public class DrawnIcon
extends mImage

A DrawnIcon represents a number of Images which are "drawn" using Graphics primitives rather than from a Image.


Field Summary
static int CROSS
          This is a 'X' cross.
static int TICK
          This is a tick mark.
 
Fields inherited from class ewe.fx.mImage
AlwaysOnTop, backgroundColor, bitmask, CompletelyIn, drawable, drawMode, HasBorder, HasChanged, HasMoved, hotArea, hotPolygon, image, imageMayChange, InUse, IsAnimated, IsEmpty, IsInvisible, IsLocked, IsMoveable, IsNotHot, IsNotStill, IsPrepared, IsPreparing, KeepOnScreen, lastDrawn, location, mask, MouseMustBeOver, properties, RelativeToOrigin, sourceImage, sourceMask, transparentColor
 
Fields inherited from interface ewe.fx.IImage
DISABLED, OUTLINED
 
Constructor Summary
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
 
Method Summary
 void doDraw(Graphics g, int options)
          Bottom level draw.
 boolean usesAlpha()
          Returns whether the image uses the Alpha channel.
 
Methods inherited from class ewe.fx.mImage
changeRefresher, compareTo, copyFrom, decodeBytes, draw, draw, drawBorder, drawn, encodeBytes, fixColors, free, freeIfNotOriginal, freeSource, getBackground, getBrokenImage, getCopy, getDefaultImage, getDim, getFullCopy, getHeight, getHotArea, getLocation, getNew, getPixels, getRefresher, getSize, getUnknownImage, getUnusedColor, getWidth, imageSet, makeOpaqueHotArea, onHotArea, refresh, scale, setHotAreaInImage, setImage, setImage, setImage, setImage, setImage, setImage, setImage, setMImage, setRefresher, toAlphaImage, toCursor, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Field Detail

CROSS

public static final int CROSS
This is a 'X' cross.

See Also:
Constant Field Values

TICK

public static final int TICK
This is a tick mark.

See Also:
Constant Field Values
Constructor Detail

DrawnIcon

public DrawnIcon(int type,
                 int width,
                 int height,
                 Color c)
Create a new DrawnIcon

Parameters:
type - either CROSS or TICK.
width - The width of the icon.
height - The height of the icon.
c - The color of the icon.

DrawnIcon

public DrawnIcon(int type,
                 int width,
                 int height,
                 Pen p,
                 Brush b)
Create a new DrawnIcon

Parameters:
type - either CROSS or TICK.
width - The width of the icon.
height - The height of the icon.
p - The Pen to use for drawing.
b - The Brush to use for drawing.
Method Detail

doDraw

public void doDraw(Graphics g,
                   int options)
Description copied from class: mImage
Bottom level draw. Override to change how the image is drawn. Will still allow borders to be drawn and allow invisible to have effect.

Overrides:
doDraw in class mImage

usesAlpha

public boolean usesAlpha()
Description copied from interface: IImage
Returns whether the image uses the Alpha channel.

Specified by:
usesAlpha in interface IImage
Overrides:
usesAlpha in class mImage