public class EventParser extends Object implements ModelParser
EventWriter
Modifier and Type | Field and Description |
---|---|
static String |
CLICKCOUNT_ATTR_TAG |
static String |
DTD_1
The DTD for sketch files.
|
static String |
DTD_URL
The URL where the DTD is stored.
|
static String |
EVENT_STREAM_TAG |
static String |
ID_ATTR_TAG |
static String |
KEY_EVENT_TAG |
static String |
KEYCHAR_ATTR_TAG |
static String |
KEYCODE_ATTR_TAG |
static String |
MODIFIERS_ATTR_TAG |
static String |
MOUSE_EVENT_TAG |
static String |
POPUPTRIGGER_ATTR_TAG |
static String |
PUBLIC_ID
The public identity of the sketch dtd file.
|
static String |
WHEN_ATTR_TAG |
static String |
X_ATTR_TAG |
static String |
Y_ATTR_TAG |
Constructor and Description |
---|
EventParser(Component source)
Construct a new event parser that parses events from the input
string and attributes them to the given source component.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Simple test of this class.
|
Object |
parse(Reader in)
Parse the data in the given charater stream into a data
structure and return the data structure.
|
InputEvent[] |
parseEvents(Reader in) |
public static final String PUBLIC_ID
public static final String DTD_URL
public static final String DTD_1
public static final String EVENT_STREAM_TAG
public static final String MOUSE_EVENT_TAG
public static final String KEY_EVENT_TAG
public static final String ID_ATTR_TAG
public static final String WHEN_ATTR_TAG
public static final String MODIFIERS_ATTR_TAG
public static final String X_ATTR_TAG
public static final String Y_ATTR_TAG
public static final String CLICKCOUNT_ATTR_TAG
public static final String POPUPTRIGGER_ATTR_TAG
public static final String KEYCODE_ATTR_TAG
public static final String KEYCHAR_ATTR_TAG
public EventParser(Component source)
public Object parse(Reader in) throws Exception
ModelParser
parse
in interface ModelParser
Exception
public InputEvent[] parseEvents(Reader in) throws Exception
Exception
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.