Methods in
org.eclipse.gef with parameters of type
Request
|
int
|
SnapToHelper.
snapPoint
(
Request request,
int snapDirections,
PrecisionPoint where,
PrecisionPoint result)
Applies a snapping correction to the given result. |
int
|
SnapToHelper.
snapPoint
(
Request request,
int snapLocations,
PrecisionRectangle[] rects,
PrecisionPoint result)
A convenience method for snapping a Point based on an array of rectangles. |
int
|
SnapToHelper.
snapRectangle
(
Request request,
int snapOrientation,
PrecisionRectangle[] baseRects,
PrecisionRectangle result)
A convenience method for snapping a Rectangle based on one or more rectangles. |
abstract int
|
SnapToHelper.
snapRectangle
(
Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
Applies a snap correction to a Rectangle based on a given Rectangle. |
int
|
SnapToGuides.
snapRectangle
(
Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
|
int
|
SnapToGrid.
snapRectangle
(
Request request,
int snapLocations,
PrecisionRectangle rect,
PrecisionRectangle result)
|
int
|
SnapToGeometry.
snapRectangle
(
Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
|
ConnectionAnchor
|
NodeEditPart.
getSourceConnectionAnchor
(
Request request)
Returns the source ConnectionAnchor for the specified Request. |
ConnectionAnchor
|
NodeEditPart.
getTargetConnectionAnchor
(
Request request)
Returns the target ConnectionAnchor for the specified Request. |
void
|
EditPolicy.
eraseSourceFeedback
(
Request request)
Erases source feedback based on the given Request . |
void
|
EditPolicy.
eraseTargetFeedback
(
Request request)
Erases target feedback based on the given Request . |
Command
|
EditPolicy.
getCommand
(
Request request)
Returns the Command contribution for the given Request , or
null . |
EditPart
|
EditPolicy.
getTargetEditPart
(
Request request)
Returns null or the appropriate EditPart for the specified
Request . |
void
|
EditPolicy.
showSourceFeedback
(
Request request)
Shows or updates source feedback for the specified Request . |
void
|
EditPolicy.
showTargetFeedback
(
Request request)
Shows or updates target feedback for the specified Request . |
boolean
|
EditPolicy.
understandsRequest
(
Request request)
Returns true if this EditPolicy understand the specified request.
|
void
|
EditPart.
eraseSourceFeedback
(
Request request)
Erases source feedback for the specified
Request . |
void
|
EditPart.
eraseTargetFeedback
(
Request request)
Erases target feedback for the specified
Request . |
Command
|
EditPart.
getCommand
(
Request request)
Returns the
Command to perform the specified Request or null . |
DragTracker
|
EditPart.
getDragTracker
(
Request request)
Returns a
DragTracker for dragging this EditPart. |
EditPart
|
EditPart.
getTargetEditPart
(
Request request)
Return the EditPart that should be used as the target for the
specified Request . |
void
|
EditPart.
performRequest
(
Request request)
Performs the specified Request. |
void
|
EditPart.
showSourceFeedback
(
Request request)
Shows or updates source feedback for the given request. |
void
|
EditPart.
showTargetFeedback
(
Request request)
Shows or updates target feedback for the given request. |
boolean
|
EditPart.
understandsRequest
(
Request request)
Used to filter EditParts out of the current selection. |
int
|
CompoundSnapToHelper.
snapRectangle
(
Request request,
int snapOrientation,
PrecisionRectangle baseRect,
PrecisionRectangle result)
|
Methods in
org.eclipse.gef.editpolicies with parameters of type
Request
|
void
|
TreeContainerEditPolicy.
eraseTargetFeedback
(
Request req)
|
Command
|
TreeContainerEditPolicy.
getCommand
(
Request req)
|
EditPart
|
TreeContainerEditPolicy.
getTargetEditPart
(
Request req)
Returns the host EditPart when appropriate. |
void
|
TreeContainerEditPolicy.
showTargetFeedback
(
Request req)
|
void
|
SnapFeedbackPolicy.
eraseTargetFeedback
(
Request request)
|
void
|
SnapFeedbackPolicy.
showTargetFeedback
(
Request req)
|
EditPart
|
SelectionEditPolicy.
getTargetEditPart
(
Request request)
|
void
|
ResizableEditPolicy.
eraseSourceFeedback
(
Request request)
Dispatches erase requests to more specific methods. |
Command
|
ResizableEditPolicy.
getCommand
(
Request request)
|
void
|
ResizableEditPolicy.
showSourceFeedback
(
Request request)
|
boolean
|
ResizableEditPolicy.
understandsRequest
(
Request request)
|
protected
Command
|
OrderedLayoutEditPolicy.
getAddCommand
(
Request req)
This method is overridden from the superclass to calculate the index at which
the children should be added. |
protected abstract
EditPart
|
OrderedLayoutEditPolicy.
getInsertionReference
(
Request request)
Calculates a reference EditPart using the specified
Request . |
protected
Command
|
OrderedLayoutEditPolicy.
getMoveChildrenCommand
(
Request request)
A move is interpreted here as a change in order of the children. |
void
|
NonResizableEditPolicy.
eraseSourceFeedback
(
Request request)
|
Command
|
NonResizableEditPolicy.
getCommand
(
Request request)
|
protected
Command
|
NonResizableEditPolicy.
getOrphanCommand
(
Request req)
Subclasses may override to contribute to the orphan request. |
void
|
NonResizableEditPolicy.
showSourceFeedback
(
Request request)
Calls other methods as appropriate. |
boolean
|
NonResizableEditPolicy.
understandsRequest
(
Request request)
Returns true for move, align, add, and orphan request types. |
protected void
|
LayoutEditPolicy.
eraseLayoutTargetFeedback
(
Request request)
Erases target layout feedback. |
protected void
|
LayoutEditPolicy.
eraseSizeOnDropFeedback
(
Request request)
Erases size-on-drop feedback used during creation. |
void
|
LayoutEditPolicy.
eraseTargetFeedback
(
Request request)
Calls two more specific methods depending on the Request. |
protected
Command
|
LayoutEditPolicy.
getAddCommand
(
Request request)
Override to return the Command to perform an
ADD . |
Command
|
LayoutEditPolicy.
getCommand
(
Request request)
Factors incoming requests into various specific methods. |
protected
Command
|
LayoutEditPolicy.
getDeleteDependantCommand
(
Request request)
Returns the Command to delete a child. |
protected abstract
Command
|
LayoutEditPolicy.
getMoveChildrenCommand
(
Request request)
Returns the Command to move a group of children. |
protected
Command
|
LayoutEditPolicy.
getOrphanChildrenCommand
(
Request request)
Returns the Command to orphan a group of children. |
EditPart
|
LayoutEditPolicy.
getTargetEditPart
(
Request request)
Returns the host if the Request is an ADD, MOVE, or CREATE. |
protected void
|
LayoutEditPolicy.
showLayoutTargetFeedback
(
Request request)
Shows target layout feedback. |
void
|
LayoutEditPolicy.
showTargetFeedback
(
Request request)
Factors feedback requests into two more specific methods. |
protected
Connection
|
GraphicalNodeEditPolicy.
createDummyConnection
(
Request req)
Returns a connection to be used as feeback during creates. |
void
|
GraphicalNodeEditPolicy.
eraseSourceFeedback
(
Request request)
Calls
GraphicalNodeEditPolicy.eraseCreationFeedback(CreateConnectionRequest) when appropriate. |
void
|
GraphicalNodeEditPolicy.
eraseTargetFeedback
(
Request request)
Calls
GraphicalNodeEditPolicy.eraseTargetConnectionFeedback(DropRequest) when appropriate. |
Command
|
GraphicalNodeEditPolicy.
getCommand
(
Request request)
Factors the request into one of four abstract methods. |
EditPart
|
GraphicalNodeEditPolicy.
getTargetEditPart
(
Request request)
Returns the host for the appropriate Requests . |
void
|
GraphicalNodeEditPolicy.
showSourceFeedback
(
Request request)
calls
GraphicalNodeEditPolicy.showCreationFeedback(CreateConnectionRequest) when appropriate. |
void
|
GraphicalNodeEditPolicy.
showTargetFeedback
(
Request request)
Calls
GraphicalNodeEditPolicy.showTargetConnectionFeedback(DropRequest) when appropriate. |
protected void
|
FlowLayoutEditPolicy.
eraseLayoutTargetFeedback
(
Request request)
|
protected int
|
FlowLayoutEditPolicy.
getFeedbackIndexFor
(
Request request)
|
protected
EditPart
|
FlowLayoutEditPolicy.
getInsertionReference
(
Request request)
|
protected void
|
FlowLayoutEditPolicy.
showLayoutTargetFeedback
(
Request request)
Shows an insertion line if there is one or more current children. |
void
|
DirectEditPolicy.
eraseSourceFeedback
(
Request request)
|
Command
|
DirectEditPolicy.
getCommand
(
Request request)
|
void
|
DirectEditPolicy.
showSourceFeedback
(
Request request)
|
boolean
|
DirectEditPolicy.
understandsRequest
(
Request request)
Returns true for
RequestConstants.REQ_DIRECT_EDIT . |
Command
|
ContainerEditPolicy.
getCommand
(
Request request)
Overridden to check for add, create, and orphan. |
protected
Command
|
ConstrainedLayoutEditPolicy.
getAddCommand
(
Request generic)
Overrides getAddCommand() to generate the proper constraint for each child
being added. |
Command
|
ConstrainedLayoutEditPolicy.
getCommand
(
Request request)
Factors out RESIZE and ALIGN requests, otherwise calls super . |
protected
Command
|
ConstrainedLayoutEditPolicy.
getMoveChildrenCommand
(
Request request)
Returns the Command to move a group of children. |
void
|
ConnectionEndpointEditPolicy.
eraseSourceFeedback
(
Request request)
|
Command
|
ConnectionEndpointEditPolicy.
getCommand
(
Request request)
|
void
|
ConnectionEndpointEditPolicy.
showSourceFeedback
(
Request request)
|
Command
|
ConnectionEditPolicy.
getCommand
(
Request request)
|
Command
|
ComponentEditPolicy.
getCommand
(
Request request)
Factors the incoming Request into ORPHANs and DELETEs. |
void
|
BendpointEditPolicy.
eraseSourceFeedback
(
Request request)
|
Command
|
BendpointEditPolicy.
getCommand
(
Request request)
Factors the Request into either a MOVE, a DELETE, or a CREATE of a bendpoint. |
void
|
BendpointEditPolicy.
showSourceFeedback
(
Request request)
Shows feedback when appropriate. |
void
|
AbstractEditPolicy.
eraseSourceFeedback
(
Request request)
Does nothing by default. |
void
|
AbstractEditPolicy.
eraseTargetFeedback
(
Request request)
Does nothing by default. |
Command
|
AbstractEditPolicy.
getCommand
(
Request request)
Returns null by default. |
EditPart
|
AbstractEditPolicy.
getTargetEditPart
(
Request request)
Returns null by default. |
void
|
AbstractEditPolicy.
showSourceFeedback
(
Request request)
Does nothing by default. |
void
|
AbstractEditPolicy.
showTargetFeedback
(
Request request)
Does nothing by default. |
boolean
|
AbstractEditPolicy.
understandsRequest
(
Request req)
Returns false by default. |
Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.