Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.ResizeHandle

    Object
       |
       +--draw2d.Figure
             |
             +--draw2d.Rectangle
                   |
                   +--draw2d.ResizeHandle

class draw2d.ResizeHandle
extends draw2d.Rectangle

Defined in ResizeHandle.js
Version: 0.9.14
Author: Andreas Herz

Constructor Summary
`draw2d.ResizeHandle ( workflow, type)`

Method Summary
`Object` | `getSnapToDirection()`
`boolean` | `onDragstart( x, y)` Will be called if the drag and drop action beginns.
`void` | `onKeyDown(<int> keyCode, ctrl)` This method will be called from the framework if the objects is selected and the user press any key.
`void` | `setCanDrag( <boolean> flag)` Switch on/off the drag drop behaviour of this object
`void` | `setPosition( <int> xPos , <int> yPos )` Set the position of the object. The ResizeHandle overrides the Figure.setPosition method.

Methods inherited from class draw2d.Rectangle
`setBackgroundColor, getBackgroundColor, setColor, getColor, getWidth, getHeight, setDimension, setLineWidth, getLineWidth`

Methods inherited from class draw2d.Figure
`getProperties, getProperty, setProperty, getId, getWorkflow, getParent, getZOrder, setZOrder, hasFixedPosition, getMinWidth, getMinHeight, setBorder, getContextMenu, onDoubleClick, onMouseEnter, onMouseLeave, setAlpha, isResizeable, setResizeable, isSelectable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getY, getX, getAbsoluteY, getAbsoluteX, getPosition, isOver, attachMoveListener, detachMoveListener`

Constructor Detail

### draw2d.ResizeHandle

    draw2d.ResizeHandle( workflow, type)

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getSnapToDirection

    Object getSnapToDirection()

### onDragstart

    boolean onDragstart( x, y)

Will be called if the drag and drop action beginns. You can return [false] if you want avoid the that the figure can be move.

### onKeyDown

    void onKeyDown(<int> keyCode, ctrl)

This method will be called from the framework if the objects is selected and the user press any key. Sub class can override this method to implement their own stuff.

Parameters:

`keyCode` - The code of the pressed key

### setCanDrag

    void setCanDrag( <boolean> flag)

Switch on/off the drag drop behaviour of this object

Parameters:

`flag` - The new drag drop indicator

### setPosition

    void setPosition( <int> xPos , <int> yPos )

Set the position of the object.
The ResizeHandle overrides the Figure.setPosition method. The base class updates the resize handles during the update of the Dimension/Position. This is not neccessary for the ResizeHandles. Performance issue.

Parameters:

`xPos` - The new x coordinate of the figure

`yPos` - The new y coordinate of the figure

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008