Class JDPSignature
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----JDPSignature
- public class JDPSignature
- extends Panel
A Signature display class. This produces a component that will capture
and subsequently digitize and then restore a signature.
-
JDPSignature()
- Creates a new signature.
-
getMinimumHeight()
- Get the minimum height of the grid
-
getMinimumWidth()
- Get the minimum width of the grid
-
getText()
- Get the digitized value of the signature
-
handleEvent(Event)
-
-
minimumSize()
-
-
paint(Graphics)
-
Paints the component.
-
preferredSize()
-
-
setMinimumHeight(int)
- Set the minimum height of the grid
-
setMinimumWidth(int)
- Set the minimum width of the grid
-
setText(String)
- Get the digitized value of the signature
JDPSignature
public JDPSignature()
- Creates a new signature.
paint
public void paint(Graphics g)
- Paints the component. This method is called when the contents
of the component should be painted in response to the component
first being shown or damage needing repair. The clip rectangle
in the Graphics parameter will be set to the area which needs
to be painted.
- Parameters:
- g - the specified Graphics window
- Overrides:
- paint in class Container
- See Also:
- update
handleEvent
public synchronized boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
getText
public String getText()
- Get the digitized value of the signature
setText
public void setText(String sig)
- Get the digitized value of the signature
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Container
minimumSize
public Dimension minimumSize()
- Overrides:
- minimumSize in class Container
setMinimumWidth
public void setMinimumWidth(int width)
- Set the minimum width of the grid
- Parameters:
- the - width in pixels.
getMinimumWidth
public int getMinimumWidth()
- Get the minimum width of the grid
- Returns:
- the width in pixels.
setMinimumHeight
public void setMinimumHeight(int height)
- Set the minimum height of the grid
- Parameters:
- the - height in pixels.
getMinimumHeight
public int getMinimumHeight()
- Get the minimum height of the grid
- Returns:
- the height in pixels.