Class FreeformGraphicalRootEditPart

All Implemented Interfaces:
IAdaptable, EditPart, LayerManager, GraphicalEditPart, LayerConstants, RequestConstants, RootEditPart
Direct Known Subclasses:
ScalableFreeformRootEditPart

public class FreeformGraphicalRootEditPart extends SimpleRootEditPart implements LayerConstants, LayerManager
A graphical root that uses FreeformFigures as the layers in the diagram. The contents editpart must provide a FreeformFigure as its figure. Freeform figures are special because they can expand in any direction. This allows the user to drag objects or bendpoints into the negative X and Y coordinates of a diagram. If this feature is not being used, clients should use the FreeformGraphicalRootEditPart as their viewer's root editpart.

IMPORTANT: The contents editpart that is added to a freeform root should have a FreeformFigure (such as FreeformLayer) as its Figure. The primary layer is not using a draw2d LayoutManager, and will not size the contents' figure properly unless it is a freeform figure.

IMPORTANT:The freeform root uses a FreeformViewport as its primary figure. This class must be used with the ScrollingGraphicalViewer. The viewport gets installed into that viewer's FigureCanvas, which provides native scrollbars for scrolling the viewport.

This root serves as the diagram's LayerManager, providing the following layer structure, in top-to-bottom order:

Root Freeform Layered Pane
 Feedback Layer
 Handle Layer
 Printable Layers
  ├ Connection Layer
  └ Primary Layer