Class AbstractLayoutEditpart

java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.csstudio.opibuilder.editparts.AbstractBaseEditPart
org.csstudio.opibuilder.editparts.AbstractLayoutEditpart
All Implemented Interfaces:
IAdaptable, org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.gef.NodeEditPart, org.eclipse.gef.RequestConstants
Direct Known Subclasses:
GridLayoutEditpart

public abstract class AbstractLayoutEditpart extends AbstractBaseEditPart
The Abstract editpart for layout widgets.
  • Constructor Details

    • AbstractLayoutEditpart

      public AbstractLayoutEditpart()
  • Method Details

    • doCreateFigure

      protected org.eclipse.draw2d.IFigure doCreateFigure()
      Description copied from class: AbstractBaseEditPart
      Create and initialize the widget figure with the property values in model.
      Specified by:
      doCreateFigure in class AbstractBaseEditPart
      Returns:
      the widget figure
    • getIcon

      protected abstract Image getIcon()
    • getNewBounds

      public abstract List<org.eclipse.draw2d.geometry.Rectangle> getNewBounds(List<AbstractWidgetModel> widgetModelList, org.eclipse.draw2d.geometry.Rectangle containerBounds)
      Get the new bounds after layout.
      Parameters:
      widgetModelList - the children widget models to be layout.
      containerBounds - the bounds of the container which contains the widget models.
      Returns:
    • layout

      public void layout(List<AbstractWidgetModel> widgetModelList, org.eclipse.draw2d.geometry.Rectangle containerBounds)
      Layout widgets.
      Parameters:
      widgetModelList -
      containerBounds -
    • refreshParentLayout

      protected void refreshParentLayout()
      Refresh container's layout.