Class GraphicalFeedbackChildEditPolicy
java.lang.Object
org.eclipse.gef.editpolicies.AbstractEditPolicy
org.eclipse.gef.editpolicies.GraphicalEditPolicy
org.eclipse.gef.editpolicies.SelectionEditPolicy
org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy
org.eclipse.gef.editpolicies.NonResizableEditPolicy
org.eclipse.gef.editpolicies.ResizableEditPolicy
org.csstudio.opibuilder.editpolicies.GraphicalFeedbackChildEditPolicy
- All Implemented Interfaces:
IAdaptable
,org.eclipse.gef.EditPolicy
,org.eclipse.gef.RequestConstants
public final class GraphicalFeedbackChildEditPolicy
extends org.eclipse.gef.editpolicies.ResizableEditPolicy
Provides support for selecting, positioning, and resizing an editpart. By default, selection is indicated via eight
square handles along the editpart's figure, and a rectangular handle that outlines the editpart with a 1-pixel black
line. The eight square handles will resize the current selection in the eight primary directions. The rectangular
handle will drag the current selection using a
DragEditPartsTracker
.
By default, during feedback, a rectangle filled using XOR and outlined with dashes is drawn. This feedback can be
tailored by contributing a IGraphicalFeedbackFactory
via the extension point
org.csstudio.sds.graphicalFeedbackFactories.
-
Field Summary
Fields inherited from class org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy
handles
Fields inherited from interface org.eclipse.gef.EditPolicy
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
Fields inherited from interface org.eclipse.gef.RequestConstants
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 Summary
ModifierConstructorDescriptionprotected
GraphicalFeedbackChildEditPolicy
(AbstractBaseEditPart child, IGraphicalFeedbackFactory feedbackFactory) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.draw2d.IFigure
protected List<? extends org.eclipse.gef.Handle>
protected void
showChangeBoundsFeedback
(org.eclipse.gef.requests.ChangeBoundsRequest request) Shows or updates feedback for a change bounds request.Methods inherited from class org.eclipse.gef.editpolicies.ResizableEditPolicy
createResizeHandle, eraseSourceFeedback, getCommand, getResizeCommand, getResizeDirections, getResizeTracker, setResizeDirections, showSourceFeedback, understandsRequest
Methods inherited from class org.eclipse.gef.editpolicies.NonResizableEditPolicy
createDragHandle, createMoveHandle, deactivate, eraseChangeBoundsFeedback, getAlignCommand, getDragSourceFeedbackFigure, getDragTracker, getInitialFeedbackBounds, getMoveCommand, getOrphanCommand, getSelectTracker, hideFocus, isDragAllowed, setDragAllowed, showFocus
Methods inherited from class org.eclipse.gef.editpolicies.SelectionHandlesEditPolicy
addSelectionHandles, getAdapter, hideSelection, removeSelectionHandles, showSelection
Methods inherited from class org.eclipse.gef.editpolicies.SelectionEditPolicy
activate, addSelectionListener, getTargetEditPart, removeSelectionListener, setFocus, setSelectedState, showPrimarySelection
Methods inherited from class org.eclipse.gef.editpolicies.GraphicalEditPolicy
addFeedback, getFeedbackLayer, getHost, getHostFigure, getLayer, removeFeedback
Methods inherited from class org.eclipse.gef.editpolicies.AbstractEditPolicy
debugFeedback, eraseTargetFeedback, setHost, showTargetFeedback, toString
-
Constructor Details
-
GraphicalFeedbackChildEditPolicy
protected GraphicalFeedbackChildEditPolicy(AbstractBaseEditPart child, IGraphicalFeedbackFactory feedbackFactory) Standard constructor.- Parameters:
child
- An edit part.
-
-
Method Details
-
createDragSourceFeedbackFigure
protected org.eclipse.draw2d.IFigure createDragSourceFeedbackFigure()- Overrides:
createDragSourceFeedbackFigure
in classorg.eclipse.gef.editpolicies.NonResizableEditPolicy
-
showChangeBoundsFeedback
protected void showChangeBoundsFeedback(org.eclipse.gef.requests.ChangeBoundsRequest request) Shows or updates feedback for a change bounds request.- Overrides:
showChangeBoundsFeedback
in classorg.eclipse.gef.editpolicies.NonResizableEditPolicy
- Parameters:
request
- the request
-
createSelectionHandles
- Overrides:
createSelectionHandles
in classorg.eclipse.gef.editpolicies.ResizableEditPolicy
-