1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jface.text; 12 13 14 import org.eclipse.jface.text.Position; 15 16 /** 17 * Manages and updates positions used by {@link IPainter}s. 18 * 19 * @see org.eclipse.jface.text.IPainter 20 * @since 2.1 21 */ 22 public interface IPaintPositionManager { 23 24 /** 25 * Starts managing the given position until <code>unmanagePosition</code> is called. 26 * 27 * @param position the position to manage 28 * @see #unmanagePosition(Position) 29 */ 30 void managePosition(Position position); 31 32 /** 33 * Stops managing the given position. If the position is not managed 34 * by this managed, this call has no effect. 35 * 36 * @param position the position that should no longer be managed 37 */ 38 void unmanagePosition(Position position); 39 } 40