|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--edu.mit.sketch.ui.TabletGUI
|
+--edu.mit.sketch.ui.TabletDataProcessor
This class is for reading mouse input and processing it. Various fits are generated and stored here. Acronyms: sdr -> StrokeDataReader, sd -> StrokeData
| Inner classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
| Inner classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
| Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
| Field Summary | |
double |
circle_vs_general_path_bias
|
double |
circle_vs_speed_bias
|
SimpleClassifier |
classifier
|
double |
combine_treshold
|
ControlModule |
control_module
|
static StrokeData |
data
Stroke data |
double |
dd_dt_average_scale
|
static boolean |
debug
|
static boolean |
debug2
|
boolean |
deriving_scale_space
|
Vertex[] |
direction_fit
|
int |
direction_window_width
|
Vertex[] |
final_fit
|
static int |
fit_method
|
GestureGUI |
gesture_gui
|
boolean |
in_recognition_mode
|
Point[] |
line
Parameters and constants. |
static double |
LSQE_treshold
|
ObjectManager |
object_manager
|
static boolean |
platform_is_windows9x
|
PolarPoint[] |
polar_points
|
static StrokeDataReader |
sdr
Stroke data reader used for reading and instantiating StrokeData |
static long |
sequence_delay
|
double |
speed_average_scale
|
Vertex[] |
speed_fit
|
double |
test_line_scale
|
double |
turn_angle_treshold
|
static double |
window_width
|
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| 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 | |
TabletDataProcessor(int max_data_points,
String cursor_image_name,
boolean platform_is_windows9x)
The constructor. |
|
| Method Summary | |
void |
addEventListeners()
add event listeners |
void |
addPoint(Point p,
long t)
Add a new point to sdr with t as the time stamp. |
void |
classifyData(StrokeData data)
Handle mouse events |
Vertex[] |
combineEndPoints(Vertex[] polygon)
Combines the ends of the polygon if they are sufficiently close. |
long |
getTimeStamp(MouseEvent e)
This method is needed only for supporting the rather silly windows9X platform, because it is still using the dos clock. |
void |
mouseClicked(MouseEvent e)
Handle mouse events |
void |
mouseDragged(MouseEvent e)
Handle mouse motion events |
void |
mouseEntered(MouseEvent e)
Handle mouse events |
void |
mouseExited(MouseEvent e)
Handle mouse events |
void |
mouseMoved(MouseEvent e)
Handle mouse motion events |
void |
mousePressed(MouseEvent e)
Handle mouse events |
void |
mouseReleased(MouseEvent e)
Handle mouse events |
void |
mouseReleased2(MouseEvent e)
Handle mouse events |
void |
reset()
Reset the arrays |
void |
setDebugging(boolean d)
Set debugging mode |
void |
setRecognitionMode(boolean flag)
Disable or enable recognition process by turning mouse event listening off or on. |
Vertex[] |
simplifyPolygon(Vertex[] input_vertices)
Simplify the polygon to get rid of consecutive lines which are sufficiently parallel. |
| Methods inherited from class edu.mit.sketch.ui.TabletGUI |
adjustmentValueChanged, clearComponent, clearScreen, constructGUI, initializeGraphicsObjects, setInfoMessage, setStatusMessage |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getAccessibleContext, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, setCursor, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
public static StrokeDataReader sdr
public static StrokeData data
public Vertex[] final_fit
public Vertex[] speed_fit
public Vertex[] direction_fit
public PolarPoint[] polar_points
public int direction_window_width
public double dd_dt_average_scale
public double speed_average_scale
public double test_line_scale
public double combine_treshold
public double turn_angle_treshold
public double circle_vs_speed_bias
public double circle_vs_general_path_bias
public Point[] line
public boolean in_recognition_mode
public boolean deriving_scale_space
public static boolean platform_is_windows9x
public static boolean debug
public static boolean debug2
public static int fit_method
public static double window_width
public static long sequence_delay
public static double LSQE_treshold
public ObjectManager object_manager
public ControlModule control_module
public GestureGUI gesture_gui
public SimpleClassifier classifier
| Constructor Detail |
public TabletDataProcessor(int max_data_points,
String cursor_image_name,
boolean platform_is_windows9x)
| Method Detail |
public void addEventListeners()
public void classifyData(StrokeData data)
public void mouseReleased2(MouseEvent e)
public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void setDebugging(boolean d)
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void reset()
public void addPoint(Point p,
long t)
public void setRecognitionMode(boolean flag)
public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic Vertex[] combineEndPoints(Vertex[] polygon)
public Vertex[] simplifyPolygon(Vertex[] input_vertices)
public long getTimeStamp(MouseEvent e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||