Class GraphicOverlay

    • Field Detail

      • trackPaint

        public Paint trackPaint
    • Method Detail

      • disableTouching

        public void disableTouching​(boolean disableTouch)
      • setTrackingMethod

        public void setTrackingMethod​(Tracking type)
      • clear

        public void clear()
        Removes all graphics from the overlay.
      • setCameraInfo

        public void setCameraInfo​(int previewWidth,
                                  int previewHeight,
                                  boolean frontFacing)
        Sets the camera attributes for size and facing direction, which informs how to transform image coordinates later.
      • setTimerEnabled

        public void setTimerEnabled​(boolean timerEnabled)
      • reset

        public void reset()
      • onDraw

        protected void onDraw​(Canvas canvas)
        Draws the overlay with its associated graphic objects.
        Overrides:
        onDraw in class View
      • startTrackingFromCenter

        public void startTrackingFromCenter()
        This function is used to calculate object area, when remote button is clicked.