artofillusion
Class ScaleObjectTool
java.lang.Object
artofillusion.ui.EditingTool
artofillusion.ScaleObjectTool
public class ScaleObjectTool
- extends EditingTool
ScaleObjectTool is an EditingTool used for resizing objects in a scene. For convenience, it also
allows users to move objects by clicking on the object itself rather than on a handle.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScaleObjectTool
public ScaleObjectTool(EditingWindow fr)
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
allowSelectionChanges
public boolean allowSelectionChanges()
- Description copied from class:
EditingTool
- Get whether the selection may be changed while this tool is active. The default implementation
returns true if whichClicks() requests either OBJECT_CLICKS or HANDLE_CLICKS.
- Overrides:
allowSelectionChanges
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
mousePressedOnHandle
public void mousePressedOnHandle(WidgetMouseEvent e,
ViewerCanvas view,
int obj,
int handle)
- Overrides:
mousePressedOnHandle
in class EditingTool
mousePressedOnObject
public void mousePressedOnObject(WidgetMouseEvent e,
ViewerCanvas view,
int obj)
- Overrides:
mousePressedOnObject
in class EditingTool
mouseDraggedMoveOp
public void mouseDraggedMoveOp(WidgetMouseEvent e,
ViewerCanvas view)
mouseDraggedScaleOp
public void mouseDraggedScaleOp(WidgetMouseEvent e,
ViewerCanvas view)
mouseDragged
public void mouseDragged(WidgetMouseEvent e,
ViewerCanvas view)
- Overrides:
mouseDragged
in class EditingTool
mouseReleased
public void mouseReleased(WidgetMouseEvent e,
ViewerCanvas view)
- Overrides:
mouseReleased
in class EditingTool
iconDoubleClicked
public void iconDoubleClicked()
- Overrides:
iconDoubleClicked
in class EditingTool
Copyright © 1999-2011 by Peter Eastman.