edu.mit.sketch.ddg
Class ConstraintMarks

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

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

This class contains an list of constraints for the object and marks for all the constraints. ConstraintMarks.java Created: Mon Feb 10 16:44:00 2003

Author:
Olya Veselova
See Also:
Serialized Form

Constructor Summary
ConstraintMarks(ConstraintList constraints, DrawnObject object, java.util.Hashtable enabled)
          Construct marks for cosntraints with all marks.
 
Method Summary
 boolean enabled(java.lang.String name)
          Determine whether the particular constraint mark is enabled
 void paint(java.awt.Graphics g, boolean under)
          Paint the marks.
 void showOnly(Primitive primitive)
          Make all marks invisible and the marks related to the given primitive visible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintMarks

public ConstraintMarks(ConstraintList constraints,
                       DrawnObject object,
                       java.util.Hashtable enabled)
Construct marks for cosntraints with all marks.

Method Detail

enabled

public boolean enabled(java.lang.String name)
Determine whether the particular constraint mark is enabled


showOnly

public void showOnly(Primitive primitive)
Make all marks invisible and the marks related to the given primitive visible


paint

public void paint(java.awt.Graphics g,
                  boolean under)
Paint the marks. The boolean indicates whether what is currently painted is going to be under (in the background) of the object primitives or on top of them