org.vectomatic.client.rep.controller
Class ControllerBase

java.lang.Object
  extended by org.vectomatic.client.rep.controller.ControllerBase
All Implemented Interfaces:
IController
Direct Known Subclasses:
CopyController, CutController, DeleteController, EditPathController, EditPolylineController, ExportController, GroupController, LineWidthController, NewEllipseController, NewPathController, NewPolylineController, NewRectController, PasteController, PickColorController, RedoController, RepresentationController, ResizeController, SelectShapeController, StyleController, UndoController, UngroupController

public class ControllerBase
extends Object
implements IController

Base class for IController implementations

Author:
Lukas Laag

Field Summary
protected  RepApplication _app
           
 
Constructor Summary
ControllerBase(RepApplication app)
           
 
Method Summary
 void activate(DrawingView view)
           
 void deactivate(DrawingView view)
           
 void keyDown(DrawingView view, char keyCode, int modifiers)
           
 void keyPress(DrawingView view, char keyCode, int modifiers)
           
 void keyUp(DrawingView view, char keyCode, int modifiers)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_app

protected RepApplication _app
Constructor Detail

ControllerBase

public ControllerBase(RepApplication app)
Method Detail

activate

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

deactivate

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

render

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

keyDown

public void keyDown(DrawingView view,
                    char keyCode,
                    int modifiers)
Specified by:
keyDown in interface IController

keyPress

public void keyPress(DrawingView view,
                     char keyCode,
                     int modifiers)
Specified by:
keyPress in interface IController

keyUp

public void keyUp(DrawingView view,
                  char keyCode,
                  int modifiers)
Specified by:
keyUp in interface IController

mouseDown

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

mouseMove

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

mouseUp

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


Copyright © 2010. All Rights Reserved.