artofillusion.ui
Class GenericTool

java.lang.Object
  extended by artofillusion.ui.EditingTool
      extended by artofillusion.ui.GenericTool

public class GenericTool
extends EditingTool

GenericTool is an EditingTool which performs no operations. It is generally used simply as a button, for allowing the user to select various options. The constructor takes the name of an image file, which is used as the tool's icon.


Field Summary
 
Fields inherited from class artofillusion.ui.EditingTool
ALL_CLICKS, HANDLE_CLICKS, OBJECT_CLICKS
 
Constructor Summary
GenericTool(EditingWindow fr, java.lang.String imageName, java.lang.String tipText)
           
 
Method Summary
 void activate()
           
 java.lang.String getToolTipText()
          Get the tool tip text to display for this tool (or null if it does not have a tool tip).
 int whichClicks()
          Get what types of mouse clicks this tool wants to receive.
 
Methods inherited from class artofillusion.ui.EditingTool
allowSelectionChanges, deactivate, drawOverlay, getButton, getWindow, hilightSelection, iconDoubleClicked, isEditable, keyPressed, mouseDragged, mouseMoved, mousePressed, mousePressedOnHandle, mousePressedOnObject, mouseReleased
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTool

public GenericTool(EditingWindow fr,
                   java.lang.String imageName,
                   java.lang.String tipText)
Method Detail

activate

public void activate()
Overrides:
activate in class EditingTool

whichClicks

public int whichClicks()
Description copied from class: EditingTool
Get what types of mouse clicks this tool wants to receive. This should be a sum of the constants ALL_CLICKS, OBJECT_CLICKS, or HANDLE_CLICKS.

Overrides:
whichClicks in class EditingTool

getToolTipText

public java.lang.String getToolTipText()
Description copied from class: EditingTool
Get the tool tip text to display for this tool (or null if it does not have a tool tip).

Overrides:
getToolTipText in class EditingTool


Copyright © 1999-2011 by Peter Eastman.