|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.fx.mImage
ewe.graphics.AniImage
| Nested Class Summary | |
static interface |
AniImage.ImageRefresher
Deprecated. use ewe.fx.ImageRefresher instead. |
| Field Summary | |
Control |
displayControl
|
Rect |
limits
Gets the bounds of the hot area. |
Mosaic |
mosaic
|
AniImage.ImageRefresher |
refresher
Deprecated. use setRefresher() with a ewe.fx.ImageRefresher object. |
Point |
relativeToOrigin
|
| 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 | |
AniImage()
|
|
AniImage(IImage image)
|
|
AniImage(IImage image,
int drawMode)
|
|
AniImage(Image image,
int drawMode,
boolean imageMayChange)
|
|
AniImage(String image)
|
|
AniImage(String image,
Color transparent)
|
|
AniImage(String image,
String mask)
|
|
| Method Summary | |
ImageMover |
animateMoveTo(int destinationX,
int destinationY,
int timeToMoveInMillis)
Move this AniImage to a new location, moving it on screen within a certain time period. |
boolean |
canGo(Point where)
|
void |
change(IImage newImage)
|
void |
change(Image newImage)
Changes the image. |
void |
change(Image newImage,
Image newMask)
Changes the image. |
void |
changed()
Marks the image as having been changed in some way. |
void |
closing()
This is called if the AniImage is displayed within an ImageControl and the Form that contained that ImageControl is now closing. |
Rect |
getMovedBounds()
|
Object |
getNew()
|
boolean |
hasARefresher()
This returns true if there is some object that can refresh the image on screen. |
boolean |
isCompletelyWithin(AniImage other)
Returns if this AniImage is completely within the other AniImage. |
boolean |
isDraggedOver(AniImage draggingOver,
Point mouseLocation)
|
boolean |
isIn(Point p)
|
boolean |
isTouching(AniImage other)
Returns if this AniImage is touching the other AniImage. |
boolean |
isWithin(AniImage other)
Returns if this AniImage is "within" the other AniImage - where "within" is "touching" if CompletelyIn property is not set, otherwise it is "isCompletelyWithin". |
void |
move(int x,
int y)
Moves the image. |
void |
refresh()
|
boolean |
refreshNow()
Refresh the AniImage. |
void |
resize(int width,
int height)
Resize the image. |
void |
setLocation(int x,
int y)
This resets the location of the image. |
void |
shown()
This is called if the AniImage is displayed within an ImageControl and that ImageControl has now been shown. |
void |
translate(int dx,
int dy)
Translates the image. |
void |
updated()
Marks the image as not having been changed. |
| Methods inherited from class ewe.fx.mImage |
changeRefresher, compareTo, copyFrom, decodeBytes, doDraw, draw, draw, drawBorder, drawn, encodeBytes, fixColors, free, freeIfNotOriginal, freeSource, getBackground, getBrokenImage, getCopy, getDefaultImage, getDim, getFullCopy, getHeight, getHotArea, getLocation, getPixels, getRefresher, getSize, getUnknownImage, getUnusedColor, getWidth, 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 Rect limits
public Point relativeToOrigin
public Mosaic mosaic
public Control displayControl
public AniImage.ImageRefresher refresher
| Constructor Detail |
public AniImage()
public AniImage(String image,
String mask)
throws IllegalArgumentException
public AniImage(String image)
throws IllegalArgumentException
public AniImage(String image,
Color transparent)
throws IllegalArgumentException
public AniImage(Image image,
int drawMode,
boolean imageMayChange)
public AniImage(IImage image,
int drawMode)
public AniImage(IImage image)
| Method Detail |
public Object getNew()
getNew in class mImagepublic boolean canGo(Point where)
public boolean isTouching(AniImage other)
public final boolean isCompletelyWithin(AniImage other)
public final boolean isWithin(AniImage other)
public final boolean isIn(Point p)
public final boolean isDraggedOver(AniImage draggingOver,
Point mouseLocation)
public void changed()
public void updated()
public void move(int x,
int y)
public void change(Image newImage)
public void change(Image newImage,
Image newMask)
public void change(IImage newImage)
public void resize(int width,
int height)
public void translate(int dx,
int dy)
public void setLocation(int x,
int y)
public Rect getMovedBounds()
public boolean hasARefresher()
public void refresh()
public void shown()
public void closing()
public boolean refreshNow()
public ImageMover animateMoveTo(int destinationX,
int destinationY,
int timeToMoveInMillis)
destinationX - The destination X position.destinationY - The destination Y position.timeToMoveInMillis - How long to take to move it in milliseconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||