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.source; 12 13 14 import org.eclipse.swt.graphics.Font; 15 16 17 /** 18 * Extension interface for {@link IVerticalRuler}. 19 * <p> 20 * Allows to set the font of the vertical ruler and to set the location of the 21 * last mouse button activity. 22 * 23 * @since 2.0 24 */ 25 public interface IVerticalRulerExtension { 26 27 /** 28 * Sets the font of this vertical ruler. 29 * 30 * @param font the new font of the vertical ruler 31 */ 32 void setFont(Font font); 33 34 /** 35 * Sets the location of the last mouse button activity. This method is used for 36 * example by external mouse listeners. 37 * 38 * @param x the x-coordinate 39 * @param y the y-coordinate 40 */ 41 void setLocationOfLastMouseButtonActivity(int x, int y); 42 } 43