mWaba.gui
Class mImage

java.lang.Object
  |
  +--mWaba.DataValue
        |
        +--mWaba.gui.mImage
Direct Known Subclasses:
AniImage

public class mImage
extends DataValue


Field Summary
static int CompletelyIn
          Another image must be completely within this image to be considered "within" this image.
static int DrawBorderOnly
          Only draw the border.
 int drawMode
           
static int DrawNotStill
           
static int DrawStill
           
static int HasBorder
          The image has a border.
static int HasChanged
          The image has changed.
static int HasMoved
          The image has moved.
static int HasPriority
          The image has prioity (but not on top).
 waba.fx.Image image
           
static int InUse
          Used by MosaicPanel
static int IsEmpty
          The image is empty.
static int IsInvisible
          The image is invisible
static int IsLocked
          The image is locked - not used yet.
static int IsMoveable
          The image is moveable (draggable).
static int IsNotHot
          The image has no hot area.
static int IsNotStill
          The image is not still.
static int IsPrepared
          The image is fully prepared.
static int IsPreparing
          The image is being prepared
 RectArea location
           
 waba.fx.Image mask
           
 int properties
           
 
Constructor Summary
mImage()
           
mImage(java.lang.String mi)
           
mImage(java.lang.String mi, java.lang.String mm)
           
 
Method Summary
 void copyFrom(java.lang.Object other)
           
 void doDraw(waba.fx.Graphics g, int options)
          Bottom level draw.
 void draw(waba.fx.Graphics g)
          Draws itself on the graphic g at the point specified by the variable "location".
 void draw(waba.fx.Graphics g, int x, int y, int options)
          Draws itself on the graphic g at a specfied co-ordinate.
 void drawBorder(waba.fx.Graphics g, int x, int y, int options)
          Draws the border of the image.
 waba.fx.Rect getDim()
           
 Area getHotArea()
           
 java.lang.Object getNew()
           
 void imageSet()
           
static waba.fx.Image invert(waba.fx.Image what)
           
 boolean onHotArea(int x, int y)
          Returns if the point is on the hot area of the image.
 void setImage(waba.fx.Image im)
           
 void setImage(waba.fx.Image im, waba.fx.Image msk)
           
 void setImage(waba.fx.Image im, int dm)
           
 void setImage(mImage other)
           
 
Methods inherited from class mWaba.DataValue
getCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

public int properties

IsPreparing

public static final int IsPreparing
The image is being prepared

IsPrepared

public static final int IsPrepared
The image is fully prepared.

IsInvisible

public static final int IsInvisible
The image is invisible

HasBorder

public static final int HasBorder
The image has a border.

IsEmpty

public static final int IsEmpty
The image is empty.

HasPriority

public static final int HasPriority
The image has prioity (but not on top).

InUse

public static final int InUse
Used by MosaicPanel

IsNotHot

public static final int IsNotHot
The image has no hot area.

IsMoveable

public static final int IsMoveable
The image is moveable (draggable).

IsLocked

public static final int IsLocked
The image is locked - not used yet.

CompletelyIn

public static final int CompletelyIn
Another image must be completely within this image to be considered "within" this image.

HasMoved

public static final int HasMoved
The image has moved.

HasChanged

public static final int HasChanged
The image has changed.

IsNotStill

public static final int IsNotStill
The image is not still.

location

public RectArea location

drawMode

public int drawMode

image

public waba.fx.Image image

mask

public waba.fx.Image mask

DrawBorderOnly

public static final int DrawBorderOnly
Only draw the border.

DrawStill

public static final int DrawStill

DrawNotStill

public static final int DrawNotStill
Constructor Detail

mImage

public mImage()

mImage

public mImage(java.lang.String mi,
              java.lang.String mm)

mImage

public mImage(java.lang.String mi)
Method Detail

getNew

public java.lang.Object getNew()

invert

public static waba.fx.Image invert(waba.fx.Image what)

setImage

public void setImage(waba.fx.Image im,
                     waba.fx.Image msk)

setImage

public void setImage(waba.fx.Image im,
                     int dm)

setImage

public void setImage(waba.fx.Image im)

setImage

public void setImage(mImage other)

imageSet

public void imageSet()

copyFrom

public void copyFrom(java.lang.Object other)
Overrides:
copyFrom in class DataValue

drawBorder

public void drawBorder(waba.fx.Graphics g,
                       int x,
                       int y,
                       int options)
Draws the border of the image. If the image has a border it will be drawn.

doDraw

public void doDraw(waba.fx.Graphics g,
                   int options)
Bottom level draw. Override to change how the image is drawn. Will still allow borders to be drawn and allow invisible to have effect.

draw

public void draw(waba.fx.Graphics g,
                 int x,
                 int y,
                 int options)
Draws itself on the graphic g at a specfied co-ordinate. If the image has a border it will be drawn.

draw

public void draw(waba.fx.Graphics g)
Draws itself on the graphic g at the point specified by the variable "location". If the image has a border it will be drawn.

getHotArea

public Area getHotArea()

onHotArea

public boolean onHotArea(int x,
                         int y)
Returns if the point is on the hot area of the image.

getDim

public waba.fx.Rect getDim()