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 x the x coordinate of the content to appear in the top left corner

@param y the y coordinate of 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> </ul>

@since 2.0

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

Meta