public class ScalableFreeformRootEditPart extends FreeformGraphicalRootEditPart
LayeredPane
above the printable layers. This pane is identified with the
LayerConstants.SCALABLE_LAYERS
ID. This root also
provides a ZoomManager, for optional use with the
ZoomComboContributionItem
The structure of layers (top-to-bottom) for this root is:
Root Freeform Layered Pane | |||
├ | Guide Layer | ||
├ | Feedback Layer | ||
├ | Handle Layer | ||
└ | Scalable Layers | (ScalableFreeformLayeredPane ) |
|
├ | Scaled Feedback Layer | ||
├ | Printable Layers | ||
├ Connection Layer | |||
└ Primary Layer | |||
└ | Grid Layer |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider
AbstractEditPart.EditPolicyIterator
LayerManager.Helper
figure, sourceConnections, targetConnections
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYER
ID
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
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 |
---|
ScalableFreeformRootEditPart()
Constructor for ScalableFreeformRootEditPart
|
Modifier and Type | Method and Description |
---|---|
protected void |
createLayers(LayeredPane layeredPane)
Creates the top-most set of layers on the given layered pane.
|
protected ScalableFreeformLayeredPane |
createScaledLayers()
Creates a layered pane and the layers that should be scaled.
|
protected ZoomManager |
createZoomManager(ScalableFigure scalableFigure,
Viewport viewport)
Responsible of creating a
ZoomManager to be used by this
ScalableRootEditPart . |
IFigure |
getLayer(java.lang.Object key)
Returns the layer indicated by the key.
|
protected LayeredPane |
getScaledLayers()
Returns the scalable layers of this EditPart
|
ZoomManager |
getZoomManager()
Returns the zoomManager.
|
protected void |
register()
Registers itself in the viewer's various registries.
|
protected void |
unregister()
Undoes any registration performed by
AbstractEditPart.register() . |
createFigure, createGridLayer, createPrintableLayers, getAdapter, getContentPane, getDragTracker, getModel, getPrintableLayers, refreshGridLayer
createEditPolicies, getCommand, getContents, getRoot, getViewer, refreshChildren, setContents, setViewer
activate, addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getFigure, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, isSelectable, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisuals
activateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getChildren, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getModelChildren, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, performRequest, refreshVisuals, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregisterAccessibility, unregisterModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getEditPolicy, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
public ScalableFreeformRootEditPart()
protected ZoomManager createZoomManager(ScalableFigure scalableFigure, Viewport viewport)
ZoomManager
to be used by this
ScalableRootEditPart
.ZoomManager
bound to the given
ScalableFigure
and Viewport
.protected void createLayers(LayeredPane layeredPane)
FreeformGraphicalRootEditPart
createLayers
in class FreeformGraphicalRootEditPart
layeredPane
- the parent for the created layersFreeformGraphicalRootEditPart.createLayers(LayeredPane)
protected ScalableFreeformLayeredPane createScaledLayers()
public IFigure getLayer(java.lang.Object key)
FreeformGraphicalRootEditPart
getLayer
in interface LayerManager
getLayer
in class FreeformGraphicalRootEditPart
key
- ID of the Layernull
if it doesn't existFreeformGraphicalRootEditPart.getLayer(Object)
protected LayeredPane getScaledLayers()
public ZoomManager getZoomManager()
protected void register()
AbstractEditPart
register
in class FreeformGraphicalRootEditPart
AbstractEditPart.register()
protected void unregister()
AbstractEditPart
AbstractEditPart.register()
. The provided
base classes will correctly unregister their visuals.unregister
in class FreeformGraphicalRootEditPart
AbstractEditPart.unregister()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.