Revision 357 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/LayoutControl.java
LayoutControl.java | ||
---|---|---|
42 | 42 |
public interface LayoutControl extends Observer { |
43 | 43 |
|
44 | 44 |
/** |
45 |
* Returns the rectangle that represents the sheet. |
|
46 |
* In pixels. |
|
45 |
* <p>Returns a copy of the rectangle that represents the size |
|
46 |
* and position of the layout sheet (in pixels), relative to |
|
47 |
* the containing LayoutControl.</p> |
|
47 | 48 |
* |
49 |
* <p>Note: you must use {@link #setRect(Rectangle2D)} to update |
|
50 |
* the rectangle, as this method only returns a copy of it.</p> |
|
48 | 51 |
* @return Rectangle2D.Double Rectangle that represents the sheet. |
52 |
* @see LayoutControl#setRect(Rectangle2D) |
|
49 | 53 |
*/ |
50 | 54 |
public Rectangle2D.Double getRect(); |
51 | 55 |
|
52 | 56 |
/** |
57 |
* <p>Sets the size and position of the layout sheet in screen coordinates |
|
58 |
* (pixels), relative to the LayoutControl.</p> |
|
59 |
* |
|
60 |
* <p>The size of the sheet is usually different from the |
|
61 |
* bounds of the underlying UI control, for instance if we have zoomed in |
|
62 |
* an area of the sheet then the paper size in pixels will be bigger than |
|
63 |
* the actual control size.</p> |
|
64 |
* |
|
65 |
*/ |
|
66 |
public void setRect(Rectangle2D r); |
|
67 |
|
|
68 |
/** |
|
53 | 69 |
* Returns the name of the current selected tool on this Layout |
54 | 70 |
* |
55 | 71 |
* @return A tool name. |
... | ... | |
88 | 104 |
public void fullRect(); |
89 | 105 |
|
90 | 106 |
/** |
91 |
* Inserts the rectangle that represents the sheet. |
|
92 |
* In pixels. |
|
93 |
* |
|
94 |
*/ |
|
95 |
public void setRect(Rectangle2D r); |
|
96 |
|
|
97 |
/** |
|
98 | 107 |
* Returns the current image of Layout. |
99 | 108 |
* |
100 | 109 |
* @return Current image of Layout. |
Also available in: Unified diff