Class ScalableRootEditPart

All Implemented Interfaces:
IAdaptable, EditPart, LayerManager, GraphicalEditPart, LayerConstants, RequestConstants, RootEditPart

public class ScalableRootEditPart extends SimpleRootEditPart implements LayerConstants, LayerManager
A graphical root composed of regular Layers. The layers are added to LayeredPane or ScalableLayeredPane. All layers are positioned by StackLayouts, which means that the diagrams preferred size is the union of the preferred size of each layer, and all layers will be positioned to fill the entire diagram.

IMPORTANTScalableRootEditPart uses a Viewport as its primary figure. It must be used with a ScrollingGraphicalViewer. The viewport gets installed into that viewer's FigureCanvas, which provides native scrollbars for scrolling the viewport.

The layer structure (top-to-bottom) for this root is:

Root Layered Pane
├  Guide Layer
├  Feedback Layer
├  Handle Layer
└  Scalable Layers (ScalableLayeredPane)
  ├  Scaled Feedback Layer
  ├  Printable Layers
    ├ Connection Layer
    └ Primary Layer  
  └  Grid Layer
Since:
2.1.1
  • Constructor Details

    • ScalableRootEditPart

      public ScalableRootEditPart()
      Constructor for ScalableRootEditPart
    • ScalableRootEditPart

      @Deprecated(forRemoval=true, since="2026-03") public ScalableRootEditPart(boolean useScaledGraphics)
      Deprecated, for removal: This API element is subject to removal in a future version.
      will be deleted after the 2028-03 release (see ScaledGraphics).
      Constructor which allows to configure if scaled graphics should be used.
      Since:
      3.14
  • Method Details