Class BitmapPlane

    • Constructor Detail

      • BitmapPlane

        public BitmapPlane()
        Constructor
      • BitmapPlane

        public BitmapPlane​(android.content.Context context)
        Constructor
        Parameters:
        context - parent context
    • Method Detail

      • getBitmapLayer

        public BitmapLayer getBitmapLayer()
        Gets the underlying BitmapLayer.
        Returns:
        The bitmap layer.
      • setBitmapPlaneListener

        public void setBitmapPlaneListener​(BitmapPlaneListener bitmapPlaneListener)
        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 to Gravity.START | Gravity.TOP.
        Parameters:
        gravity - See Gravity
      • onSurfaceChanged

        public void onSurfaceChanged​(int width,
                                     int height)
        Specified by:
        onSurfaceChanged in interface Renderable
      • onDrawFrame

        public void onDrawFrame​(double time)
        Specified by:
        onDrawFrame in interface Renderable
      • onTouchEvent

        public boolean onTouchEvent​(double time,
                                    android.view.MotionEvent event,
                                    int surfaceHeight)
        Specified by:
        onTouchEvent in interface Touchable