public class BorderProps
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
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
|
java.awt.Color |
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 and Description |
|---|
BorderProps(int style,
int width,
java.awt.Color color,
int mode)
Constructs a new BorderProps instance.
|
BorderProps(java.lang.String style,
int width,
java.awt.Color color,
int mode)
Constructs a new BorderProps instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static int |
getClippedWidth(BorderProps bp) |
int |
hashCode() |
java.lang.String |
toString() |
static BorderProps |
valueOf(FOUserAgent foUserAgent,
java.lang.String s)
Returns a BorderProps represtation of a string of the format as written by
BorderProps.toString().
|
public static final int SEPARATE
public static final int COLLAPSE_INNER
public static final int COLLAPSE_OUTER
public int style
public java.awt.Color color
public int width
public int mode
public BorderProps(int style,
int width,
java.awt.Color color,
int mode)
style - border style (one of EN_*)width - border widthcolor - border colormode - border mode ((one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)public BorderProps(java.lang.String style,
int width,
java.awt.Color color,
int mode)
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)public static int getClippedWidth(BorderProps bp)
bp - the border properties or nullpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic static BorderProps valueOf(FOUserAgent foUserAgent, java.lang.String s)
foUserAgent - FOP user agent caching ICC profiless - the stringpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.