ScrolledComposite.setOrigin

Scrolls the content so that the specified point in the content is in the top left corner. If no content has been set, nothing will occur.

Negative values will be ignored. Values greater than the maximum scroll distance will result in scrolling to the end of the scrollbar.

@param origin the point on the content to appear in the top left corner

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> <li>ERROR_INVALID_ARGUMENT - value of origin is outside of content </ul> @since 2.0

  1. void setOrigin(Point origin)
    class ScrolledComposite
    void
    setOrigin
  2. void setOrigin(int x, int y)

Meta