The de.signotec.stpad.control package contains visual control elements based on Swing, AWT or SWT for displaying the captured signatures in real time.
All control elements can be operated in two modes. One mode is to display a SignData structure (a signature), and another is to visualise the signature capture.
SignData mode
The SignData mode is active if a constructor is used without SigPadApi parameters.
-
The control element is not connected to the pad and cannot be used to display the signature capture.
-
It is not possible to interactively control hotspots or scroll with the mouse.
-
The control element can be of any size.
-
The signature to be displayed is defined using either
setSignatureData()oranimateSignature().
Signature capture mode
Signature capture mode is active if a constructor is used with SigPadApi parameters.
-
The control element is connected to the pad and visualises the signature capture on the display. To this end, the control element needs to be connected to the
SigPadApiclass viaSigPadListener. (SigPadApi.addSigPadListener(ctrl)) -
The control element has a fixed size that cannot be changed.
-
The
setSignatureData()andanimateSignature()methods cannot be used. -
It is possible to interactively control hotspots or scroll with the mouse following activation with
setMouseEnabled(true).