Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.handles
Class ResizableHandleKit

java.lang.Object
  extended by
org.eclipse.gef.handles.ResizableHandleKit

public class ResizableHandleKit
extends java.lang.Object

A set of utility methods to create Handles for the common locations on a figure's bounds.

See Also:
Handle

Constructor Summary
ResizableHandleKit ()
           
 
Method Summary
static void addHandle ( GraphicalEditPart part, java.util.List handles, int direction)
          Adds a single handle in the given direction to the given List.
static void addHandle ( GraphicalEditPart part, java.util.List handles, int direction, DragTracker tracker, Cursor cursor)
          Adds a single handle in the given direction to the given List with the given DragTracker
static void addHandles ( GraphicalEditPart part, java.util.List handles)
          Fills the given List with handles at each corner and the north, south, east, and west of the GraphicalEditPart.
static void addMoveHandle ( GraphicalEditPart f, java.util.List handles)
          Fills the given List with move borders at each side of a figure.
static void addMoveHandle ( GraphicalEditPart f, java.util.List handles, DragTracker tracker, Cursor cursor)
          Fills the given List with move borders with the given DragTracker at each side of a figure.
static  Handle moveHandle ( GraphicalEditPart owner)
          Returns a new MoveHandle with the given owner.
static  Handle moveHandle ( GraphicalEditPart owner, DragTracker tracker, Cursor cursor)
          Returns a new MoveHandle with the given owner and DragTracker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizableHandleKit

public ResizableHandleKit()
Method Detail

addHandle

public static void addHandle(
GraphicalEditPart part,
                             java.util.List handles,
                             int direction)
Adds a single handle in the given direction to the given List.

Parameters:
part - the owner GraphicalEditPart of the handle
handles - the List to add the handle to
direction - the integer constant from PositionConstants that refers to the handle direction

addHandle

public static void addHandle(
GraphicalEditPart part,
                             java.util.List handles,
                             int direction,
                             
DragTracker tracker,
                             Cursor cursor)
Adds a single handle in the given direction to the given List with the given DragTracker

Parameters:
tracker - the DragTracker to assign to this handle
part - the owner GraphicalEditPart of the handle
handles - the List to add the handle to
direction - the integer constant from PositionConstants that refers to the handle direction
cursor - the Cursor to use when hovering over this handle

addHandles

public static void addHandles(
GraphicalEditPart part,
                              java.util.List handles)
Fills the given List with handles at each corner and the north, south, east, and west of the GraphicalEditPart.

Parameters:
part - the owner GraphicalEditPart of the handles
handles - the List to add the handles to

addMoveHandle

public static void addMoveHandle(
GraphicalEditPart f,
                                 java.util.List handles)
Fills the given List with move borders at each side of a figure.

Parameters:
f - the GraphicalEditPart thatis the owner of the handles
handles - the List to add the handles to

addMoveHandle

public static void addMoveHandle(
GraphicalEditPart f,
                                 java.util.List handles,
                                 
DragTracker tracker,
                                 Cursor cursor)
Fills the given List with move borders with the given DragTracker at each side of a figure.

Parameters:
tracker - the DragTracker to assign to this handle
f - the GraphicalEditPart thatis the owner of the handles
handles - the List to add the handles to
cursor - the Cursor to use when hovering over this handle

moveHandle

public static 
Handle moveHandle(
GraphicalEditPart owner)
Returns a new MoveHandle with the given owner.

Parameters:
owner - the GraphicalEditPart that is the owner of the new MoveHandle
Returns:
the new MoveHandle

moveHandle

public static 
Handle moveHandle(
GraphicalEditPart owner,
                                
DragTracker tracker,
                                Cursor cursor)
Returns a new MoveHandle with the given owner and DragTracker.

Parameters:
tracker - the DragTracker to assign to this handle
owner - the GraphicalEditPart that is the owner of the new MoveHandle
cursor - the Cursor to use when hovering over this handle
Returns:
the new MoveHandle

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire