org.vectomatic.client.rep.controller
Class NewPolylineController

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

public class NewPolylineController
extends ControllerBase

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


Field Summary
 
Fields inherited from class org.vectomatic.client.rep.controller.ControllerBase
_app
 
Constructor Summary
NewPolylineController(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 render(DrawingView view)
           
 
Methods inherited from class org.vectomatic.client.rep.controller.ControllerBase
keyDown, keyPress, keyUp, mouseUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewPolylineController

public NewPolylineController(RepApplication app)
Method Detail

getButton

public MouseControllerButton getButton()

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

render

public void render(DrawingView view)
Specified by:
render in interface IController
Overrides:
render 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.