Class sunsoft.jws.visual.rt.awt.ImageLabel
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.awt.ImageLabel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----sunsoft.jws.visual.rt.awt.ImageLabel
- public class ImageLabel
- extends Canvas
An image label. It greys itself out when disabled.
-
defaultHeight
-
-
defaultWidth
-
-
disImg
- The image to use when the component is disabled.
-
imgHeight
-
-
imgWidth
-
-
origImg
- The original image set in the constructor or in setImage().
-
padWidth
-
-
upImg
- The massaged image (after the win95 work-around.)
-
ImageLabel(Image)
-
-
ImageLabel(Image, int, int)
-
-
addNotify()
-
-
disable()
-
-
enable()
-
-
getDefaultHeight()
-
-
getDefaultWidth()
-
-
getImage()
-
-
getPadWidth()
-
-
imageUpdate(Image, int, int, int, int, int)
-
-
minimumSize()
-
-
paint(Graphics)
- Draw the image in the center of the available area.
-
preferredSize()
-
-
setBackground(Color)
- Overrides Component setBackground in order to redo the images,
because of the transparent gif workaround and also because the
disabled image relies on the background color.
-
setDefaultHeight(int)
-
-
setDefaultWidth(int)
-
-
setImage(Image)
-
-
setPadWidth(int)
-
-
update(Graphics)
- By overriding update we insure that this component won't be
completely cleared with the background color each time it's
updated (while loading.) We'd like less flickering than that.
-
updateSize(int, int)
- Figures out if this component needs to be resized.
-
updateWindow(Component)
-
origImg
protected Image origImg
- The original image set in the constructor or in setImage().
upImg
protected Image upImg
- The massaged image (after the win95 work-around.)
disImg
protected Image disImg
- The image to use when the component is disabled. This is the upImg
stippled with the background color.
padWidth
protected int padWidth
defaultWidth
protected int defaultWidth
defaultHeight
protected int defaultHeight
imgWidth
protected int imgWidth
imgHeight
protected int imgHeight
ImageLabel
public ImageLabel(Image img)
ImageLabel
public ImageLabel(Image img,
int w,
int h)
setPadWidth
public void setPadWidth(int w)
getPadWidth
public int getPadWidth()
setDefaultWidth
public void setDefaultWidth(int w)
getDefaultWidth
public int getDefaultWidth()
setDefaultHeight
public void setDefaultHeight(int h)
getDefaultHeight
public int getDefaultHeight()
setImage
public void setImage(Image img)
getImage
public Image getImage()
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
setBackground
public void setBackground(Color bg)
- Overrides Component setBackground in order to redo the images,
because of the transparent gif workaround and also because the
disabled image relies on the background color.
- Overrides:
- setBackground in class Component
updateWindow
protected void updateWindow(Component c)
updateSize
protected void updateSize(int w,
int h)
- Figures out if this component needs to be resized.
update
public void update(Graphics g)
- By overriding update we insure that this component won't be
completely cleared with the background color each time it's
updated (while loading.) We'd like less flickering than that.
- Overrides:
- update in class Component
paint
public void paint(Graphics g)
- Draw the image in the center of the available area. No background
clearing is done here (that job belongs to update().)
- Overrides:
- paint in class Canvas
imageUpdate
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int w,
int h)
- Overrides:
- imageUpdate in class Component
enable
public void enable()
- Overrides:
- enable in class Component
disable
public void disable()
- Overrides:
- disable in class Component
addNotify
public void addNotify()
- Overrides:
- addNotify in class Canvas
All Packages Class Hierarchy This Package Previous Next Index