|
Oracle Outside In Java API Reference 8.5.3 E57629-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.oracle.outsidein.options.Margins
public class Margins
Describes page margins used when writing or rendering an output file.
OptionsCache.getDefaultPageMargins(), OptionsCache.setDefaultPageMargins(Margins)| Constructor Summary | |
|---|---|
Margins()Creates a default Margins object with all margins around the page set to 1 inch wide |
|
Margins(long top, long bottom, long left, long right)Creates an object describing the size of page margins |
|
| Method Summary | |
|---|---|
long |
getBottom()Obtains the size of the bottom margin of the page in twips |
long |
getLeft()Obtains the size of the left margin of the page in twips |
long |
getRight()Obtains the size of the right margin of the page in twips |
long |
getTop()Obtains the size of the top margin of the page in twips |
void |
setBottom(long value)Assigns the size of the bottom margin of the page in twips |
void |
setLeft(long value)Assigns the size of the left margin of the page in twips |
void |
setRight(long value)Assigns the size of the right margin of the page in twips |
void |
setTop(long value)Assigns the size of the top margin of the page in twips |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Margins()
Margins object with all margins around the page set to 1 inch wide
public Margins(long top,
long bottom,
long left,
long right)
top - Margin from the top edge of the page (in twips)bottom - Margin from the bottom edge of the page (in twips)left - Margin from the left edge of the page (in twips)right - Margin from the right edge of the page (in twips)| Method Detail |
|---|
public long getTop()
public void setTop(long value)
public long getBottom()
public void setBottom(long value)
public long getLeft()
public void setLeft(long value)
public long getRight()
public void setRight(long value)
|
Oracle Outside In Java API Reference 8.5.3 E57629-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||