org.vectomatic.client.rep.controller
Class NewEllipseController

java.lang.Object
  extended by org.vectomatic.client.rep.controller.ControllerBase
      extended by org.vectomatic.client.rep.controller.NewEllipseController
All Implemented Interfaces:
IController

public class NewEllipseController
extends ControllerBase

Controller to respond to new ellipse requests and turn them into NewShapeCommand


Field Summary
 
Fields inherited from class org.vectomatic.client.rep.controller.ControllerBase
_app
 
Constructor Summary
NewEllipseController(RepApplication app)
           
 
Method Summary
 void activate(DrawingView view)
           
 void deactivate(DrawingView view)
           
 MouseControllerButton getButton()
           
 void mouseDown(DrawingView view, Point p, int modifiers)
           
 void mouseMove(DrawingView view, Point p, int modifiers)
           
 void mouseUp(DrawingView view, Point p, int modifiers)
           
 void render(DrawingView view)
           
 
Methods inherited from class org.vectomatic.client.rep.controller.ControllerBase
keyDown, keyPress, keyUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewEllipseController

public NewEllipseController(RepApplication app)
Method Detail

getButton

public MouseControllerButton getButton()

render

public void render(DrawingView view)
Specified by:
render in interface IController
Overrides:
render in class ControllerBase

activate

public void activate(DrawingView view)
Specified by:
activate in interface IController
Overrides:
activate in class ControllerBase

mouseDown

public void mouseDown(DrawingView view,
                      Point p,
                      int modifiers)
Specified by:
mouseDown in interface IController
Overrides:
mouseDown in class ControllerBase

mouseMove

public void mouseMove(DrawingView view,
                      Point p,
                      int modifiers)
Specified by:
mouseMove in interface IController
Overrides:
mouseMove in class ControllerBase

mouseUp

public void mouseUp(DrawingView view,
                    Point p,
                    int modifiers)
Specified by:
mouseUp in interface IController
Overrides:
mouseUp in class ControllerBase

deactivate

public void deactivate(DrawingView view)
Specified by:
deactivate in interface IController
Overrides:
deactivate in class ControllerBase


Copyright © 2010. All Rights Reserved.