org.jopendocument.dom.style
Class PageLayoutStyle.PageLayoutProperties

java.lang.Object
  extended by org.jopendocument.dom.StyleProperties
      extended by org.jopendocument.dom.style.SideStyleProperties
          extended by org.jopendocument.dom.style.PageLayoutStyle.PageLayoutProperties
Enclosing class:
PageLayoutStyle

public static class PageLayoutStyle.PageLayoutProperties
extends SideStyleProperties


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jopendocument.dom.style.SideStyleProperties
SideStyleProperties.Side
 
Field Summary
 
Fields inherited from class org.jopendocument.dom.StyleProperties
TRANSPARENT, TRANSPARENT_NAME
 
Constructor Summary
PageLayoutStyle.PageLayoutProperties(Style style)
           
 
Method Summary
 BigDecimal getMargin(SideStyleProperties.Side s, LengthUnit in)
          Get the margin of one of the side.
 BigDecimal getPageHeight(LengthUnit in)
           
 BigDecimal getPageWidth(LengthUnit in)
           
 String getRawMargin(SideStyleProperties.Side s)
           
 
Methods inherited from class org.jopendocument.dom.style.SideStyleProperties
getBorder, getBorderLineWidth, getBorders, getSideAttribute
 
Methods inherited from class org.jopendocument.dom.StyleProperties
fallbackToDefaultStyle, getAttributeValue, getAttributeValueInAncestors, getAttributeValueNotInAncestors, getBackgroundColor, getElement, getElement, getEnclosingStyle, getNS, getRawBackgroundColor, getStyledNode, parseBoolean, parseInt, parseInteger, setAttributeValue, setAttributeValue, setBackgroundColor, setBackgroundColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLayoutStyle.PageLayoutProperties

public PageLayoutStyle.PageLayoutProperties(Style style)
Method Detail

getRawMargin

public final String getRawMargin(SideStyleProperties.Side s)

getMargin

public final BigDecimal getMargin(SideStyleProperties.Side s,
                                  LengthUnit in)
Get the margin of one of the side.

Parameters:
s - which side.
in - the desired unit.
Returns:
the margin.

getPageWidth

public final BigDecimal getPageWidth(LengthUnit in)

getPageHeight

public final BigDecimal getPageHeight(LengthUnit in)


Copyright © 2010 jOpenDocument All Rights Reserved.