public class SignatureWidget extends ControlEntity<SignatureConfig> implements Signature
BaseEntity.CharsPixels
ALIGN_COLON, ALIGN_LEFT, ALIGN_RIGHT
group
config, deleted, frame, internalScreenValueUsage, realizeOnAttributeAccess
name, nextSibling, prevSibling
instProc
Constructor and Description |
---|
SignatureWidget()
The default constructor
|
SignatureWidget(boolean dynamic)
The parameterized constructor.
|
SignatureWidget(boolean dynamic,
SignatureConfig ctrl)
The parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearSignatureWindow(integer inside)
Erases data either inside or outside of sig window based on value of inside parameter.
|
void |
clearTablet()
Clears the signature object of ink.
|
memptr |
getSignatureImage(character imgFormat,
character pixelFormat)
Get the signature image.
|
void |
keypadAddHotSpot(integer keyCode,
integer coordToUse,
integer xPos,
integer yPos,
integer xSize,
integer ySize)
Defines the location of a tablet hot spot area which is used to detect user pen taps.
|
void |
keypadClearHotSpotList()
Clears the controls internal list of HotSpots created using KeyPadAddHotSpot command.
|
integer |
keypadQueryHotSpot(integer keyCode)
Queries whether the specified HotSpot has been tapped by the user.
|
void |
lcdRefresh(integer mode,
integer xPos,
integer yPos,
integer xSize,
integer ySize)
Sends tablet a refresh command with 4 possible modes.
|
void |
lcdSetWindow(integer xPos,
integer yPos,
integer xSize,
integer ySize)
Sets a signature window that restricts the ink of the signature device to said window on the LCD itself.
|
void |
lcdWriteString(integer dest,
integer mode,
integer xPos,
integer yPos,
character font,
character text)
Used to write the image data to the LCD Display.
|
integer |
numberOfTabletPoints()
Returns the total number of points in the current signature, can be used to detect if a signature is
present or not.
|
void |
setImageFileFormat(integer fileFormat)
Sets the current format to use for Image files.
|
void |
setImagePenWidth(integer imagePenWidth)
Sets the pen ink width.
|
void |
setImageXSize(integer imageXSize)
Set the number of X pixels in the image provided by getSignatureImage.
|
void |
setImageYSize(integer imageYSize)
Set the number of Y pixels in the image provided by getSignatureImage.
|
void |
setJustifyMode(integer mode)
Sets the current justification mode- how the signature is sized and positioned in the signature box.
|
void |
setJustifyX(integer justifyX)
Sets the buffer size in Logical Tablet Coordinates of "dead space" of left and right edge of
the signature device if the justification mode is 1-5.
|
void |
setJustifyY(integer justifyY)
Sets the buffer size in Logical Tablet Coordinates of "dead space" of top and bottom edge of
the signature device if the justification mode is 1-5.
|
void |
setLCDCaptureMode(integer mode)
Sets the current LCD Capture Mode for the tablet.
|
void |
setSignatureWindow(integer coords,
integer newXPos,
integer newYPos,
integer newXSize,
integer newYSize)
This function sets a window in the logical tablet space that restricts the operation of some
functions to the specified window.
|
void |
setTabletState(integer state)
Enables tablet to access the COM or USB port to capture signatures or not.
|
void |
setTranslateBitmapEnable(logical enable)
Enable the bitmap translation.
|
character |
tabletModelNumber()
Returns the model number as string value.
|
changeFontWorker, delete, firstChild, getColon, getDataClass, getDataType, getIndex, getNextTabItem, getPreviousTabItem, getPrevSibling, getSideLabelHandleWorker, getSizeAttrs, getTitle, hasSideLabelHandle, isAutoResize, isDropTarget, isModified, lastChild, processSideLabel, resetAutoResize, setAttrSpace, setAutoResize, setAutoResize, setColumnLabel, setColumnLabel, setDataType, setDataType, setDropTarget, setForceLabel, setForceLabel, setHeightCharsWorker, setHeightPixelsWorker, setIndex, setIndex, setModified, setModified, setNoAttrSpace, setNoLabels, setSideLabelHandleWorker, setTitle, setTitle, setTo, setTo, setWidthCharsWorker, setWidthPixelsWorker, validateFields
_getHeightChars, _getHeightPixels, _getWidthChars, _getWidthPixels, canSetPixelPositionInChui, emit4084Warning, emitUnableToAssignUnknownAttributeWarning, getBgColor, getBgColorRgb, getColumn, getDColor, getFgColor, getFgColorRgb, getFont, getFontInfo, getFontName, getFontSize, getFrameColumn, getFrameRow, getFrameX, getFrameY, getHeightChars, getHeightPixels, getNextSibling, getParent, getParent, getPfColor, getRow, getTooltip, getValidParentTypes, getWidthChars, getWidthPixels, getX, getY, isFontBold, isFontItalic, isFontUnderline, isMovable, isResizable, isSelected, isTabStop, prepareSizeChars, prepareSizePixels, pushLocAttrs, pushSizeAttrs, setAlign, setBgColor, setBgColor, setBgColor, setBgColorRgb, setBgColorRgb, setColon, setColon, setColumn, setColumn, setColumnOrRow, setColumnOrRowWorker, setDColor, setDColor, setDColor, setFgColor, setFgColor, setFgColor, setFgColorRgb, setFgColorRgb, setFont, setFontBold, setFontItalic, setFontName, setFontSize, setFontUnderline, setGroup, setHeightChars, setHeightChars, setHeightImpl, setHeightPixels, setHeightPixels, setMaxHeightCharsWorker, setMaxHeightPixelsWorker, setMaxWidthCharsWorker, setMaxWidthPixelsWorker, setMinHeightCharsWorker, setMinHeightPixelsWorker, setMinWidthCharsWorker, setMinWidthPixelsWorker, setMovable, setMovable, setParent, setPfColor, setPfColor, setPfColor, setResizable, setResizable, setRow, setRow, setSelected, setSelected, setSizeChars, setSizePixels, setSystemParent, setTabStop, setTabStop, setTooltip, setTooltip, setVirtHeightCharsWorker, setVirtHeightPixelsWorker, setVirtWidthCharsWorker, setVirtWidthPixelsWorker, setWidthChars, setWidthChars, setWidthImpl, setWidthPixels, setWidthPixels, setX, setX, setXorY, setXOrYWorker, setY, setY, useHandleChainSiblings, validateParent, validateSize, validColumnOrRow
_dynamic, _getDbName, _getFormat, _getTable, _isEntered, _isHidden, _isNotEntered, _isRealized, _isVisible, _setDynamic, _setVisible, afterConfigUpdate, apply, apply, apply, apply, asWidgetHandle, canAccess, canDelete, canPushWidgetAttr, cleanup, colorDisplay, colorPrompt, config, deselectRows, detachMenu, disable, dynamic, editUndo, enable, finishConfigProcessing, finishSetup, flushWidgetAttrs, genAssignUnknownWarning, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getAttr, getColumnFont, getColumnLabel, getContextHelpId, getConvert3D, getCursorOffset, getDbName, getFormat, getFrame, getFrameHandle, getFrameName, getHeight, getHelp, getHWND, getId, getImage, getLabel, getLabelFont, getLabelStr, getLogicalTerminal, getMaxHeightChars, getMaxWidthChars, getMenuKey, getMenuMouse, getMousePointer, getMousePosition, getNumColumns, getNumSelectedRows, getParentHandle, getPopupMenu, getQuery, getRetainShape, getScreenValue, getScreenValue, getSideLabelHandle, getStretchToFit, getTable, getTabPosition, getTitleFont, getTransparent, getValidationExpression, getValidationMessage, getVirtHeight, getVirtHeightPixels, getVirtWidth, getVirtWidthPixels, getWidgetId, getWidth, getWindow, getZOrderClass, hasFormat, hasNameReadOnly, hasParent, hide, hide, implicitDeletion, inputValue, isAutoCompletion, isAutoReturn, isChained, isChecked, isDisableRedraw, isEntered, isExpandLabel, isFocusedRowSelected, isHidden, isKeepFrameZOrder, isManualHighlight, isMultiple, isNotEntered, isScrollable, isSelectable, isSelected, isSelected, isSensitive, isTabWidget, isTextSelected, isThreeD, isValidatable, isVisible, labelSizeCheck, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadImage, loadMousePointer, loadMousePointer, moveAfterTab, moveAfterTab, moveBeforeTabItem, moveBeforeTabItem, moveToBottom, moveToTop, moveToWorker, name, notQueryable, notQueryable, notSettable, notSettable, notWorker, openPopup, preRealizeCheck, pushScreenDefinition, pushWidgetAttr, pushWidgetAttr, readOnlyError, readOnlyError, realize, refresh, resourceDelete, restoreSharedState, saveSharedState, selectAll, selectFocusedRow, setAtFormatLength, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrs, setAutoCompletion, setAutoCompletion, setAutoReturn, setAutoReturn, setBlank, setChecked, setChecked, setColumnFont, setColumnFont, setContextHelpId, setContextHelpId, setConvert3D, setConvert3D, setCursorOffset, setCursorOffset, setDbname, setDeblank, setDisableAutoZap, setDisableRedraw, setFont, setFormat, setFormat, setFrame, setFrame, setFrame, setFrameHandle, setFrameHandle, setFrameHandle, setHeader, setHeight, setHelp, setHelp, setHelpDefault, setHelpStatic, setHidden, setHidden, setId, setKeepFrameZOrder, setKeepFrameZOrder, setLabel, setLabel, setLabel, setLabelFont, setLabelFont, setLabelInt, setManualHighlight, setManualHighlight, setMaxHeightChars, setMaxWidthChars, setMenuKey, setMenuKey, setMenuMouse, setMenuMouse, setMultiple, setMultiple, setNextTabItem, setNoAutoValidate, setNumSelectedRows, setParentHandle, setParentHandle, setPopupMenu, setPopupMenu, setQuery, setReadOnly, setReadOnly, setRetainShape, setRetainShape, setScreenLock, setScreenValue, setScreenValue, setScreenValue, setScreenValueInt, setScreenValueNoErrorHandling, setScrollable, setScrollable, setSelectable, setSelectable, setSensitive, setSensitive, setSensitive, setSensitive, setSideLabelHandle, setStretchToFit, setStretchToFit, setTable, setThreeD, setThreeD, setTitleFont, setTitleFont, setTransparent, setTransparent, setValidation, setValidation, setVertical, setVirtHeight, setVirtHeightPixels, setVirtWidth, setVirtWidthPixels, setVisible, setVisible, setWidgetId, setWidgetId, setWidth, truncatePixelSize, underline, underline, valid, validate, validateFields, validateFields, validateFields, validateLabelAssignment, view, warningAlreadyRealized, widgetName
firstResource, firstResource, getHead, getNextSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNextSibling, hasPrevSibling, hasPrivateData, interlink, lastResource, lastResource, moveInChain, name, name, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName
doDelete, getResourceType, id, id, incrementTrigger, instantiatingProcedure, invalidAttribute, processResource, registerResource, setInstantiatingProcedure, toString, type, unableToAssignUnknown, unknown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
endFileDrop, getDroppedFile, getDroppedFile, getNumDroppedFiles, setDropTarget
getIdEx, getListItems, isEditCanUndo, setListItems, setListItems, setScreenValue
getPrivateData, setPrivateData, setPrivateData
getResourceType
id, id, unknown
setDisableRedraw
public SignatureWidget()
public SignatureWidget(boolean dynamic)
dynamic
- The dynamic flag, it is supposed to be true.public SignatureWidget(boolean dynamic, SignatureConfig ctrl)
dynamic
- The dynamic flag, it is supposed to be true.ctrl
- The container for all state to be transferred to the client.public void clearTablet()
clearTablet
in interface Signature
public integer numberOfTabletPoints()
numberOfTabletPoints
in interface Signature
public void lcdRefresh(integer mode, integer xPos, integer yPos, integer xSize, integer ySize)
lcdRefresh
in interface Signature
mode
- The given mode as above (0-4)xPos
- The X location in LCD Coordinates (upper left-0,0)yPos
- The Y location in LCD Coordinates (upper left-0,0)xSize
- The X size in LCD pixelsySize
- The Y size in LCD pixelspublic void lcdWriteString(integer dest, integer mode, integer xPos, integer yPos, character font, character text)
lcdWriteString
in interface Signature
dest
- 0 = Foreground, 1 = Background memory in tabletmode
- The given mode -0, 1, 2, 3 as defined abovexPos
- The X location in LCD coords to draw atyPos
- The Y location in LCD coords to draw atfont
- The font string in this form: "Arial Rounded MT, size=11, bold" or
"Arial, size=8.0"text
- The ASCII hex string valuepublic void keypadAddHotSpot(integer keyCode, integer coordToUse, integer xPos, integer yPos, integer xSize, integer ySize)
keypadAddHotSpot
in interface Signature
keyCode
- The integer value defining the hot spot area on the device.coordToUse
- The coordinate system used for this hot spot area.xPos
- The X location (upper left- 0,0)yPos
- The Y location (upper left- 0,0)xSize
- The X size in pixels.ySize
- The Y size in pixels.public void lcdSetWindow(integer xPos, integer yPos, integer xSize, integer ySize)
lcdSetWindow
in interface Signature
xPos
- The X location in LCD coordinates (upper left – 0,0)yPos
- The Y location in LCD coordinates (upper left – 0,0)xSize
- The X size in LCD pixelsySize
- The Y size in LCD pixelspublic void setSignatureWindow(integer coords, integer newXPos, integer newYPos, integer newXSize, integer newYSize)
setSignatureWindow
in interface Signature
coords
- Coordinate system used for this hot spot, 0 = Logical tablet coordinates, 1 = LCD Coordinates.newXPos
- The X location in logical tablet coordinates (upper left - 0,0).newYPos
- The Y location in logical tablet coordinates (upper left - 0,0).newXSize
- The X size in logical tablet pixelsnewYSize
- The Y size in logical tablet pixelspublic void setLCDCaptureMode(integer mode)
setLCDCaptureMode
in interface Signature
mode
- The LCD capture mode:
Mode 0=no LCD commands are sent to the tablet
Mode 1=sets capture mode to be active with Autoerase in the tablet
Mode 2=sets the tablet to persistent ink capture without autoerase
Mode 3=signature ink is displayed inverted on a suitable dark background set
using the Graphic functions.public void setTabletState(integer state)
setTabletState
in interface Signature
state
- Setting to 1 enables the tablet to capture signatures as above, setting to 0 disables
signature capture.public character tabletModelNumber()
tabletModelNumber
in interface Signature
public void setTranslateBitmapEnable(logical enable)
Signature
setTranslateBitmapEnable
in interface Signature
enable
- true
to enable translation.public void setImageFileFormat(integer fileFormat)
setImageFileFormat
in interface Signature
fileFormat
- The image file format type. Valid values are from 0 to 11.public void setImageXSize(integer imageXSize)
setImageXSize
in interface Signature
imageXSize
- The image width size in X pixels.public void setImageYSize(integer imageYSize)
setImageYSize
in interface Signature
imageYSize
- The image height size in Y pixels.public void setImagePenWidth(integer imagePenWidth)
setImagePenWidth
in interface Signature
imagePenWidth
- The pen ink width for image.public void setJustifyMode(integer mode)
setJustifyMode
in interface Signature
mode
- The justification mode:
0-normal no justification,
1-justify and zoom signature (upper left corner)
2-justify and zoom signature (upper right corner)
3-justify and zoom signature (lower left corner)
4-justify and zoom signature (lower right corner)
5-justify and zoom signature (center of control).public void setJustifyX(integer justifyX)
setJustifyX
in interface Signature
justifyX
- The justification X buffer size in pixels to be setpublic void setJustifyY(integer justifyY)
setJustifyY
in interface Signature
justifyY
- The justification Y buffer size in pixels to be setpublic memptr getSignatureImage(character imgFormat, character pixelFormat)
Signature
getSignatureImage
in interface Signature
imgFormat
- The image format (BMP, JPEG, etc).pixelFormat
- The pixel format (i.e. Format1bppIndexed).public integer keypadQueryHotSpot(integer keyCode)
keypadQueryHotSpot
in interface Signature
keyCode
- The given key code that defines the target hot spot area.public void clearSignatureWindow(integer inside)
clearSignatureWindow
in interface Signature
inside
- The flag indicating the data to erasepublic void keypadClearHotSpotList()
keypadClearHotSpotList
in interface Signature