Class ViewportAutoexposeHelper

java.lang.Object
org.eclipse.gef.editparts.ViewportAutoexposeHelper
All Implemented Interfaces:
AutoexposeHelper

public class ViewportAutoexposeHelper extends Object implements AutoexposeHelper
An implementation of AutoexposeHelper that performs autoscrolling of a Viewport figure. This helper is for use with graphical editparts that contain a viewport figure. This helper will search the editpart and find the viewport. Autoscroll will occur when the detect location is inside the viewport's bounds, but near its edge. It will continue for as long as the location continues to meet these criteria. The autoscroll direction is approximated to the nearest orthogonal or diagonal direction (north, northeast, east, etc.).
  • Field Details

  • Constructor Details

    • ViewportAutoexposeHelper

      public ViewportAutoexposeHelper(GraphicalEditPart owner)
      Constructs a new helper on the given GraphicalEditPart. The editpart must have a Viewport somewhere between its contentsPane and its figure inclusively.
      Parameters:
      owner - the GraphicalEditPart that owns the Viewport
    • ViewportAutoexposeHelper

      public ViewportAutoexposeHelper(GraphicalEditPart owner, Insets threshold)
      Constructs a new helper on the given GraphicalEditPart. The editpart must have a Viewport somewhere between its contentsPane and its figure inclusively.
      Parameters:
      owner - the GraphicalEditPart that owns the Viewport
      threshold - the Expose Threshold to use when determining whether or not a scroll should occur.
  • Method Details