org.apache.fop.traits
Class BorderProps
java.lang.Object
|
+--org.apache.fop.traits.BorderProps
- All Implemented Interfaces:
- java.io.Serializable
- public class BorderProps
- extends java.lang.Object
- implements java.io.Serializable
Border properties.
Class to store border trait propties for the area tree.
- See Also:
- Serialized Form
Field Summary |
static int |
COLLAPSE_INNER
Collapsing border model, for borders inside a table |
static int |
COLLAPSE_OUTER
Collapsing border model, for borders at the table's outer border |
ColorType |
color
Border color |
int |
mode
Border mode (one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER) |
static int |
SEPARATE
Separate border model |
int |
style
Border style (one of EN_*) |
int |
width
Border width |
Constructor Summary |
BorderProps(int style,
int width,
ColorType color,
int mode)
Constructs a new BorderProps instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SEPARATE
public static final int SEPARATE
- Separate border model
COLLAPSE_INNER
public static final int COLLAPSE_INNER
- Collapsing border model, for borders inside a table
COLLAPSE_OUTER
public static final int COLLAPSE_OUTER
- Collapsing border model, for borders at the table's outer border
style
public int style
- Border style (one of EN_*)
color
public ColorType color
- Border color
width
public int width
- Border width
mode
public int mode
- Border mode (one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)
BorderProps
public BorderProps(int style,
int width,
ColorType color,
int mode)
- Constructs a new BorderProps instance.
- Parameters:
style
- border style (one of EN_*)width
- border widthcolor
- border colormode
- border mode ((one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)
getClippedWidth
public static int getClippedWidth(BorderProps bp)
- Parameters:
bp
- the border properties or null- Returns:
- the effective width of the clipped part of the border
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.