BlueSpray - Help
© SchoonerTurtles, Inc. 2012-2015

Introduction
Contents
Getting Started
Download
Navigating
Tutorials
Scripting
Advanced
About

Class STTools

Extends STBase

ReturnsDefaultFunctionThrows
int 0 GetNumTools()  
STTool null GetTool(int Index)  
boolean false MouseDragged(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception
boolean false MouseMoved(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception
boolean false MousePressed(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception
boolean false MouseReleased(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception
  Paint(STItem ItemClickedIn,STTool ToolIndex,STView TheView) Exception

Object Functions


int GetNumTools()  


STTool GetTool(int Index)  


boolean MouseDragged(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception

Response to the mouse being dragged while it is being held down.

Parameters:
    ItemClickedIn - The item clicked on with the tool
    ToolIndex - Index to the selected tool in this object.
    TheView - The view containing the tool
    TheEvent - The event that trigged this call.
Returns: - true if the event was used by the tool, false otherwise.
Throws: Exception


boolean MouseMoved(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception

Override to take action when the mouse is moved over items with the
tool without being pressed. This typically is just displaying the
appropriate cursor.

Parameters:
    ItemClickedIn - The item clicked on with the tool
    ToolIndex - Index to the selected tool in this object.
    TheView - The view containing the tool
    TheEvent - The event that trigged this call.
Returns: - true if the event was used by the tool, false otherwise.
Throws: Exception


boolean MousePressed(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception

Override to handle the tool being pressed down (with the mouse)in an
item container. The tool should take action needed such as selecting
items being clicked on and repainting the ProjectTree appropriately.
The tool will do any painting until the next call to Paint().

Parameters:
    ItemClickedIn - The item clicked on with the tool
    ToolIndex - Index to the selected tool in this object.
    TheView - The view containing the tool
    TheEvent - The event that trigged this call.
Returns: - true if the event was used by the tool, false otherwise.
Throws: Exception


boolean MouseReleased(STItem ItemClickedIn,STTool ToolIndex,STView TheView,MouseEvent TheEvent) Exception

Respond to the mouse being released while the tool was selected.

Parameters:
    ItemClickedIn - The item clicked on with the tool
    ToolIndex - Index to the selected tool in this object.
    TheView - The view containing the tool
    TheEvent - The event that trigged this call.
Returns: - true if the event was used by the tool, false otherwise.
Throws: Exception


Paint(STItem ItemClickedIn,STTool ToolIndex,STView TheView) Exception

Allows the tool to paint into the container it is being used in. This cGetSupportedan be
used to draw lines for distances being measured or boxes for selections.

Parameters:
    ItemClickedIn - The item clicked on with the tool
    ToolIndex - Index to the selected tool in this object.
    TheView - The view containing the tool
    TheEvent - The event that trigged this call.
Returns: - true if the event was used by the tool, false otherwise.
Throws: Exception