01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.printing.ui.internal.editor.figures;
18:
19: import org.eclipse.draw2d.Border;
20: import org.eclipse.draw2d.ColorConstants;
21: import org.eclipse.draw2d.FreeformLayer;
22: import org.eclipse.draw2d.LineBorder;
23: import org.eclipse.draw2d.geometry.Rectangle;
24:
25: /**
26: * Provides ...TODO summary sentence
27: * <p>
28: * TODO Description
29: * </p><p>
30: * Responsibilities:
31: * <ul>
32: * <li>
33: * <li>
34: * </ul>
35: * </p><p>
36: * Example Use:<pre><code>
37: * PageFigure x = new PageFigure( ... );
38: * TODO code example
39: * </code></pre>
40: * </p>
41: * @author Richard Gould
42: * @since 0.3
43: */
44: public class PageFigure extends FreeformLayer {
45:
46: /**
47: * TODO summary sentence for getBorder ...
48: *
49: * @see org.eclipse.draw2d.IFigure#getBorder()
50: * @return
51: */
52: public Border getBorder() {
53: return new LineBorder(ColorConstants.gray, 10);
54: }
55:
56: public Rectangle getBounds() {
57: return new Rectangle(0, 0, 612, 792);
58: }
59: }
|