|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.crucible.old.layout.Page
A single page of final output. Content is defined by a series of LayoutArea objects created by a RenderTemplate and geometrically arranged by a LayoutEngine. A Page defines its own width and height; thus, adjacent Pages in the same Book can have different layouts, for example portrait vs. landscape orientation.
Constructor Summary | |
Page(Book book,
int width,
int height)
Creates a new instance of Page. |
Method Summary | |
void |
addArea(LayoutArea area)
Appends a new LayoutArea object into the Page. |
void |
addAreas(LayoutArea[] areas)
Appends an array of LayoutArea objects into the Page. |
java.lang.String |
debugPrint()
Creates a debug string which represents this Page object |
LayoutArea[] |
getAreas()
Getter for property areas, the layout areas associated with this Page. |
LayoutArea |
getAreas(int index)
Indexed getter for property areas, the layout areas associated with this Page. |
Book |
getBook()
Getter for property book, the owning Book for this Page. |
int |
getHeight()
Getter for property height, the height of the Page in font points. |
java.awt.Insets |
getInsets()
Getter for property insets, the unwritable margins for this Page. |
int |
getWidth()
Getter for property width, the width of the Page in font points. |
void |
setAreas(int index,
LayoutArea areas)
Indexed setter for property areas, the layout areas associated with this Page. |
void |
setAreas(LayoutArea[] areas)
Setter for property areas, the layout areas associated with this Page. |
void |
setInsets(java.awt.Insets insets)
Setter for property insets, the unwritable margins for this Page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Page(Book book, int width, int height)
book
- the book which owns this Pagewidth
- the width of this Pageheight
- the height of this PageMethod Detail |
public int getWidth()
public int getHeight()
public Book getBook()
public java.awt.Insets getInsets()
public void setInsets(java.awt.Insets insets)
insets
- New value of property insets.public LayoutArea getAreas(int index)
index
- Index of the property.
index
.public LayoutArea[] getAreas()
public void setAreas(int index, LayoutArea areas)
index
- Index of the property.areas
- New value of the property at index
.public void setAreas(LayoutArea[] areas)
areas
- New value of property areas.public void addArea(LayoutArea area)
area
- new LayoutArea object to appendpublic void addAreas(LayoutArea[] areas)
areas
- new LayoutArea object to appendpublic java.lang.String debugPrint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |