public abstract class FlowLayoutEditPolicy extends OrderedLayoutEditPolicy
FlowLayout
. This
EditPolicy knows how to map an COMPONENT_ROLE, CONNECTION_BENDPOINTS_ROLE, CONNECTION_ENDPOINTS_ROLE, CONNECTION_ROLE, CONTAINER_ROLE, DIRECT_EDIT_ROLE, GRAPHICAL_NODE_ROLE, LAYOUT_ROLE, NODE_ROLE, PRIMARY_DRAG_ROLE, SELECTION_FEEDBACK_ROLE, TREE_CONTAINER_ROLE
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
Constructor and Description |
---|
FlowLayoutEditPolicy() |
Modifier and Type | Method and Description |
---|---|
protected void |
eraseLayoutTargetFeedback(Request request)
Erases target layout feedback.
|
protected int |
getFeedbackIndexFor(Request request) |
protected EditPart |
getInsertionReference(Request request)
Calculates a reference
EditPart using the specified
Request . |
protected Polyline |
getLineFeedback()
Lazily creates and returns a
Polyline Figure for use as
feedback. |
protected boolean |
isHorizontal()
Deprecated.
Use
OrderedLayoutEditPolicy.isLayoutHorizontal() instead. |
protected void |
showLayoutTargetFeedback(Request request)
Shows an insertion line if there is one or more current children.
|
createAddCommand, createChildEditPolicy, createMoveChildCommand, getAddCommand, getMoveChildrenCommand, isLayoutHorizontal
activate, createListener, createSizeOnDropFeedback, deactivate, decorateChild, decorateChildren, eraseSizeOnDropFeedback, eraseTargetFeedback, getCloneCommand, getCommand, getCreateCommand, getCreationFeedbackOffset, getDeleteDependantCommand, getLayoutContainer, getLayoutOrigin, getOrphanChildrenCommand, getSizeOnDropFeedback, getSizeOnDropFeedback, getTargetEditPart, setListener, showSizeOnDropFeedback, showTargetFeedback, translateFromAbsoluteToLayoutRelative, translateFromLayoutRelativeToAbsolute, undecorateChild, undecorateChildren
addFeedback, getFeedbackLayer, getHostFigure, getLayer, removeFeedback
debugFeedback, eraseSourceFeedback, getHost, setHost, showSourceFeedback, toString, understandsRequest
protected void eraseLayoutTargetFeedback(Request request)
LayoutEditPolicy
LayoutEditPolicy.showLayoutTargetFeedback(Request)
.eraseLayoutTargetFeedback
in class LayoutEditPolicy
request
- the RequestLayoutEditPolicy.eraseLayoutTargetFeedback(Request)
protected int getFeedbackIndexFor(Request request)
request
- the Requestprotected EditPart getInsertionReference(Request request)
OrderedLayoutEditPolicy
EditPart
using the specified
Request
. The EditPart returned is used to mark the index
coming after that EditPart. null
is used to
indicate the index that comes after no EditPart, that is, it
indicates the very last index.getInsertionReference
in class OrderedLayoutEditPolicy
request
- the Requestnull
or a reference EditPartOrderedLayoutEditPolicy.getInsertionReference(Request)
protected Polyline getLineFeedback()
Polyline
Figure for use as
feedback.protected boolean isHorizontal()
OrderedLayoutEditPolicy.isLayoutHorizontal()
instead.true
if the host's LayoutManager is in a horizontal
orientationprotected void showLayoutTargetFeedback(Request request)
showLayoutTargetFeedback
in class LayoutEditPolicy
request
- the RequestLayoutEditPolicy.showLayoutTargetFeedback(Request)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.