Project

General

Profile

Download (1.3 KB) Statistics
| Branch: | Tag: | Revision:
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 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.draw2d;
12

    
13
import org.eclipse.swt.graphics.Font;
14

    
15
/**
16
 * LabeledBorders have a text message somewhere on them. The Font for the text
17
 * can be set. LabeledBorders should not change their Insets when the label
18
 * changes, therefore, Figures using this Border should repaint() when updating
19
 * the label, and revalidate() when changing the Font.
20
 */
21
public interface LabeledBorder extends Border {
22

    
23
	/**
24
	 * Returns the label for this Border.
25
	 * 
26
	 * @return The label for this Border
27
	 */
28
	String getLabel();
29

    
30
	/**
31
	 * Sets the Font for the label.
32
	 * 
33
	 * @param f
34
	 *            The Font to be set
35
	 */
36
	void setFont(Font f);
37

    
38
	/**
39
	 * Sets the text to be displayed as the label for this Border.
40
	 * 
41
	 * @param l
42
	 *            The text
43
	 */
44
	void setLabel(String l);
45

    
46
}
(94-94/171)