Class NativeDeviceCapabilities
- java.lang.Object
-
- org.jopensignature.sign.SigningDeviceCapabilities
-
- com.stepover.opensignatureapi.device.SoSigningDeviceCapabilities
-
- com.stepover.opensignatureapi.device.nat.NativeDeviceCapabilities
-
public class NativeDeviceCapabilities extends SoSigningDeviceCapabilities
the signing device capabilities for native devices
-
-
Field Summary
-
Fields inherited from class com.stepover.opensignatureapi.device.SoSigningDeviceCapabilities
displayPixelSize, displaySize, log, RECTANGLE_RESOLUTION, sensorSize, signatureImageSize, signingDevice
-
-
Constructor Summary
Constructors Constructor Description NativeDeviceCapabilities(NativeDevice device)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Dimension
getDisplayPixelSize()
The number of pixels that can effectivly be displayed.Dimension
getDisplaySize()
The physical display size.boolean
isColorSupported()
Determines whether theSigningDevice
supports colors other than black and white.boolean
isMessageSupported(java.lang.Class<? extends BaseMessage> messageClass)
-
Methods inherited from class com.stepover.opensignatureapi.device.SoSigningDeviceCapabilities
getSignatureImageSize
-
-
-
-
Constructor Detail
-
NativeDeviceCapabilities
public NativeDeviceCapabilities(NativeDevice device)
-
-
Method Detail
-
isColorSupported
public boolean isColorSupported()
Description copied from class:SigningDeviceCapabilities
Determines whether theSigningDevice
supports colors other than black and white. This includes even grayscale colors.- Overrides:
isColorSupported
in classSoSigningDeviceCapabilities
- Returns:
false
if only black and white are supported, ortrue
if any kind of non black and white colors are supported.
-
getDisplaySize
public Dimension getDisplaySize()
Description copied from class:SigningDeviceCapabilities
The physical display size.- Overrides:
getDisplaySize
in classSoSigningDeviceCapabilities
- Returns:
-
getDisplayPixelSize
public java.awt.Dimension getDisplayPixelSize()
Description copied from class:SigningDeviceCapabilities
The number of pixels that can effectivly be displayed.- Overrides:
getDisplayPixelSize
in classSoSigningDeviceCapabilities
- Returns:
-
isMessageSupported
public boolean isMessageSupported(java.lang.Class<? extends BaseMessage> messageClass)
- Overrides:
isMessageSupported
in classSoSigningDeviceCapabilities
- Parameters:
messageClass
- themessage
class to be checked.- Returns:
true
if themessage
is supported,false
otherwise
-
-