com.twainconnect.core
Class TwainEvent
java.lang.Object
java.util.EventObject
com.twainconnect.core.TwainEvent
- All Implemented Interfaces:
- java.io.Serializable
public class TwainEvent
- extends java.util.EventObject
Avoided inhieriting from javax.swing.event.ChangeEvent
so as not to tie TwainConnect to Swing
- Since:
- 3.0.0
- Version:
- 5.0.0
- Author:
- twainconnect
- See Also:
ChangeEvent,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
TwainEvent(java.lang.Object source)
Create a Twain Event |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
TwainEvent
public TwainEvent(java.lang.Object source)
- Create a Twain Event
- Parameters:
source -
getSourceName
public java.lang.String getSourceName()
- Returns:
- sourceName.
setSourceName
public void setSourceName(java.lang.String sourceName)
- Parameters:
sourceName - to set.
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
- Returns:
- Returns the bufferedImage. Possibly null if the engine
has not set this value
getException
public java.lang.Exception getException()
- Returns:
- the e
setException
public void setException(java.lang.Exception e)
- Parameters:
e - the e to set
setBufferedImage
void setBufferedImage(java.awt.image.BufferedImage bufferedImage)
- Parameters:
bufferedImage - Visibility is set to
package in order to reduce the possibility that non-TwainConnect classes
may abuse this method
setCapability
public void setCapability(Capability c)
- What TWAIN Capability was being used
- Parameters:
c -
getCapability
public Capability getCapability()