artofillusion.ui
Interface Manipulator

All Known Implementing Classes:
Compound3DManipulator, NinePointManipulator

public interface Manipulator

A Manipulator is a class which presents a user interface in a ViewerCanvas. It is typically used by an EditingTool.


Method Summary
 void draw(ViewerCanvas view, BoundingBox selectionBounds)
          Draw the manipulator's user interface into the canvas.
 void mouseDragged(WidgetMouseEvent ev, ViewerCanvas view)
          Respond to mouse drags in the canvas.
 boolean mousePressed(WidgetMouseEvent ev, ViewerCanvas view, BoundingBox selectionBounds)
          Respond to mouse presses in the canvas.
 void mouseReleased(WidgetMouseEvent ev, ViewerCanvas view)
          Respond to mouse releases in the canvas.
 

Method Detail

draw

void draw(ViewerCanvas view,
          BoundingBox selectionBounds)
Draw the manipulator's user interface into the canvas.

Parameters:
view - the canvas this manipulator is displayed in
selectionBounds - a bounding box containing everything that is selected in the canvas

mousePressed

boolean mousePressed(WidgetMouseEvent ev,
                     ViewerCanvas view,
                     BoundingBox selectionBounds)
Respond to mouse presses in the canvas.

Parameters:
ev - the event which has occurred
view - the canvas this manipulator is displayed in
selectionBounds - a bounding box containing everything that is selected in the canvas
Returns:
true if the manipulator has handled the event, false otherwise

mouseDragged

void mouseDragged(WidgetMouseEvent ev,
                  ViewerCanvas view)
Respond to mouse drags in the canvas.

Parameters:
ev - the event which has occurred
view - the canvas this manipulator is displayed in

mouseReleased

void mouseReleased(WidgetMouseEvent ev,
                   ViewerCanvas view)
Respond to mouse releases in the canvas.

Parameters:
ev - the event which has occurred
view - the canvas this manipulator is displayed in


Copyright © 1999-2011 by Peter Eastman.