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
-
img
- The image displayed by this widget.
-
mode
- An imageWidget can display its image centered, scaled or topleft.
-
modeOptions
- The possible options for the mode.
-
ImageWidget()
- Constructor
-
action(int, int)
- The user has clicked in the image.
-
flush()
- Flush the image from the cache.
-
getImageValue()
- Get the current image resource string.
-
getMode()
- Get the current mode.
-
getModeOptions()
- Get the possible options for the mode.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getStringValue()
- Get the current image resource string.
-
getValue()
- Get the current image resource string.
-
handleEvent(Event)
- Handle mouse events.
-
imageUpdate(Image, int, int, int, int, int)
- Update the image.
-
init()
- Start loading the image if preload is set.
-
paint(Graphics)
- Paint the image.
-
paramString(StringBuffer)
- Debugging.
-
setMode(int)
- Set the current mode to center, scale or topleft.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
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.
-
setValue(String)
- Set the image.
-
start()
- Start loading the image.
modeOptions
public static Options modeOptions
- The possible options for the mode.
- See Also:
- getModeOptions, mode
img
public Image img
- The image displayed by this widget.
- See Also:
- getImageValue, setValue
mode
public int mode
- An imageWidget can display its image centered, scaled or topleft.
- See Also:
- getMode, setMode, modeOptions
ImageWidget
public ImageWidget()
- Constructor
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class ResourceWidget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class ResourceWidget
getModeOptions
public Options getModeOptions()
- Get the possible options for the mode.
- See Also:
- modeOptions
getMode
public int getMode()
- Get the current mode.
- See Also:
- mode
setMode
public void setMode(int mode)
- Set the current mode to center, scale or topleft.
- See Also:
- mode
getImageValue
public Image getImageValue()
- Get the current image resource string.
- See Also:
- img, getStringValue, getValue
getStringValue
public String getStringValue()
- Get the current image resource string.
- See Also:
- img
getValue
public Object getValue()
- Get the current image resource string.
- Overrides:
- getValue in class Widget
- See Also:
- img
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
setValue
public void setValue(String value)
- Set the image.
- See Also:
- img
flush
public void flush()
- Flush the image from the cache.
init
public void init()
- Start loading the image if preload is set.
- Overrides:
- init in class Widget
start
public void start()
- Start loading the image.
- Overrides:
- start in class Widget
imageUpdate
public boolean imageUpdate(Image newimg,
int flags,
int x,
int y,
int w,
int h)
- Update the image.
- Overrides:
- imageUpdate in class Widget
paint
public void paint(Graphics g)
- Paint the image.
- Overrides:
- paint in class Widget
handleEvent
public boolean handleEvent(Event evt)
- Handle mouse events.
- Overrides:
- handleEvent in class Widget
action
public void action(int x,
int y)
- The user has clicked in the image.
paramString
public void paramString(StringBuffer buf)
- Debugging.
- Overrides:
- paramString in class ResourceWidget
All Packages Class Hierarchy This Package Previous Next Index