Project

General

Profile

Download (1.16 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
/**
14
 * A General purpose Container. This figure is opaque by default, and will fill
15
 * its entire bounds with either the background color that is set on the figure,
16
 * or the IGraphics current background color if none has been set. Opaque
17
 * figures help to optimize painting.
18
 * <p>
19
 * Note that the paintFigure() method in the superclass Figure actually fills
20
 * the bounds of this figure.
21
 */
22
public class Panel extends Figure {
23

    
24
	/**
25
	 * Returns <code>true</code> as this is an opaque figure.
26
	 * 
27
	 * @return the opaque state of this figure
28
	 * @since 2.0
29
	 */
30
	public boolean isOpaque() {
31
		return true;
32
	}
33

    
34
}
(112-112/171)