Class LightScrolledContentComposite<C extends ILightControl>

    • Constructor Detail

      • LightScrolledContentComposite

        public LightScrolledContentComposite()
    • Method Detail

      • isNavigationControl

        public static boolean isNavigationControl​(ILightControl control)
      • getHorizontalNavigation

        public ILightControl getHorizontalNavigation()
      • setHorizontalNavigation

        public void setHorizontalNavigation​(ILightControl horizontalNavigation)
      • getVerticalNavigation

        public ILightControl getVerticalNavigation()
      • setVerticalNavigation

        public void setVerticalNavigation​(ILightControl verticalNavigation)
      • isHorizontalStretch

        public boolean isHorizontalStretch()
      • setHorizontalStretch

        public void setHorizontalStretch​(boolean horizontalStretch)
      • isVerticalStretch

        public boolean isVerticalStretch()
      • setVerticalStretch

        public void setVerticalStretch​(boolean verticalStretch)
      • getScrollRange

        public org.eclipse.swt.graphics.Point getScrollRange()
      • getScrollPosition

        public org.eclipse.swt.graphics.Point getScrollPosition()
      • scrollBy

        public org.eclipse.swt.graphics.Point scrollBy​(int horizontalDelta,
                                                       int verticalDelta)
      • scrollHorizontallyBy

        public int scrollHorizontallyBy​(int delta)
      • scrollVerticallyBy

        public int scrollVerticallyBy​(int delta)
      • scrollTo

        public void scrollTo​(int horizontalPosition,
                             int verticalPosition)
      • scrollHorizontallyTo

        public void scrollHorizontallyTo​(int position)
      • scrollVerticallyTo

        public void scrollVerticallyTo​(int position)
      • computeSize

        public org.eclipse.swt.graphics.Point computeSize​(org.eclipse.swt.graphics.GC gc,
                                                          int width,
                                                          int height,
                                                          boolean flushCache)
        Description copied from interface: ILightControl
        Computes the size of this control.
        Specified by:
        computeSize in interface ILightControl
        Overrides:
        computeSize in class LightComposite
        Parameters:
        gc - the GC to do measurements with.
        width - the width hint, SWT.DEFAULT to compute the preferred width.
        height - the height hint, SWT.DEFAULT to compute the preferred height.
        flushCache - the flush cache flag, instructs the associated layout to reset all its caches, if any.
        Returns:
        the computed size.
      • layout

        public void layout​(org.eclipse.swt.graphics.GC gc)
        Description copied from interface: ILightComposite
        Layouts this composite using its layout, if any.
        Specified by:
        layout in interface ILightComposite
        Overrides:
        layout in class LightComposite
        Parameters:
        gc - the GC to do the measurements with.
      • getViewportBounds

        protected org.eclipse.swt.graphics.Rectangle getViewportBounds()
      • computeContentSize

        protected org.eclipse.swt.graphics.Point computeContentSize​(org.eclipse.swt.graphics.GC gc)