org.apache.fop.layout
Class BorderAndPadding

java.lang.Object
  |
  +--org.apache.fop.layout.BorderAndPadding
All Implemented Interfaces:
java.lang.Cloneable

public class BorderAndPadding
extends java.lang.Object
implements java.lang.Cloneable


Inner Class Summary
static class BorderAndPadding.BorderInfo
           
 
Field Summary
static int BOTTOM
           
static int LEFT
           
static int RIGHT
           
static int TOP
           
 
Constructor Summary
BorderAndPadding()
           
 
Method Summary
 java.lang.Object clone()
          Return a full copy of the BorderAndPadding information.
 int getBorderBottomWidth(boolean bDiscard)
           
 ColorType getBorderColor(int side)
           
 int getBorderLeftWidth(boolean bDiscard)
           
 int getBorderRightWidth(boolean bDiscard)
           
 int getBorderStyle(int side)
           
 int getBorderTopWidth(boolean bDiscard)
           
 int getPaddingBottom(boolean bDiscard)
           
 int getPaddingLeft(boolean bDiscard)
           
 int getPaddingRight(boolean bDiscard)
           
 int getPaddingTop(boolean bDiscard)
           
 void setBorder(int side, int style, CondLength width, ColorType color)
           
 void setBorderLength(int side, int iLength)
           
 void setPadding(int side, CondLength width)
           
 void setPaddingLength(int side, int iLength)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOP

public static final int TOP

RIGHT

public static final int RIGHT

BOTTOM

public static final int BOTTOM

LEFT

public static final int LEFT
Constructor Detail

BorderAndPadding

public BorderAndPadding()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Return a full copy of the BorderAndPadding information. This clones all padding and border information.
Overrides:
clone in class java.lang.Object
Returns:
The copy.

setBorder

public void setBorder(int side,
                      int style,
                      CondLength width,
                      ColorType color)

setPadding

public void setPadding(int side,
                       CondLength width)

setPaddingLength

public void setPaddingLength(int side,
                             int iLength)

setBorderLength

public void setBorderLength(int side,
                            int iLength)

getBorderLeftWidth

public int getBorderLeftWidth(boolean bDiscard)

getBorderRightWidth

public int getBorderRightWidth(boolean bDiscard)

getBorderTopWidth

public int getBorderTopWidth(boolean bDiscard)

getBorderBottomWidth

public int getBorderBottomWidth(boolean bDiscard)

getPaddingLeft

public int getPaddingLeft(boolean bDiscard)

getPaddingRight

public int getPaddingRight(boolean bDiscard)

getPaddingBottom

public int getPaddingBottom(boolean bDiscard)

getPaddingTop

public int getPaddingTop(boolean bDiscard)

getBorderColor

public ColorType getBorderColor(int side)

getBorderStyle

public int getBorderStyle(int side)


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.