: Download: FAQ: Licensing: Support: Contact ME
LwVCL Home
Introduction
Overview
Screen Shots
On-line Demos
Requirements
Further Plans
Docs
Tutorial
How-to (PDF)
API
FAQ
Download
Latest version

Home > J2SE > API

Overview  Package   Class  Tree  Deprecated  Index  Help 

org.zaval.lw
Class LwImage

java.lang.Object
  |
  +--org.zaval.lw.LwCanvas
        |
        +--org.zaval.lw.LwImage
All Implemented Interfaces:
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, bottom, height, isValidValue, left, parent, psHeight, psWidth, right, skins, temporary, top, width, x, y
 
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 getImgRender()
          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
calcInsets, calcPreferredSize, canHaveFocus, customize, cvp, getBackground, getBottom, getBounds, getHeight, getInsets, getLeft, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getPSImpl, getRight, getSize, getTop, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isValid, isVisible, paint, recalc, repaint, repaint, repaint, requestFocus, setBackground, setEnabled, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, update, validate, viewManChanged, vrp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 constructor.
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 LwVCL resources base (see the LwToolkit.getResourcesBase method) directory. LwView.ORIGINAL view type is set by the constructor.
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.

getImgRender

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


: up