Class marimba.gui.ImageWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.ImageWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ResourceWidget
                   |
                   +----marimba.gui.ImageWidget

public class ImageWidget
extends ResourceWidget
A widget that displays an image.
Version:
1.35, 12/13/96
Author:
Arthur van Hoff

Variable Index

 o img
The image displayed by this widget.
 o mode
An imageWidget can display its image centered, scaled or topleft.
 o modeOptions
The possible options for the mode.

Constructor Index

 o ImageWidget()
Constructor

Method Index

 o action(int, int)
The user has clicked in the image.
 o flush()
Flush the image from the cache.
 o getImageValue()
Get the current image resource string.
 o getMode()
Get the current mode.
 o getModeOptions()
Get the possible options for the mode.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getStringValue()
Get the current image resource string.
 o getValue()
Get the current image resource string.
 o handleEvent(Event)
Handle mouse events.
 o imageUpdate(Image, int, int, int, int, int)
Update the image.
 o init()
Start loading the image if preload is set.
 o paint(Graphics)
Paint the image.
 o paramString(StringBuffer)
Debugging.
 o setMode(int)
Set the current mode to center, scale or topleft.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setValue(Object)
Set the image, by specifying the source location or by giving it an image object directly, in which case the source location does not match the image anymore, unless you do that manually.
 o setValue(String)
Set the image.
 o start()
Start loading the image.

Variables

 o modeOptions
  public static Options modeOptions
The possible options for the mode.
See Also:
getModeOptions, mode
 o img
  public Image img
The image displayed by this widget.
See Also:
getImageValue, setValue
 o mode
  public int mode
An imageWidget can display its image centered, scaled or topleft.
See Also:
getMode, setMode, modeOptions

Constructors

 o ImageWidget
  public ImageWidget()
Constructor

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ResourceWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ResourceWidget
 o getModeOptions
  public Options getModeOptions()
Get the possible options for the mode.
See Also:
modeOptions
 o getMode
  public int getMode()
Get the current mode.
See Also:
mode
 o setMode
  public void setMode(int mode)
Set the current mode to center, scale or topleft.
See Also:
mode
 o getImageValue
  public Image getImageValue()
Get the current image resource string.
See Also:
img, getStringValue, getValue
 o getStringValue
  public String getStringValue()
Get the current image resource string.
See Also:
img
 o getValue
  public Object getValue()
Get the current image resource string.
Overrides:
getValue in class Widget
See Also:
img
 o setValue
  public void setValue(Object value)
Set the image, by specifying the source location or by giving it an image object directly, in which case the source location does not match the image anymore, unless you do that manually.
Overrides:
setValue in class Widget
See Also:
img
 o setValue
  public void setValue(String value)
Set the image.
See Also:
img
 o flush
  public void flush()
Flush the image from the cache.
 o init
  public void init()
Start loading the image if preload is set.
Overrides:
init in class Widget
 o start
  public void start()
Start loading the image.
Overrides:
start in class Widget
 o imageUpdate
  public boolean imageUpdate(Image newimg,
                             int flags,
                             int x,
                             int y,
                             int w,
                             int h)
Update the image.
Overrides:
imageUpdate in class Widget
 o paint
  public void paint(Graphics g)
Paint the image.
Overrides:
paint in class Widget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle mouse events.
Overrides:
handleEvent in class Widget
 o action
  public void action(int x,
                     int y)
The user has clicked in the image.
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class ResourceWidget

All Packages  Class Hierarchy  This Package  Previous  Next  Index