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
-
ECImage()
-
-
assetChanged(AssetEvent)
- sent to the image to indicate that the image asset has been changed
-
assetLoading(AssetEvent)
- sent to the image to indicate that asset loading has started/finished/failed
-
assetRegistered(AssetEvent)
- sent to the image when it has registered with an asset
-
assetUnloading(AssetEvent)
- sent to the image to indicate that the asset has been unloaded, or an unload has been requested
-
assetUnregistered(AssetEvent)
- sent to the image to indicate that the asset has been unregistered
-
getAsset()
- returns location of current asset
-
getOrigin()
- returns origin (offset of image in the bean)
-
isResize()
- should component resize when it's image is changed?
-
isScale()
- returns whether the image will be scaled (as opposed to clipped) when the bean is a different size
-
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
-
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
-
setResize(boolean)
-
-
setScale(boolean)
- set whether the image will be scaled (as opposed to clipped) when the bean is a different size
ECImage
public ECImage()
getAsset
public java.lang.String getAsset()
- returns location of current asset
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
getOrigin
public java.awt.Point getOrigin()
- returns origin (offset of image in the bean)
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
isResize
public boolean isResize()
- should component resize when it's image is changed?
setResize
public void setResize(boolean b)
isScale
public boolean isScale()
- returns whether the image will be scaled (as opposed to clipped) when the bean is a different size
setScale
public void setScale(boolean b)
- set whether the image will be scaled (as opposed to clipped) when the bean is a different size
assetRegistered
public void assetRegistered(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the image when it has registered with an asset
assetLoading
public void assetLoading(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the image to indicate that asset loading has started/finished/failed
assetUnregistered
public void assetUnregistered(com.elegantchaos.beans.asset.AssetEvent ae)
- sent to the image to indicate that the asset has been unregistered
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
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