Skip to main content
summaryrefslogtreecommitdiffstats
blob: 4bf1a9181341f90937c089ebe88c4c41fb1d7420 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
 * Copyright (c) 2000, 2009 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.text;


/**
 * Registered with a text viewer, view port listeners are informed about changes of a text viewer's
 * view port. The view port is that portion of the viewer's document which is visible in the viewer.
 * <p>
 * <strong>Note:</strong> This listener will not be notified when the viewer is resized.
 * </p>
 * <p>
 * Clients may implement this interface.
 * </p>
 *
 * @see org.eclipse.jface.text.ITextViewer#addViewportListener(IViewportListener)
 */
public interface IViewportListener {

	/**
	 * Informs that the view port changed. The given vertical position is the new vertical scrolling
	 * offset measured in pixels.
	 * <p>
	 * <strong>Note:</strong> This event will not be sent when the viewer is resized.
	 * </p>
	 *
	 * @param verticalOffset the vertical offset measured in pixels
	 */
	void viewportChanged(int verticalOffset);
}

Back to the top