Package org.eclipse.gef.editparts
Class ScalableFreeformRootEditPart
java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.SimpleRootEditPart
org.eclipse.gef.editparts.FreeformGraphicalRootEditPart
org.eclipse.gef.editparts.ScalableFreeformRootEditPart
- All Implemented Interfaces:
- IAdaptable,- EditPart,- LayerManager,- GraphicalEditPart,- LayerConstants,- RequestConstants,- RootEditPart
Adds Zoom support to the standard FreeformGraphicalRootEditPart. This root is
 just like its superclass, except it inserts a new 
 
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 | ||
- Since:
- 2.1
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartAbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProviderNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPartAbstractEditPart.EditPolicyIteratorNested classes/interfaces inherited from interface org.eclipse.gef.editparts.LayerManagerLayerManager.Helper
- 
Field SummaryFields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartfigure, sourceConnections, targetConnectionsFields inherited from class org.eclipse.gef.editparts.AbstractEditPartchildren, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAGFields inherited from interface org.eclipse.gef.EditPartSELECTED, SELECTED_NONE, SELECTED_PRIMARYFields inherited from interface org.eclipse.gef.LayerConstantsCONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYERFields inherited from interface org.eclipse.gef.editparts.LayerManagerIDFields inherited from interface org.eclipse.gef.RequestConstantsREQ_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 SummaryConstructorsConstructorDescriptionConstructor for ScalableFreeformRootEditPartScalableFreeformRootEditPart(boolean useScaledGraphics) Constructor which allows to configure if scaled graphics should be used.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcreateLayers(LayeredPane layeredPane) Creates the top-most set of layers on the given layered pane.protected ScalableFreeformLayeredPaneCreates a layered pane and the layers that should be scaled.protected ZoomManagercreateZoomManager(ScalableFigure scalableFigure, Viewport viewport) Responsible of creating aZoomManagerto be used by thisScalableRootEditPart.Returns the layer indicated by the key.protected LayeredPaneReturns the scalable layers of this EditPartReturns the zoomManager.protected voidregister()Registers itself in the viewer's various registries.protected voidUndoes any registration performed byAbstractEditPart.register().Methods inherited from class org.eclipse.gef.editparts.FreeformGraphicalRootEditPartcreateFigure, createGridLayer, createPrintableLayers, getAdapter, getContentPane, getDragTracker, getModel, getPrintableLayers, refreshGridLayerMethods inherited from class org.eclipse.gef.editparts.SimpleRootEditPartcreateEditPolicies, getCommand, getContents, getRoot, getViewer, refreshChildren, setContents, setViewerMethods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartactivate, addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getChildren, getFigure, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, isSelectable, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisualsMethods inherited from class org.eclipse.gef.editparts.AbstractEditPartactivateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getEditPolicy, getEditPolicyIterable, getEditPolicyIterator, getEventListeners, getEventListenersIterable, 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, unregisterModelMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.gef.EditPartactivate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getEditPolicy, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
- 
Constructor Details- 
ScalableFreeformRootEditPartpublic ScalableFreeformRootEditPart()Constructor for ScalableFreeformRootEditPart
- 
ScalableFreeformRootEditPartpublic ScalableFreeformRootEditPart(boolean useScaledGraphics) Constructor which allows to configure if scaled graphics should be used.- Since:
- 3.14
 
 
- 
- 
Method Details- 
createZoomManagerResponsible of creating aZoomManagerto be used by thisScalableRootEditPart.- Returns:
- A new ZoomManagerbound to the givenScalableFigureandViewport.
- Since:
- 3.10
 
- 
createLayersDescription copied from class:FreeformGraphicalRootEditPartCreates the top-most set of layers on the given layered pane.- Overrides:
- createLayersin class- FreeformGraphicalRootEditPart
- Parameters:
- layeredPane- the parent for the created layers
- See Also:
 
- 
createScaledLayersCreates a layered pane and the layers that should be scaled.- Returns:
- a new freeform layered pane containing the scalable layers
 
- 
getLayerDescription copied from class:FreeformGraphicalRootEditPartReturns the layer indicated by the key. Searches all layered panes.- Specified by:
- getLayerin interface- LayerManager
- Overrides:
- getLayerin class- FreeformGraphicalRootEditPart
- Parameters:
- key- ID of the Layer
- Returns:
- The requested layer or nullif it doesn't exist
- See Also:
 
- 
getScaledLayersReturns the scalable layers of this EditPart- Returns:
- LayeredPane
 
- 
getZoomManagerReturns the zoomManager.- Returns:
- ZoomManager
 
- 
registerprotected void register()Description copied from class:AbstractEditPartRegisters itself in the viewer's various registries. If your EditPart has a 1-to-1 relationship with a visual object and a 1-to-1 relationship with a model object, the default implementation should be sufficient.- Overrides:
- registerin class- FreeformGraphicalRootEditPart
- See Also:
 
- 
unregisterprotected void unregister()Description copied from class:AbstractEditPartUndoes any registration performed byAbstractEditPart.register(). The provided base classes will correctly unregister their visuals.- Overrides:
- unregisterin class- FreeformGraphicalRootEditPart
- See Also:
 
 
-