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
-
defaultHeight
-
-
defaultWidth
-
-
filename
-
-
img
-
-
imgHeight
-
-
imgWidth
-
-
padWidth
-
-
url
-
-
ImageLabel(String)
- Constructs an image label using the image passed to it.
-
action()
-
-
addNotify()
-
-
getHeight()
-
-
getImage()
-
-
getPadWidth()
-
-
getSelected()
-
-
getWidth()
-
-
imageUpdate(Image, int, int, int, int, int)
-
-
minimumSize()
-
-
mouseDown(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
preferredSize()
-
-
resetSelected()
-
-
reshape(int, int, int, int)
-
-
setDisabled()
-
-
setEnabled()
-
-
setPadWidth(int)
-
-
setSelected()
-
-
setUpImages(String)
-
-
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)
-
img
protected Image img
url
protected URL url
filename
protected String filename
imgHeight
protected int imgHeight
imgWidth
protected int imgWidth
defaultWidth
protected int defaultWidth
defaultHeight
protected int defaultHeight
padWidth
protected int padWidth
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.
reshape
public synchronized void reshape(int x,
int y,
int w,
int h)
- Overrides:
- reshape in class Component
setEnabled
public void setEnabled()
setDisabled
public void setDisabled()
setSelected
public void setSelected()
resetSelected
public void resetSelected()
getSelected
public boolean getSelected()
setPadWidth
public void setPadWidth(int w)
getPadWidth
public int getPadWidth()
setUpImages
protected void setUpImages(String fname)
getImage
public Image getImage()
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Component
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
getWidth
public int getWidth()
getHeight
public int getHeight()
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)
- 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
addNotify
public synchronized void addNotify()
- Overrides:
- addNotify in class Canvas
mouseDown
public boolean mouseDown(Event e,
int x,
int y)
- Overrides:
- mouseDown in class Component
mouseUp
public boolean mouseUp(Event evt,
int x,
int y)
- Overrides:
- mouseUp in class Component
action
public void action()
All Packages Class Hierarchy This Package Previous Next Index