01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jface.text;
11:
12: /**
13: * Registered with a text viewer, view port listeners are informed about changes
14: * of a text viewer's view port. The view port is that portion of the viewer's
15: * document which is visible in the viewer.
16: * <p>
17: * Clients may implement this interface.</p>
18: *
19: * @see org.eclipse.jface.text.ITextViewer
20: */
21: public interface IViewportListener {
22:
23: /**
24: * Informs about view port changes. The given vertical position is the new
25: * vertical scrolling offset measured in pixels.
26: *
27: * @param verticalOffset the vertical offset measured in pixels
28: */
29: void viewportChanged(int verticalOffset);
30: }
|