|
|||||||||
| 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.toolkit.TabletGUI
|
+--edu.mit.sketch.toolkit.TabletDataProcessor
|
+--edu.mit.sketch.toolkit.TabletGUIBehavior
|
+--edu.mit.sketch.toolkit.Tablet
Acronyms: sdr -> StrokeDataReader, sd -> StrokeData This class handles the updates to various frames.
| 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 |
| 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 | |
Tablet(int max_data_points,
double speed_average_scale,
String cursor_image_name,
boolean platform_is_windows9x,
boolean platform_is_windowsNT)
The constructor. |
|
| Method Summary | |
void |
actionPerformed(ActionEvent e)
Handle action events |
void |
addAllComponentsAsKeyListeners()
Add Components As Key Listeners |
void |
addEventListeners()
add event listeners |
void |
addPoint(Point p,
long t)
Add a new point to sdr with t as the time stamp. |
void |
adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged |
void |
clearComponent(Component component)
Clear the component |
void |
clearScreen()
Clear screen |
Vertex[] |
combineEndPoints(Vertex[] polygon)
Combines the ends of the polygon if they are sufficiently close. |
void |
constructGUI()
construct the GUI part of the Tablet. |
void |
constructToolbar()
Construct the toolbar |
void |
convolveChangeInDirection()
Do convolution. |
void |
convolveDirection()
Do convolution. |
void |
displayFitByIndices(int[] indices)
displayFitByIndices |
void |
displayFitByReversedIndices(int[] indices)
displayFitByIndices |
void |
displayVertices(Vertex[] vertices)
Update various graphs and statistics. |
double |
gauss(double x,
double sigma)
|
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 |
initializeBuffer()
Overloaded for double buffering. |
void |
initializeGraphicsObjects()
initializeGraphicsObjects |
void |
keyPressed(KeyEvent k)
Handle key stroke events |
void |
keyReleased(KeyEvent k)
Handle key stroke events |
void |
keyTyped(KeyEvent ke)
Handle key stroke events |
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 |
paint_d(StrokeData data,
Color color)
Update the direction graph. |
void |
paint_dd_dt(StrokeData data,
Color color)
Update change in direction |
void |
paint(Graphics g)
Overloaded for double buffering. |
void |
paintAcceleration(StrokeData data,
Color color)
Update the acceleration graph. |
void |
paintFvsG(double[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
void |
paintFvsG(long[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
Paint f vs g in the frame using the input color and affine transform. |
void |
paintVelocity(StrokeData data,
Color color)
Update the velocity graph. |
void |
reset()
Reset the arrays |
void |
setDebugging(boolean d)
Set debugging mode |
void |
setFitMehod(int method)
Change the fit method, rederive the direction and related entities. |
static void |
setInfoMessage(String message)
Set the status bar label text to the input string. |
void |
setRecognitionMode(boolean flag)
Disable or enable recognition process by turning mouse event listening off or on. |
static void |
setStatusMessage(String message)
Set the status bar label text to the input string. |
Vertex[] |
simplifyPolygon(Vertex[] input_vertices)
Simplify the polygon to get rid of consecutive lines which are sufficiently parallel. |
void |
toggle()
toggle the state related with showing the parsed objects. |
void |
update_fits()
Update the info about the various fits (LSQE etc.) |
void |
update(Graphics g)
Update various graphs and statistics. |
void |
zoomX(double k)
Zoom in all window's X axis by k |
void |
zoomY(double k)
Zoom in all window's y axis by k |
| 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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setFont, setLayout, 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 edu.mit.sketch.toolkit.TabletDebugger tablet_debugger
public boolean vertex_identification
public static double a_scale
public static double v_scale
public static double t_scale
public static double theta_scale
public static double d_theta_scale
public static double accumulated_length_scale
public static float brush_thickness
public boolean display_lsq_vectors
public boolean show_parsed_objects
public boolean buffer_ready
public BufferedImage buffer
public Graphics buffer_graphics
public Graphics v_window_graphics
public Graphics a_window_graphics
public Graphics d_window_graphics
public Graphics fits_window_graphics
public Graphics dd_dt_window_graphics
public static edu.mit.sketch.toolkit.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 orientation_angle
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 platform_is_windowsNT
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 edu.mit.sketch.toolkit.ObjectManager object_manager
public edu.mit.sketch.toolkit.ControlModule control_module
public SimpleClassifier classifier
public Frame v_window
public Frame a_window
public Frame d_window
public Frame fits_window
public Frame dd_dt_window
public JFrame data_window
public edu.mit.sketch.toolkit.JointDisplay joint_display
public MenuBar menubar
public Menu file
public MenuItem open_menu
public MenuItem save_menu
public MenuItem save_as_menu
public MenuItem quit_menu
public Menu edit
public MenuItem undo_menu
public Menu windows
public MenuItem v_menu
public MenuItem a_menu
public Menu pen_menu
public Menu direction_menu
public MenuItem d_menu
public MenuItem fits_menu
public MenuItem data_menu
public MenuItem dd_dt_menu
public MenuItem controls_menu
public MenuItem statistics_menu
public MenuItem joint_display_menu
public MenuItem v_scale_space_menu
public MenuItem dd_dt_scale_space_menu
public Menu options
public MenuItem vectors_menu
public MenuItem display_menu
public Menu processing
public MenuItem derive_snapshots_menu
public static Label info_bar
public static Label status_bar
public JList x_list
public JList y_list
public static Graphics debug_graphics
public static StatisticsModule bar_statistics_module
public static StatisticsModule dsw_statistics_module
public static StatisticsModule ddsw_statistics_module
public static StatisticsModule sliding_window_statistics_module
public Color graph_color
public edu.mit.sketch.toolkit.SpeedScaleSpaceViewer v_scale_space_viewer
public edu.mit.sketch.toolkit.DirectionChangeScaleSpaceViewer dd_dt_scale_space_viewer
| Constructor Detail |
public Tablet(int max_data_points,
double speed_average_scale,
String cursor_image_name,
boolean platform_is_windows9x,
boolean platform_is_windowsNT)
| Method Detail |
public void addAllComponentsAsKeyListeners()
public void keyPressed(KeyEvent k)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent k)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent ke)
keyTyped in interface KeyListener
public double gauss(double x,
double sigma)
public void initializeBuffer()
public void constructToolbar()
public void paint(Graphics g)
paint in class Containerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void toggle()
public void mouseReleased(MouseEvent e)
mouseReleased in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void mouseClicked(MouseEvent e)
mouseClicked in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void mouseEntered(MouseEvent e)
mouseEntered in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void mouseExited(MouseEvent e)
mouseExited in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void mousePressed(MouseEvent e)
mousePressed in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void mouseDragged(MouseEvent e)
mouseDragged in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void mouseMoved(MouseEvent e)
mouseMoved in class edu.mit.sketch.toolkit.TabletDataProcessorpublic void displayVertices(Vertex[] vertices)
public void displayFitByReversedIndices(int[] indices)
public void displayFitByIndices(int[] indices)
public void update(Graphics g)
update in class Container
public void paintVelocity(StrokeData data,
Color color)
public void paintAcceleration(StrokeData data,
Color color)
public void paint_d(StrokeData data,
Color color)
public void paint_dd_dt(StrokeData data,
Color color)
public void paintFvsG(double[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
public void paintFvsG(long[] f,
double[] g,
Color color,
Component component,
AffineTransform transform)
public void update_fits()
public void setFitMehod(int method)
public void convolveDirection()
public void convolveChangeInDirection()
public void zoomY(double k)
public void zoomX(double k)
public void addEventListeners()
public void setDebugging(boolean d)
public void reset()
public void addPoint(Point p,
long t)
public void setRecognitionMode(boolean flag)
public Vertex[] combineEndPoints(Vertex[] polygon)
public Vertex[] simplifyPolygon(Vertex[] input_vertices)
public long getTimeStamp(MouseEvent e)
public void constructGUI()
public static void setInfoMessage(String message)
public static void setStatusMessage(String message)
public void clearScreen()
public void initializeGraphicsObjects()
public void clearComponent(Component component)
public void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged in interface AdjustmentListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||