All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.ImageGadget
java.lang.Object
|
+----dtai.gwt.Gadget
|
+----dtai.gwt.DisplayGadget
|
+----dtai.gwt.LabelGadget
|
+----dtai.gwt.ImageGadget
- public class ImageGadget
- extends LabelGadget
ImageGadget is a subclass of LabelGadget. If the image is null, then the label
is displayed instead. The label is initialized to the
empty string (""), but you might want to set it to something like "No Image".
-
ImageGadget()
- constructs a Button with no label.
-
ImageGadget(Image)
- Constructs an ImageGadget with the specified image.
-
getBlackToForeground()
- getBlackToForeground
-
getDefaultWaitForImage()
-
-
getImage()
- Gets the label of the button.
-
getWaitForImage()
- getWaitForImage
-
imageUpdate(Image, int, int, int, int, int)
- Repaints the component when the image has changed.
-
isPossiblyDisabled()
- isPossiblyDisabled
-
isStretched()
- isStretched
-
isTiled()
- isTiled
-
paintDisabledForeground(GadgetGraphics, int, int, int, int)
- paintDisabledForeground
-
paintForeground(GadgetGraphics, int, int, int, int)
- paints the foreground
-
resetForegroundSize(GadgetGraphics)
- resets the size of the foreground
-
setBlackToForeground(boolean)
- Set this to true if you want the black pixels to be converted to the
current foreground color.
-
setDefaultWaitForImage(boolean)
-
-
setDisabledImage(Image)
- setDisabledImage
-
setImage(Image)
- sets the button with the specified image.
-
setPossiblyDisabled(boolean)
- setPossiblyDisabled
-
setStretched(boolean)
- setStretched
-
setTiled(boolean)
- setTiled
-
setWaitForImage(boolean)
- setWaitForImage
ImageGadget
public ImageGadget()
- constructs a Button with no label.
ImageGadget
public ImageGadget(Image image)
- Constructs an ImageGadget with the specified image.
- Parameters:
- image - - the image to display
setDefaultWaitForImage
public static void setDefaultWaitForImage(boolean defaultWaitForImage)
getDefaultWaitForImage
public static boolean getDefaultWaitForImage()
getImage
public Image getImage()
- Gets the label of the button.
- Returns:
- Image
- See Also:
- setLabel
isPossiblyDisabled
public boolean isPossiblyDisabled()
- isPossiblyDisabled
- Returns:
- boolean
- Overrides:
- isPossiblyDisabled in class LabelGadget
- See Also:
- setWrapLength
setPossiblyDisabled
public void setPossiblyDisabled(boolean possiblyDisabled)
- setPossiblyDisabled
- Parameters:
- possiblyDisabled - - TBD
- Overrides:
- setPossiblyDisabled in class LabelGadget
getWaitForImage
public boolean getWaitForImage()
- getWaitForImage
- Returns:
- boolean
- See Also:
- setWrapLength
setWaitForImage
public void setWaitForImage(boolean waitForImage)
- setWaitForImage
- Parameters:
- waitForImage - - TBD
setBlackToForeground
public void setBlackToForeground(boolean blackToForeground)
- Set this to true if you want the black pixels to be converted to the
current foreground color.
- Parameters:
- blackToForeground - - TBD
getBlackToForeground
public boolean getBlackToForeground()
- getBlackToForeground
- Returns:
- boolean
setTiled
public void setTiled(boolean tiled)
- setTiled
- Parameters:
- tiled - - TBD
isTiled
public boolean isTiled()
- isTiled
- Returns:
- boolean
setStretched
public void setStretched(boolean stretched)
- setStretched
- Parameters:
- stretched - - TBD
isStretched
public boolean isStretched()
- isStretched
- Returns:
- boolean
setImage
public void setImage(Image image)
- sets the button with the specified image.
- Parameters:
- image - - the image to set the button with
- See Also:
- getImage
setDisabledImage
public void setDisabledImage(Image disabledImage)
- setDisabledImage
- Parameters:
- disabledImage - - TBD
paintForeground
protected void paintForeground(GadgetGraphics g,
int x,
int y,
int width,
int height)
- paints the foreground
- Parameters:
- g - - TBD
- x - - TBD
- y - - TBD
- width - - TBD
- height - - TBD
- Overrides:
- paintForeground in class LabelGadget
paintDisabledForeground
protected void paintDisabledForeground(GadgetGraphics g,
int x,
int y,
int width,
int height)
- paintDisabledForeground
- Parameters:
- g - - TBD
- x - - TBD
- y - - TBD
- width - - TBD
- height - - TBD
- Overrides:
- paintDisabledForeground in class LabelGadget
resetForegroundSize
protected void resetForegroundSize(GadgetGraphics g)
- resets the size of the foreground
- Parameters:
- g - - TBD
- Overrides:
- resetForegroundSize in class LabelGadget
imageUpdate
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int w,
int h)
- Repaints the component when the image has changed.
- Returns:
- true if image has changed; false otherwise.
- Overrides:
- imageUpdate in class Gadget
All Packages Class Hierarchy This Package Previous Next Index