|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--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 | |
(package private) Filter |
filter
|
(package private) java.util.Vector |
objects
|
(package private) ParseSupervisor |
parse_supervisor
|
(package private) GeometricObject[] |
selected_objects
|
(package private) boolean |
show_parsed_objects
This is true if the parsed stuff is to be painted. |
(package private) SpatialParser |
spatial_parser
|
(package private) Tablet |
tablet
|
| Constructor Summary | |
(package private) |
ObjectManager(Tablet tablet)
The constructor. |
| Method Summary | |
void |
addObject(java.lang.Object o)
Adds an object to the objects vector after filtering. |
private void |
addObjectInternal(java.lang.Object o)
Adds an object to the objects vector. |
void |
clear(java.awt.Graphics g)
Clear the screen |
void |
deselectObjects()
Deselect the objects |
java.util.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. |
java.util.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. |
void |
keyPressed(java.awt.event.KeyEvent k)
Handle key stroke events |
void |
keyReleased(java.awt.event.KeyEvent k)
Handle key stroke events |
void |
keyTyped(java.awt.event.KeyEvent k)
Handle key stroke events |
void |
mouseClicked(java.awt.event.MouseEvent e)
Handle mouse events |
void |
mouseDragged(java.awt.event.MouseEvent e)
Mouse events |
void |
mouseEntered(java.awt.event.MouseEvent e)
Handle mouse events |
void |
mouseExited(java.awt.event.MouseEvent e)
Handle mouse events |
void |
mouseMoved(java.awt.event.MouseEvent e)
Mouse events |
void |
mousePressed(java.awt.event.MouseEvent e)
Handle mouse events |
void |
mouseReleased(java.awt.event.MouseEvent e)
Handle mouse events |
private void |
normalizeObject(java.lang.Object o)
Look at the statistical information and modify the polygons to look like as they were intended to be. |
void |
paint(java.awt.Graphics g)
Draw the objects |
void |
parse()
Call the parse method in spatial_parser |
boolean |
removeObject(java.lang.Object object)
Removes the argument object from the objects Vector. |
void |
reset()
Removes all the objects. |
void |
selectObjects(GeometricObject[] geometric_objects)
Select the objects in the argument vector. |
private boolean |
tryCombining(java.lang.Object o)
Try combining the input object with whatever is present in the objects vector. |
void |
undo()
A very primitive undo |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
ParseSupervisor parse_supervisor
SpatialParser spatial_parser
GeometricObject[] selected_objects
java.util.Vector objects
Filter filter
Tablet tablet
boolean show_parsed_objects
| Constructor Detail |
ObjectManager(Tablet tablet)
| Method Detail |
public void addObject(java.lang.Object o)
public boolean removeObject(java.lang.Object object)
private void addObjectInternal(java.lang.Object o)
private void normalizeObject(java.lang.Object o)
private boolean tryCombining(java.lang.Object o)
public void paint(java.awt.Graphics g)
public void clear(java.awt.Graphics g)
public void reset()
public void undo()
public java.util.Vector getNeighborObjects(Point p,
int r)
public java.util.Vector getNeighborObjectsOriginal(Point p,
int r)
public void mouseClicked(java.awt.event.MouseEvent e)
public void mouseEntered(java.awt.event.MouseEvent e)
public void mouseExited(java.awt.event.MouseEvent e)
public void mousePressed(java.awt.event.MouseEvent e)
public void mouseReleased(java.awt.event.MouseEvent e)
public void keyPressed(java.awt.event.KeyEvent k)
public void keyReleased(java.awt.event.KeyEvent k)
public void keyTyped(java.awt.event.KeyEvent k)
public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
public void deselectObjects()
public void selectObjects(GeometricObject[] geometric_objects)
public void parse()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||