Project

General

Profile

Download (1.14 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.text;
12

    
13
/**
14
 * A block layout which requires no FlowContext to perform its layout. This
15
 * class is used by {@link FlowPage}.
16
 * <p>
17
 * WARNING: This class is not intended to be subclassed by clients.
18
 */
19
public class PageFlowLayout extends BlockFlowLayout {
20

    
21
	/**
22
	 * Creates a new PageFlowLayout with the given FlowPage
23
	 * 
24
	 * @param page
25
	 *            the FlowPage
26
	 */
27
	public PageFlowLayout(FlowPage page) {
28
		super(page);
29
	}
30

    
31
	/**
32
	 * @see org.eclipse.draw2d.text.BlockFlowLayout#getContextWidth()
33
	 */
34
	int getContextWidth() {
35
		return ((FlowPage) getFlowFigure()).getPageWidth();
36
	}
37

    
38
}
(25-25/31)