|
CIC iSign Version 1.2 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Canvas
|
+--InkTools.CicInkControl
Provides the signature box, the UI element of InkTools. This class connects automatically to an input device (digitizer) and captures and displays the ink data if the user does sign his/her signature into this box.
The signature is captures as raw data into a CicDoodle object and then rendered in realtime into the InkControl. A CicDoodle with ink data can also get loaded into the InkControl for redisplay. All the visible elements of the InkControl are controlable via class methods or Java-Bean properties.
| Field Summary | |
static int |
FIT_TO_CONTROL
This diaplay option will force the InkControl to resize the ink so that it is displayed filling the InkControl. |
static int |
NORMAL_INK
With this display option the ink data will be displayed in its original dimension if it fits into the control. |
CicWinTab |
winThread
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CicInkControl()
Constructs an emty InkControl object with default values: size is 300 by 150 screen points, black ink on white background with blue double border, writing guide is shown. |
|
CicInkControl(CicDoodle doodle)
Constructs an InkControl and loads the ink from the CicDoodle object passed in. |
|
CicInkControl(int width,
int height)
Constructs an empty InkControl with the specified height and width. |
|
| Method Summary | |
void |
deleteInk()
Deletes the actual ink data in the current doodle and clears the ink from the InkControl. |
void |
drawInk()
Displays the current ink onto the screen. |
void |
drawInk(java.awt.Graphics g)
Displays the current ink onto the screen. |
void |
endWintabDataCollection()
Stops the CicWinTab thread class. |
java.awt.Color |
getBackgroundColor()
Returns the current background color of the InkControl. |
java.awt.Color |
getBorderColor()
Return the current border color |
int |
getBorderStyle()
Returns the current border style. |
java.awt.Dimension |
getCtrlSize()
Get the current dimension of the InkControl |
CicDoodle |
getDoodle()
Returns a copy (clone) of the current active CicDoodle object. |
boolean |
getEnabled()
Returns the enable status of the control |
CicDoodle[] |
getEnrollSignaturesFromPalm(java.lang.String userName,
int numSigs)
Deprecated. Call this function if you want the user to input enrollment signatures from a Palm device. The Palm has to be connected to the desktop and he/she has to start the 'SignIt' application on the palm device and input the signatures there. The signatures are then transmitted and displayed in the InkControl. |
java.awt.Color |
getInkColor()
Returns the current ink color. |
int |
getInkWidth()
Returns the current ink width |
CicDoodle |
getRefToDoodle()
Returns a reference to the current active CicDoodle object. |
CicDoodle |
getSignature()
This function supports multiple signature collection in the InkControl like it is used for the enrollment process. |
boolean |
getSignatureFromPalm(java.lang.String userName)
Deprecated. Call this function if you want the user to input a signature from a Palm device. The Palm has to be connected to the desktop and he/she has to start the 'SignIt' application on the palm device and input the signature there. The signature gets then transmitted and displayed in the InkControl. |
int |
getWritingGuide()
Returns the current writing guide style. |
boolean |
hasInk()
This function checks if the current active CicDoodle object of the InkControl has any ink in it. |
void |
hasMoved()
The parent applet/application has moved. |
void |
isInForeground(boolean bIsInForeground)
If the application or applet where this InkControl is embedded switched the foreground status, this function should be called to update the status. |
void |
loadDoodle(CicDoodle newDoodle)
This function loads a new doodle into the InkControl. |
java.awt.Dimension |
minimumSize()
Requirred by the BEAN API. |
void |
paint(java.awt.Graphics g)
Overwrites Component paint function. |
java.awt.Dimension |
preferredSize()
Requirred by the BEAN API. |
void |
setBackgroundColor(java.awt.Color newBackgroundColor)
Sets the background color of the ink control. |
void |
setBorderColor(java.awt.Color color)
Sets the InkControl border color. |
void |
setBorderStyle(int bStyle)
Sets the border style for the InkControl. |
void |
setControlSize(int width,
int height)
The size of the InkControl box will be changed with this function. |
void |
setCtrlSize(java.awt.Dimension dim)
The size of the InkControl box will be changed with this function. |
void |
setDisplayMode(int mode)
Sets the display mode for the InkControl. |
void |
setDisplaySmoothingLevel(int smoothingLevel)
Sets the Paper property displaySmoothingLevel. |
void |
setEnabled(boolean enable)
This functions enables or disables the InkControl. |
void |
setInkColor(java.awt.Color color)
Changes the color of the ink in the InkControl |
void |
setInkWidth(int width)
Changes the current ink width for display. |
void |
setWritingGuide(int newWritingGuide)
Sets the writing guide style . |
void |
stopWinThread()
Stops the CicWinTab thread class. |
void |
update(java.awt.Graphics g)
Overwrites Component update function. |
| Methods inherited from class java.awt.Canvas |
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NORMAL_INK
public static final int FIT_TO_CONTROL
public CicWinTab winThread
| Constructor Detail |
public CicInkControl()
public CicInkControl(int width,
int height)
width - the width of the InkControl boxheight - the height of the InkControl boxpublic CicInkControl(CicDoodle doodle)
doodle - The CicDoodle object which gets laoded into the InkControl| Method Detail |
public void hasMoved()
public void stopWinThread()
public void endWintabDataCollection()
public void deleteInk()
public void drawInk()
public void drawInk(java.awt.Graphics g)
public void setControlSize(int width,
int height)
width - the new width of the InkControlheight - the new height of the InkControlpublic void setCtrlSize(java.awt.Dimension dim)
dim - the new dimension of the InkControlpublic java.awt.Dimension getCtrlSize()
public void setInkWidth(int width)
width - The new ink width for display. Only single=1 and
double=2 is supported for nowpublic int getInkWidth()
public void setInkColor(java.awt.Color color)
color - the new ink colorpublic java.awt.Color getInkColor()
public void setEnabled(boolean enable)
setEnabled in class java.awt.Componentenable - true to enable the control or false to disable itpublic boolean getEnabled()
public void setBorderStyle(int bStyle)
bStyle - inkControl border stylepublic int getBorderStyle()
public void setBorderColor(java.awt.Color color)
color - the new border colorpublic java.awt.Color getBorderColor()
public void setDisplaySmoothingLevel(int smoothingLevel)
smoothingLevel - the smoothing level to use for
displaying inkpublic CicDoodle getDoodle()
public CicDoodle getRefToDoodle()
public boolean getSignatureFromPalm(java.lang.String userName)
Call this function if you want the user to input a signature from a Palm device. The Palm has to be connected to the desktop and he/she has to start the 'SignIt' application on the palm device and input the signature there. The signature gets then transmitted and displayed in the InkControl.
userName - the name which should be displayed on the palm device,
only 9 characters are allowed
public CicDoodle[] getEnrollSignaturesFromPalm(java.lang.String userName,
int numSigs)
Call this function if you want the user to input enrollment signatures from a Palm device. The Palm has to be connected to the desktop and he/she has to start the 'SignIt' application on the palm device and input the signatures there. The signatures are then transmitted and displayed in the InkControl.
userName - the name which should be displayed on the palm device,
only 9 characters are allowednumSigs - the number of signature to be collected, for enrollment
usually three
public void loadDoodle(CicDoodle newDoodle)
newDoodle - the new ink data loaded into this InkControlpublic void setDisplayMode(int mode)
mode - the display mode with 1 = NORMAL_INK and 2 = FIT_TO_CONTROLpublic boolean hasInk()
public CicDoodle getSignature()
public java.awt.Dimension preferredSize()
preferredSize in class java.awt.Componentpublic java.awt.Dimension minimumSize()
minimumSize in class java.awt.Componentpublic void update(java.awt.Graphics g)
update in class java.awt.Canvasg - graphics contextpublic void paint(java.awt.Graphics g)
paint in class java.awt.Canvasg - Graphics contextpublic void setWritingGuide(int newWritingGuide)
newWritingGuide - the writing guide stylepublic int getWritingGuide()
public void setBackgroundColor(java.awt.Color newBackgroundColor)
newBackgroundColor - the new background colorpublic java.awt.Color getBackgroundColor()
public void isInForeground(boolean bIsInForeground)
bIsInForeground - set to true if the application/applet switched back to the
foreground (is the active window) or false if it switched
to the background (is inactive window)
|
CIC iSign Version 1.2 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||