org.apache.fop.traits
Class BorderProps
java.lang.Object
org.apache.fop.traits.BorderProps
- Serializable
public class BorderProps
extends java.lang.Object
implements Serializable
Border properties.
Class to store border trait propties for the area tree.
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
|
static int | SEPARATE - Separate border model
|
Color | color - Border color
|
int | mode - Border mode (one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)
|
int | style - Border style (one of EN_*)
|
int | width - Border width
|
BorderProps(String style, int width, Color color, int mode) - Constructs a new BorderProps instance.
|
BorderProps(int style, int width, Color color, int mode) - Constructs a new BorderProps instance.
|
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
SEPARATE
public static final int SEPARATE
Separate border model
color
public Color color
Border color
mode
public int mode
Border mode (one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)
style
public int style
Border style (one of EN_*)
width
public int width
Border width
BorderProps
public BorderProps(String style,
int width,
Color color,
int mode)
Constructs a new BorderProps instance.
style
- border style (one of the XSL enum values for border style)width
- border widthcolor
- border colormode
- border mode ((one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)
BorderProps
public BorderProps(int style,
int width,
Color color,
int mode)
Constructs a new BorderProps instance.
style
- border style (one of EN_*)width
- border widthcolor
- border colormode
- border mode ((one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)
equals
public boolean equals(Object obj)
getClippedWidth
public static int getClippedWidth(BorderProps bp)
bp
- the border properties or null
- the effective width of the clipped part of the border
hashCode
public int hashCode()
toString
public String toString()
valueOf
public static BorderProps valueOf(FOUserAgent foUserAgent,
String s)
Returns a BorderProps represtation of a string of the format as written by
BorderProps.toString().
foUserAgent
- FOP user agent caching ICC profiless
- the string
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.