All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.ui.component.ImageLabel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----vlc.ui.component.ImageLabel

public class ImageLabel
extends Canvas

Variable Index

 o defaultHeight
 o defaultWidth
 o filename
 o img
 o imgHeight
 o imgWidth
 o padWidth
 o url

Constructor Index

 o ImageLabel(String)
Constructs an image label using the image passed to it.

Method Index

 o action()
 o addNotify()
 o getHeight()
 o getImage()
 o getPadWidth()
 o getSelected()
 o getWidth()
 o imageUpdate(Image, int, int, int, int, int)
 o minimumSize()
 o mouseDown(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
 o preferredSize()
 o resetSelected()
 o reshape(int, int, int, int)
 o setDisabled()
 o setEnabled()
 o setPadWidth(int)
 o setSelected()
 o setUpImages(String)
 o 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.
 o updateSize(int, int)
Figures out if this component needs to be resized.
 o updateWindow(Component)

Variables

 o img
 protected Image img
 o url
 protected URL url
 o filename
 protected String filename
 o imgHeight
 protected int imgHeight
 o imgWidth
 protected int imgWidth
 o defaultWidth
 protected int defaultWidth
 o defaultHeight
 protected int defaultHeight
 o padWidth
 protected int padWidth

Constructors

 o ImageLabel
 public ImageLabel(String fname)
Constructs an image label using the image passed to it. Image path must be direct pathname i.e c:\\.... If no position is given then the default is 0,0.

Methods

 o reshape
 public synchronized void reshape(int x,
                                  int y,
                                  int w,
                                  int h)
Overrides:
reshape in class Component
 o setEnabled
 public void setEnabled()
 o setDisabled
 public void setDisabled()
 o setSelected
 public void setSelected()
 o resetSelected
 public void resetSelected()
 o getSelected
 public boolean getSelected()
 o setPadWidth
 public void setPadWidth(int w)
 o getPadWidth
 public int getPadWidth()
 o setUpImages
 protected void setUpImages(String fname)
 o getImage
 public Image getImage()
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Component
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o getWidth
 public int getWidth()
 o getHeight
 public int getHeight()
 o updateWindow
 protected void updateWindow(Component c)
 o updateSize
 protected void updateSize(int w,
                           int h)
Figures out if this component needs to be resized.

 o 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
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas
 o imageUpdate
 public boolean imageUpdate(Image img,
                            int flags,
                            int x,
                            int y,
                            int w,
                            int h)
Overrides:
imageUpdate in class Component
 o addNotify
 public synchronized void addNotify()
Overrides:
addNotify in class Canvas
 o mouseDown
 public boolean mouseDown(Event e,
                          int x,
                          int y)
Overrides:
mouseDown in class Component
 o mouseUp
 public boolean mouseUp(Event evt,
                        int x,
                        int y)
Overrides:
mouseUp in class Component
 o action
 public void action()

All Packages  Class Hierarchy  This Package  Previous  Next  Index