org.zaval.lw
Class LwImage

java.lang.Object
  |
  +--org.zaval.util.ValidationObject
        |
        +--org.zaval.lw.LwCanvas
              |
              +--org.zaval.lw.LwImage
All Implemented Interfaces:
Drawable, Layoutable, LwComponent, Validationable

public class LwImage
extends LwCanvas

This light weight component is used to show an image. To show the image the component uses LwImgRender as the face view.


Fields inherited from class org.zaval.lw.LwCanvas
bits, height, insets, parent, psHeight, psWidth, skins, width, x, y
 
Fields inherited from class org.zaval.util.ValidationObject
isValidFlag
 
Constructor Summary
LwImage(java.awt.Image img)
          Constructs the component with the specified image object.
LwImage(LwImgRender r)
          Constructs the component with the specified image render.
LwImage(java.lang.String name)
          Constructs the component with the specified image name.
 
Method Summary
 java.awt.Image getImage()
          Gets the image that is shown with the component.
 LwImgRender getImageRender()
          Gets the image render that is used as the face view for the component with the view manager.
 
Methods inherited from class org.zaval.lw.LwCanvas
calcPreferredSize, canHaveFocus, getBackground, getBounds, getHeight, getInsets, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getSize, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isVisible, paint, recalc, repaint, repaint, requestFocus, setBackground, setEnabled, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, toString, update, validate, viewManChanged, vrp
 
Methods inherited from class org.zaval.util.ValidationObject
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zaval.util.Validationable
isValid
 

Constructor Detail

LwImage

public LwImage(java.awt.Image img)
Constructs the component with the specified image object. LwView.STRETCH view type is set by the contructor.
Parameters:
img - the specified image object.

LwImage

public LwImage(java.lang.String name)
Constructs the component with the specified image name. The name is used to read the image as resource. It means that the name should point to an image file relatively "org/zaval/lw/rs/" directory. LwView.ORIGINAL view type is set by the contructor.
Parameters:
name - the specified image name.

LwImage

public LwImage(LwImgRender r)
Constructs the component with the specified image render. The render is used as the face view of the component.
Parameters:
r - the specified image render.
Method Detail

getImage

public java.awt.Image getImage()
Gets the image that is shown with the component.
Returns:
an image that is shown.

getImageRender

public LwImgRender getImageRender()
Gets the image render that is used as the face view for the component with the view manager.
Returns:
an image render.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org