edu.mit.sketch.ddg
Class DescribedDrawnObject

java.lang.Object
  extended by edu.mit.sketch.ddg.DescribedDrawnObject
All Implemented Interfaces:
java.io.Serializable

public class DescribedDrawnObject
extends java.lang.Object
implements java.io.Serializable

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

Author:
Olya Veselova
See Also:
Serialized Form

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

DescribedDrawnObject

public DescribedDrawnObject(DrawnObject drawnObject,
                            ObjectDescription description,
                            boolean marksOn,
                            java.util.Hashtable enabled)
Construct a DescribedDrawnObject from a given drawn object and a given description

Method Detail

mouseMoved

public void mouseMoved(Point point)
React to mouse hover event lighting and dimming the primitive over which the mouse is


primitiveSelected

public boolean primitiveSelected()
Whether some primitive is currently selected


selectionChanged

public boolean selectionChanged()
Whether the selection has changed


showOnlySelectedMarks

public void showOnlySelectedMarks()
Turn off all marks and only show marks on the selected primitive


paint

public void paint(java.awt.Graphics g)
Paint the object


setDrawnObject

public void setDrawnObject(DrawnObject object)
Set the drawn object


drawnObject

public DrawnObject drawnObject()
Get the drawn object


showMarks

public boolean showMarks()
Whether the marking is on


setShowMarks

public void setShowMarks(boolean value)
Set whether the marking is on