org.objectweb.fractal.gui.graph.model
Interface Tools

All Known Implementing Classes:
BasicTools

public interface Tools

A model for graph editing tools.


Field Summary
static int BIND
          The binding tool.
static int MOVE
          The move tool.
static int SELECT
          The selection tool.
static int ZOOM_IN
          The zoom in tool.
static int ZOOM_OUT
          The zoom out tool.
 
Method Summary
 Interface getBindInterface()
          Returns the client interface that will be bound by the BIND tool.
 int getTool()
          Returns the currently selected tool.
 void setBindInterface(Interface i)
          Sets the client interface that will be bound by the BIND tool.
 void setTool(int tool)
          Sets the currently selected tool.
 

Field Detail

SELECT

public static final int SELECT
The selection tool. This tool can be used to select, move and resize components.

See Also:
Constant Field Values

BIND

public static final int BIND
The binding tool. This tool can be used to create and remove bindings between components.

See Also:
Constant Field Values

MOVE

public static final int MOVE
The move tool. This tool can be used to scroll the graph area shown by the display.

See Also:
Constant Field Values

ZOOM_IN

public static final int ZOOM_IN
The zoom in tool. This tool can be used to reduce the graph area shown by the display, i.e. to zoom in.

See Also:
Constant Field Values

ZOOM_OUT

public static final int ZOOM_OUT
The zoom out tool. This tool can be used to increase the graph area shown by the display, i.e. to zoom out.

See Also:
Constant Field Values
Method Detail

getTool

public int getTool()
Returns the currently selected tool.

Returns:
the currently selected tool.
See Also:
setTool(int)

setTool

public void setTool(int tool)
Sets the currently selected tool.

Parameters:
tool - the new selected tool.
See Also:
getTool()

getBindInterface

public Interface getBindInterface()
Returns the client interface that will be bound by the BIND tool.

Returns:
the client interface that will be bound by the BIND tool.
See Also:
setBindInterface(org.objectweb.fractal.gui.model.Interface)

setBindInterface

public void setBindInterface(Interface i)
Sets the client interface that will be bound by the BIND tool.

Parameters:
i - the client interface that will be bound by the BIND tool.
See Also:
getBindInterface()