All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.elegantchaos.beans.quicktime.ECImage

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----quicktime.app.display.QTCanvas
                           |
                           +----com.elegantchaos.beans.quicktime.ECImage

public class ECImage
extends quicktime.app.display.QTCanvas
implements java.io.Serializable, com.elegantchaos.beans.asset.AssetListener
The ECImage bean allows you to display Quicktime images, and provides access to most of the image's common display options.

Version:
1.0
Author:
Sam Deane

Constructor Index

 o ECImage()

Method Index

 o assetChanged(AssetEvent)
sent to the image to indicate that the image asset has been changed
 o assetLoading(AssetEvent)
sent to the image to indicate that asset loading has started/finished/failed
 o assetRegistered(AssetEvent)
sent to the image when it has registered with an asset
 o assetUnloading(AssetEvent)
sent to the image to indicate that the asset has been unloaded, or an unload has been requested
 o assetUnregistered(AssetEvent)
sent to the image to indicate that the asset has been unregistered
 o getAsset()
returns location of current asset
 o getOrigin()
returns origin (offset of image in the bean)
 o isResize()
should component resize when it's image is changed?
 o isScale()
returns whether the image will be scaled (as opposed to clipped) when the bean is a different size
 o setAsset(String)
creates a new temporary (internal) asset, and uses it to specify the image to use, allowing you to use this bean without a ImageAsset bean
 o setOrigin(Point)
set origin (offset of image in the bean - you can use this property to scroll the image so that some of the image is cropped
 o setResize(boolean)
 o setScale(boolean)
set whether the image will be scaled (as opposed to clipped) when the bean is a different size

Constructors

 o ECImage
 public ECImage()

Methods

 o getAsset
 public java.lang.String getAsset()
returns location of current asset

 o setAsset
 public void setAsset(java.lang.String url)
creates a new temporary (internal) asset, and uses it to specify the image to use, allowing you to use this bean without a ImageAsset bean

See Also:
ImageAsset
 o getOrigin
 public java.awt.Point getOrigin()
returns origin (offset of image in the bean)

 o setOrigin
 public void setOrigin(java.awt.Point p)
set origin (offset of image in the bean - you can use this property to scroll the image so that some of the image is cropped

 o isResize
 public boolean isResize()
should component resize when it's image is changed?

 o setResize
 public void setResize(boolean b)
 o isScale
 public boolean isScale()
returns whether the image will be scaled (as opposed to clipped) when the bean is a different size

 o setScale
 public void setScale(boolean b)
set whether the image will be scaled (as opposed to clipped) when the bean is a different size

 o assetRegistered
 public void assetRegistered(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the image when it has registered with an asset

 o assetLoading
 public void assetLoading(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the image to indicate that asset loading has started/finished/failed

 o assetUnregistered
 public void assetUnregistered(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the image to indicate that the asset has been unregistered

 o assetUnloading
 public void assetUnloading(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the image to indicate that the asset has been unloaded, or an unload has been requested

 o assetChanged
 public void assetChanged(com.elegantchaos.beans.asset.AssetEvent ae)
sent to the image to indicate that the image asset has been changed


All Packages  Class Hierarchy  This Package  Previous  Next  Index