moka.x
Class Image

java.lang.Object
  |
  +--moka.lang.Object
        |
        +--moka.event.EventListener
              |
              +--moka.x.Component
                    |
                    +--moka.x.Image
Direct Known Subclasses:
Canvas

public class Image
extends Component

TextArea class is a text entry component.

Since:
MDK1.0a

Field Summary
 moka.x.BITMAP_p bmp
          The bitmap displayed by this Image.
 
Fields inherited from class moka.x.Component
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y
 
Constructor Summary
Image()
           
Image(moka.x.BITMAP_p bmp)
           
Image(java.lang.String file)
           
 
Method Summary
 void finalize()
          Frees the memory of system ressources used by this Image object.
 void paint()
          Paints the Image.
 void setBmp(moka.x.BITMAP_p bmp)
          Sets the bitmap displayed by this Image.
 void setBmp(java.lang.String file)
          Sets the bitmap displayed by this Image.
 
Methods inherited from class moka.x.Component
bottom, center, checkMnemonic, clean, eventTriggered, isCursorOver, left, move, onPaint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, toFront, top, use
 
Methods inherited from class moka.event.EventListener
eventTriggered
 
Methods inherited from class moka.lang.Object
equals, getClassName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bmp

public moka.x.BITMAP_p bmp
The bitmap displayed by this Image. Should be only read.

Constructor Detail

Image

public Image()

Image

public Image(moka.x.BITMAP_p bmp)

Image

public Image(java.lang.String file)
Method Detail

paint

public void paint()
Paints the Image.

Overrides:
paint in class Component

finalize

public void finalize()
Frees the memory of system ressources used by this Image object.

Overrides:
finalize in class Component

setBmp

public void setBmp(moka.x.BITMAP_p bmp)
Sets the bitmap displayed by this Image.

Parameters:
bmp - The Image's BITMAP

setBmp

public void setBmp(java.lang.String file)
Sets the bitmap displayed by this Image. If the file string object risk to be used later, use a copy of the string object instead of the original, the string being finalized before the method returns.

Parameters:
file - The Image's PIC file name