|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.ddg.DescribedDrawnObject
public class DescribedDrawnObject
This class represents an object on the drawing surface that is shown to the user to display understanding of the system. So it includes the drawn part (that is straightened from the user's original strokes, or generated entirely from scratch) and the markings that show which constraints have been found in the object. DescribedDrawnObject.java Created: Mon Feb 10 16:44:00 2003
| Constructor Summary | |
|---|---|
DescribedDrawnObject(DrawnObject drawnObject,
ObjectDescription description,
boolean marksOn,
java.util.Hashtable enabled)
Construct a DescribedDrawnObject from a given drawn object and a given description |
|
| Method Summary | |
|---|---|
DrawnObject |
drawnObject()
Get the drawn object |
void |
mouseMoved(Point point)
React to mouse hover event lighting and dimming the primitive over which the mouse is |
void |
paint(java.awt.Graphics g)
Paint the object |
boolean |
primitiveSelected()
Whether some primitive is currently selected |
boolean |
selectionChanged()
Whether the selection has changed |
void |
setDrawnObject(DrawnObject object)
Set the drawn object |
void |
setShowMarks(boolean value)
Set whether the marking is on |
boolean |
showMarks()
Whether the marking is on |
void |
showOnlySelectedMarks()
Turn off all marks and only show marks on the selected primitive |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DescribedDrawnObject(DrawnObject drawnObject,
ObjectDescription description,
boolean marksOn,
java.util.Hashtable enabled)
| Method Detail |
|---|
public void mouseMoved(Point point)
public boolean primitiveSelected()
public boolean selectionChanged()
public void showOnlySelectedMarks()
public void paint(java.awt.Graphics g)
public void setDrawnObject(DrawnObject object)
public DrawnObject drawnObject()
public boolean showMarks()
public void setShowMarks(boolean value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||