|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.engine.typesetter.page.PageFactoryImpl
public class PageFactoryImpl
This class provides a factory for page instances.
The separation of the page into a logical page and a physical page is depicted in the figure below.
The physical page denotes the real paper. DVI has no notion of the physical page but PDF knows of those bounds. The logical page is placed somewhere on the physical page. The physical page has the width \mediawidth and the height \mediaheight.
The logical page is the area used by
The dimen parameter \mediawidth contains the physical width of the page. The logical page is usually smaller.
The value of this parameter is used when a page is shipped out and attached to the page. Any modifications of the parameter have no effect to the value stored.
〈mediawidth〉
→ 〈optional prefix〉 \mediawidth 〈equals〉 〈dimen value〉
〈optional prefix〉
→
| \global 〈optional prefix〉
\mediawidth=210mm
The dimen parameter \mediaheight contains the physical height of the page. The logical page is usually smaller.
The value of this parameter is used when a page is shipped out and attached to the page. Any modifications of the parameter have no effect to the value stored.
〈mediaheight〉
→ 〈optional prefix〉 \mediaheight 〈equals〉 〈dimen value〉
〈optional prefix〉
→
| \global 〈optional prefix〉
\mediaheight=297mm
The logical page is placed on the physical page such that the upper left corner of the logical page is 1 in down and 1 in to the right of the physical page. This placement can be influence by the dimen parameter \hoffset. The dimen parameter \hoffset contains the horizontal offset added to the reference point when placing the logical page. The default value is 0 pt. Thus the reference point is 1 in to the right. A positive value shifts the reference point rightwards.
The value of this parameter is used when a page is shipped out and attached to the page. Any modifications of the parameter have no effect to the value stored.
〈hoffset〉
→ 〈optional prefix〉 \hoffset 〈equals〉 〈dimen value〉
〈optional prefix〉
→
| \global 〈optional prefix〉
\hoffset=-.5in
The logical page is placed on the physical page such that the upper left corner of the logical page is 1 in down and 1 in to the right of the physical page. This placement can be influence by the dimen parameter \voffset. The dimen parameter \voffset contains the vertical offset added to the reference point when placing the logical page. The default value is 0 pt. Thus the reference point is 1 in down. A positive value shifts the reference point downwards.
The value of this parameter is used when a page is shipped out and attached to the page. Any modifications of the parameter have no effect to the value stored.
〈voffset〉
→ 〈optional prefix〉 \voffset 〈equals〉 〈dimen value〉
〈optional prefix〉
→
| \global 〈optional prefix〉
\voffset=1in
| Constructor Summary | |
|---|---|
PageFactoryImpl()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
enableLogging(java.util.logging.Logger log)
Setter for the logger. |
Page |
newInstance(NodeList nodes,
PageContext pageContext,
Typesetter typesetter)
Get a new instance of a page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageFactoryImpl()
| Method Detail |
|---|
public void enableLogging(java.util.logging.Logger log)
enableLogging in interface LogEnabledlog - the logger to useLogEnabled.enableLogging(
java.util.logging.Logger)
public Page newInstance(NodeList nodes,
PageContext pageContext,
Typesetter typesetter)
throws GeneralException
newInstance in interface PageFactorynodes - the nodes containedpageContext - the interpreter contexttypesetter - the typesetter
null if the page would be
empty
GeneralException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||