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.DefaultAccessibleAnchorProviderAbstractEditPart.EditPolicyIteratorLayerManager.Helperfigure, sourceConnections, targetConnectionschildren, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAGCONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYERIDSELECTED, SELECTED_NONE, SELECTED_PRIMARYREQ_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, refreshGridLayercreateEditPolicies, getCommand, getContents, getRoot, getViewer, refreshChildren, setContents, setVieweractivate, 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, unregisterVisualsactivateEditPolicies, 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, unregisterModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivate, 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, understandsRequestpublic 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)
FreeformGraphicalRootEditPartcreateLayers in class FreeformGraphicalRootEditPartlayeredPane - the parent for the created layersFreeformGraphicalRootEditPart.createLayers(LayeredPane)protected ScalableFreeformLayeredPane createScaledLayers()
public IFigure getLayer(java.lang.Object key)
FreeformGraphicalRootEditPartgetLayer in interface LayerManagergetLayer in class FreeformGraphicalRootEditPartkey - ID of the Layernull if it doesn't existFreeformGraphicalRootEditPart.getLayer(Object)protected LayeredPane getScaledLayers()
public ZoomManager getZoomManager()
protected void register()
AbstractEditPartregister in class FreeformGraphicalRootEditPartAbstractEditPart.register()protected void unregister()
AbstractEditPartAbstractEditPart.register(). The provided
base classes will correctly unregister their visuals.unregister in class FreeformGraphicalRootEditPartAbstractEditPart.unregister()Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.