Interface QuPathPenManager.PenInputManager

Enclosing class:
QuPathPenManager

public static interface QuPathPenManager.PenInputManager
Interface defining minimal behavior for a pen input device. This can be used to support pressure sensitivity for some commands (e.g. brush).
Author:
Pete Bankhead
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns a pressure value, between 0 and 1.
    boolean
    Query if there is a pen currently being used as an eraser.
  • Method Details

    • isEraser

      boolean isEraser()
      Query if there is a pen currently being used as an eraser.
      Returns:
      true if there is an active pen currently being used as an eraser, false otherwise.
    • getPressure

      double getPressure()
      Returns a pressure value, between 0 and 1.
      Returns:
      1 if there is no pen or a pen being used with maximum pressure, otherwise a pressure value for the current pen.