edu.umd.cfar.lamp.viper.gui.canvas
Interface CreatorAssistant


public interface CreatorAssistant

Provides a way for a Creator class to display its information on the canvas, through a single PNode.


Method Summary
 void addShape(edu.umd.cs.piccolo.PNode node)
          Adds shape to canvas so you can see it.
 void removeShape()
          Removes the shape set in 'addShape'.
 void setAttrValueInMediator(java.lang.Object obj, Attribute selectedAttr)
          A helper method called to set the shape to the attribute value This will cause the mediator to reload everything on the frame, so we should remove the node.
 void switchListener()
          Switch to the editor.
 

Method Detail

addShape

public void addShape(edu.umd.cs.piccolo.PNode node)
Adds shape to canvas so you can see it.

Parameters:
node - the shape you wish to display.

removeShape

public void removeShape()
Removes the shape set in 'addShape'.


setAttrValueInMediator

public void setAttrValueInMediator(java.lang.Object obj,
                                   Attribute selectedAttr)
A helper method called to set the shape to the attribute value This will cause the mediator to reload everything on the frame, so we should remove the node.

Parameters:
obj - the value to set in the attribute
selectedAttr - the attribute to modify.

switchListener

public void switchListener()
Switch to the editor.