Class BitmapPlane
- java.lang.Object
-
- com.avaya.clientservices.media.gui.Plane
-
- com.avaya.clientservices.media.gui.BitmapPlane
-
- All Implemented Interfaces:
Destroyable,Positionable,Renderable,Touchable
public class BitmapPlane extends Plane implements Destroyable
-
-
Constructor Summary
Constructors Constructor Description BitmapPlane()ConstructorBitmapPlane(android.content.Context context)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()BitmapLayergetBitmapLayer()Gets the underlyingBitmapLayer.voidonDrawFrame(double time)voidonSurfaceChanged(int width, int height)voidonSurfaceCreated()booleanonTouchEvent(double time, android.view.MotionEvent event, int surfaceHeight)voidsetBitmap(android.graphics.Bitmap bitmap)Sets the bitmap to be rendered.voidsetBitmapPlaneListener(BitmapPlaneListener bitmapPlaneListener)Sets theBitmapPlaneListener.voidsetGravity(int gravity)Describes how the bitmap is positioned.-
Methods inherited from class com.avaya.clientservices.media.gui.Plane
containsPoint, setBounds, setPosition, setRenderer, setVisibility, time
-
-
-
-
Method Detail
-
getBitmapLayer
public BitmapLayer getBitmapLayer()
Gets the underlyingBitmapLayer.- Returns:
- The bitmap layer.
-
setBitmapPlaneListener
public void setBitmapPlaneListener(BitmapPlaneListener bitmapPlaneListener)
Sets theBitmapPlaneListener.- Parameters:
bitmapPlaneListener- the object that will listen for touch events.
-
setBitmap
public void setBitmap(android.graphics.Bitmap bitmap)
Sets the bitmap to be rendered.- Parameters:
bitmap- The bitmap to be rendered.
-
setGravity
public void setGravity(int gravity)
Describes how the bitmap is positioned. Defaults toGravity.START | Gravity.TOP.- Parameters:
gravity- SeeGravity
-
destroy
public void destroy()
- Specified by:
destroyin interfaceDestroyable
-
onSurfaceCreated
public void onSurfaceCreated()
- Specified by:
onSurfaceCreatedin interfaceRenderable
-
onSurfaceChanged
public void onSurfaceChanged(int width, int height)- Specified by:
onSurfaceChangedin interfaceRenderable
-
onDrawFrame
public void onDrawFrame(double time)
- Specified by:
onDrawFramein interfaceRenderable
-
onTouchEvent
public boolean onTouchEvent(double time, android.view.MotionEvent event, int surfaceHeight)- Specified by:
onTouchEventin interfaceTouchable
-
-