Skip navigation links

Oracle Outside In Java API Reference
8.5.4

E91699-01


com.oracle.outsidein.options
Class Margins

java.lang.Object
  extended by com.oracle.outsidein.options.Margins


public class Margins
extends java.lang.Object

Describes page margins used when writing or rendering an output file.

See Also:
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

Margins

public Margins()
Creates a default Margins object with all margins around the page set to 1 inch wide

Margins

public Margins(long top,
               long bottom,
               long left,
               long right)
Creates an object describing the size of page margins
Parameters:
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

getTop

public long getTop()
Obtains the size of the top margin of the page in twips

setTop

public void setTop(long value)
Assigns the size of the top margin of the page in twips

getBottom

public long getBottom()
Obtains the size of the bottom margin of the page in twips

setBottom

public void setBottom(long value)
Assigns the size of the bottom margin of the page in twips

getLeft

public long getLeft()
Obtains the size of the left margin of the page in twips

setLeft

public void setLeft(long value)
Assigns the size of the left margin of the page in twips

getRight

public long getRight()
Obtains the size of the right margin of the page in twips

setRight

public void setRight(long value)
Assigns the size of the right margin of the page in twips

Skip navigation links

Oracle Outside In Java API Reference
8.5.4

E91699-01


Copyright © 2010, 2018, Oracle and/or its affiliates. All rights reserved.