|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.traits.BorderProps
public class BorderProps
Border properties. Class to store border trait properties for the area tree.
Nested Class Summary | |
---|---|
static class |
BorderProps.Mode
|
Field Summary | |
---|---|
java.awt.Color |
color
Border color |
int |
style
Border style (one of EN_*) |
int |
width
Border width |
Constructor Summary | |
---|---|
BorderProps(int style,
int width,
int radiusStart,
int radiusEnd,
java.awt.Color color,
BorderProps.Mode mode)
Constructs a new BorderProps instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static int |
getClippedWidth(BorderProps bp)
|
int |
getRadiusEnd()
|
int |
getRadiusStart()
|
int |
hashCode()
|
boolean |
isCollapseOuter()
|
static BorderProps |
makeRectangular(int style,
int width,
java.awt.Color color,
BorderProps.Mode mode)
Factory method for a new BorderProps instance with rectangular corners. |
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(). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int style
public final java.awt.Color color
public final int width
Constructor Detail |
---|
public BorderProps(int style, int width, int radiusStart, int radiusEnd, java.awt.Color color, BorderProps.Mode mode)
style
- border style (one of EN_*)width
- border widthradiusStart
- radius of start corner in the direction perpendicular to border segmentradiusEnd
- radius of end corner in the direction perpendicular to border segmentcolor
- border colormode
- border mode ((one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)Method Detail |
---|
public static BorderProps makeRectangular(int style, int width, java.awt.Color color, BorderProps.Mode mode)
style
- border style (one of EN_*)width
- border widthcolor
- border colormode
- border mode ((one of SEPARATE, COLLAPSE_INNER and COLLAPSE_OUTER)public int getRadiusStart()
public int getRadiusEnd()
public static int getClippedWidth(BorderProps bp)
bp
- the border properties or null
public boolean isCollapseOuter()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static BorderProps valueOf(FOUserAgent foUserAgent, java.lang.String s)
foUserAgent
- FOP user agent caching ICC profiless
- the string
public java.lang.String toString()
toString
in class java.lang.Object
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |