|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.sketch.toolkit.ObjectManager
This class manages the objects recognized by the Tablet. Tablet adds the recognized using the addObject method. The objects are kept in a Vector.
| Field Summary | |
int |
mode
|
Vector |
paths
|
static int |
RECOGNITION_MODE
|
static int |
SELECTION_MODE
|
boolean |
show_parsed_objects
This is true if the parsed stuff is to be painted. |
Vector |
stroke_vertices
|
| Constructor Summary | |
ObjectManager(TabletDataProcessor tablet)
The constructor. |
|
| Method Summary | |
void |
addObject(Object o)
Adds an object to the objects vector after filtering. |
void |
addObject(Object o,
Polygon polygonal_fit)
Adds an object to the objects vector after checking if the polygonal fit is a spring or not. |
void |
addObjects(Vector input_objects)
Adds given objects to the objects vector after filtering. |
void |
addPath(GeneralPath path)
Adds given objects to the paths vector |
void |
addVertices(Vertex[] vertices)
Adds an object to the objects vector after filtering. |
void |
changeModeTo(int mode)
Mouse events |
void |
clear()
Clear the screen |
void |
deriveProperties()
Write the images that show scale space data in a single gif file. |
void |
deriveSnapshots()
Write the images that show scale space data in a single gif file. |
void |
deselectObjects()
Deselect the objects |
void |
doOpen()
Launch a FileDialog and do a load |
void |
doSave()
Launch a FileDialog and do a save |
void |
doSaveAs()
Launch a FileDialog and do a save as |
String |
getFeatureVectors()
Feature vectors in string format |
Vector |
getNeighborObjects(Point p,
int r)
Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r. |
Vector |
getNeighborObjectsOriginal(Point p,
int r)
Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r. |
Vector |
getTranslatableNeighborObjects(Point p,
int r)
Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r. |
Vector |
getTranslatableNeighborObjectsOriginal(Point p,
int r)
Returns a vector of all the geometric objects "sufficiently close to the point passes, determined by the search radius r. |
void |
keyPressed(KeyEvent k)
Handle key stroke events |
void |
keyReleased(KeyEvent k)
Handle key stroke events |
void |
keyTyped(KeyEvent k)
Handle key stroke events |
void |
mouseClicked(MouseEvent e)
Handle mouse events |
void |
mouseDragged(MouseEvent e)
Mouse events |
void |
mouseEntered(MouseEvent e)
Handle mouse events |
void |
mouseExited(MouseEvent e)
Handle mouse events |
void |
mouseMoved(MouseEvent e)
Mouse events |
void |
mousePressed(MouseEvent e)
Handle mouse events |
void |
mouseReleased(MouseEvent e)
Handle mouse events |
void |
paint(Graphics graphics)
Draw the objects |
void |
parse()
Call the parse method in spatial_parser |
void |
printFeatureVectors()
Print the feature vectors |
boolean |
removeObject(Object object)
Removes the argument object from the objects Vector. |
boolean |
removePath(Object object)
Removes the argument object from the objects Vector. |
void |
reset()
Removes all the objects. |
void |
runSVMClassifier(GeneralPath general_path)
Save the feature vectors |
void |
saveFeatureVectors(String file_name)
Save the feature vectors |
void |
selectInside(GeometricObject object)
Selects all the objects inside the given object. |
void |
selectObjects(Translatable[] translatables)
Select the objects in the argument vector. |
void |
selectObjects(Vector translatables)
Select the objects in the argument vector. |
void |
undo()
A very primitive undo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public Vector stroke_vertices
public Vector paths
public static final int RECOGNITION_MODE
public static final int SELECTION_MODE
public int mode
public boolean show_parsed_objects
| Constructor Detail |
public ObjectManager(TabletDataProcessor tablet)
| Method Detail |
public void addObject(Object o)
public void addVertices(Vertex[] vertices)
public void addObject(Object o,
Polygon polygonal_fit)
public void addObjects(Vector input_objects)
public void addPath(GeneralPath path)
public boolean removePath(Object object)
public void selectInside(GeometricObject object)
public boolean removeObject(Object object)
public void paint(Graphics graphics)
public void clear()
public void reset()
public void undo()
public Vector getTranslatableNeighborObjects(Point p,
int r)
public Vector getTranslatableNeighborObjectsOriginal(Point p,
int r)
public Vector getNeighborObjects(Point p,
int r)
public Vector getNeighborObjectsOriginal(Point p,
int r)
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 mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void keyPressed(KeyEvent k)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent k)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent k)
keyTyped in interface KeyListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void changeModeTo(int mode)
public void deselectObjects()
public void selectObjects(Translatable[] translatables)
public void selectObjects(Vector translatables)
public void parse()
public void doOpen()
public void doSaveAs()
public void doSave()
public void deriveProperties()
public void deriveSnapshots()
public void printFeatureVectors()
public String getFeatureVectors()
public void saveFeatureVectors(String file_name)
public void runSVMClassifier(GeneralPath general_path)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||