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 void
destroy()
BitmapLayer
getBitmapLayer()
Gets the underlyingBitmapLayer
.void
onDrawFrame(double time)
void
onSurfaceChanged(int width, int height)
void
onSurfaceCreated()
boolean
onTouchEvent(double time, android.view.MotionEvent event, int surfaceHeight)
void
setBitmap(android.graphics.Bitmap bitmap)
Sets the bitmap to be rendered.void
setBitmapPlaneListener(BitmapPlaneListener bitmapPlaneListener)
Sets theBitmapPlaneListener
.void
setGravity(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:
destroy
in interfaceDestroyable
-
onSurfaceCreated
public void onSurfaceCreated()
- Specified by:
onSurfaceCreated
in interfaceRenderable
-
onSurfaceChanged
public void onSurfaceChanged(int width, int height)
- Specified by:
onSurfaceChanged
in interfaceRenderable
-
onDrawFrame
public void onDrawFrame(double time)
- Specified by:
onDrawFrame
in interfaceRenderable
-
onTouchEvent
public boolean onTouchEvent(double time, android.view.MotionEvent event, int surfaceHeight)
- Specified by:
onTouchEvent
in interfaceTouchable
-
-