edu.umd.cfar.lamp.viper.gui.canvas
Class CanvasCreator

java.lang.Object
  extended byedu.umd.cs.piccolo.event.PBasicInputEventHandler
      extended byedu.umd.cs.piccolo.PInputManager
          extended byedu.umd.cfar.lamp.viper.gui.canvas.CanvasCreator
All Implemented Interfaces:
java.util.EventListener, edu.umd.cs.piccolo.event.PInputEventListener, edu.umd.cs.piccolo.PRoot.InputSource
Direct Known Subclasses:
BboxCreator, CircleCreator, EllipseCreator, OboxCreator, OmegaCanvasCreator, PointCreator, PolygonCreator

public abstract class CanvasCreator
extends edu.umd.cs.piccolo.PInputManager

Author:
clin To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
CanvasCreator(CreatorAssistant asst, Attribute attr)
           
 
Method Summary
abstract  void displaySelected()
           
 CreatorAssistant getAssistant()
           
 Attribute getAttribute()
           
 Highlightable getColorTable()
           
abstract  java.lang.String getName()
           
 void setAttribute(Attribute attribute)
           
 void setAttrValueInMediator(java.lang.Object val)
           
 void stop()
          When the canvas loses focus, the shape should be "cancelled" For an obox, this means removing the partly constructed shape.
 
Methods inherited from class edu.umd.cs.piccolo.PInputManager
checkForMouseEnteredAndExited, getCurrentCanvasPosition, getKeyboardFocus, getLastCanvasPosition, getMouseFocus, getMouseOver, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelRotated, mouseWheelRotatedByBlock, processEventFromCamera, processInput, setKeyboardFocus, setMouseFocus, setMouseOver
 
Methods inherited from class edu.umd.cs.piccolo.event.PBasicInputEventHandler
acceptsEvent, getEventFilter, keyboardFocusGained, keyboardFocusLost, paramString, processEvent, setEventFilter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CanvasCreator

public CanvasCreator(CreatorAssistant asst,
                     Attribute attr)
Method Detail

getName

public abstract java.lang.String getName()

stop

public void stop()
When the canvas loses focus, the shape should be "cancelled" For an obox, this means removing the partly constructed shape. For a bbox, this means the same. For a polygon, it means to consider the current shape complete and add it (this is because of the difficulty of drawing a many sided polygon)


displaySelected

public abstract void displaySelected()

getAttribute

public Attribute getAttribute()
Returns:

setAttribute

public void setAttribute(Attribute attribute)
Parameters:
attribute -

getAssistant

public CreatorAssistant getAssistant()
Returns:

setAttrValueInMediator

public void setAttrValueInMediator(java.lang.Object val)

getColorTable

public Highlightable getColorTable()