artofillusion.view
Class ViewerScaleControl

java.lang.Object
  extended by artofillusion.view.ViewerScaleControl
All Implemented Interfaces:
ViewerControl

public class ViewerScaleControl
extends java.lang.Object
implements ViewerControl

This is a ViewerControl for adjusting the scale of the view.


Constructor Summary
ViewerScaleControl()
           
 
Method Summary
 Widget createWidget(ViewerCanvas view)
          This is invoked each time a new ViewerCanvas is created.
 java.lang.String getName()
          Get the name of this ViewerControl, as it should be displayed in the user interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerScaleControl

public ViewerScaleControl()
Method Detail

createWidget

public Widget createWidget(ViewerCanvas view)
Description copied from interface: ViewerControl
This is invoked each time a new ViewerCanvas is created. It should create a Widget which is then added to the canvas' toolbar.

It is permitted for this method to return null. This allows a ViewerControl to only add Widgets to particular types of ViewerCanvases.

Specified by:
createWidget in interface ViewerControl

getName

public java.lang.String getName()
Description copied from interface: ViewerControl
Get the name of this ViewerControl, as it should be displayed in the user interface.

Specified by:
getName in interface ViewerControl


Copyright © 1999-2011 by Peter Eastman.