|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.fx.mImage
ewe.fx.DisabledIcon
This is a mImage that displays one of two images (the normal and disabled image) depending on whether it is asked to draw the image in normal or Disabled mode. Disabled mode is selected when a draw() method call is done with the DISABLED option selected. A normal mImage would display a grayed version of the image when disabled, but this mImage will display the disabled image instead.
| Field Summary | |
IImage |
disabled
The image to display when disabled. |
boolean |
dontFreeImages
If this is true then a call to free() will not free the supplied normal and disabled images, but it will still call super.free(). |
IImage |
normal
The image to display normally. |
| 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 | |
DisabledIcon(IImage normal,
IImage disabled)
|
|
| Method Summary | |
void |
doDraw(Graphics g,
int options)
Bottom level draw. |
void |
free()
This frees system resources associated with the Image. |
int |
getHeight()
This returns the height of the normal image. |
int |
getWidth()
This returns the width of the normal image. |
| Methods inherited from class ewe.fx.mImage |
changeRefresher, compareTo, copyFrom, decodeBytes, draw, draw, drawBorder, drawn, encodeBytes, fixColors, freeIfNotOriginal, freeSource, getBackground, getBrokenImage, getCopy, getDefaultImage, getDim, getFullCopy, getHotArea, getLocation, getNew, getPixels, getRefresher, getSize, getUnknownImage, getUnusedColor, imageSet, makeOpaqueHotArea, onHotArea, refresh, scale, setHotAreaInImage, setImage, setImage, setImage, setImage, setImage, setImage, setImage, setMImage, setRefresher, toAlphaImage, toCursor, toString, usesAlpha |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public IImage normal
public IImage disabled
public boolean dontFreeImages
| Constructor Detail |
public DisabledIcon(IImage normal,
IImage disabled)
normal - The image to display normally.disabled - The image to display when disabled.| Method Detail |
public void doDraw(Graphics g,
int options)
mImage
doDraw in class mImagepublic int getWidth()
getWidth in interface IImagegetWidth in class mImagepublic int getHeight()
getHeight in interface IImagegetHeight in class mImagepublic void free()
IImage
free in interface IImagefree in class mImage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||