public class BorderProps extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
BorderProps.Mode |
Modifier and Type | Field and Description |
---|---|
Color |
color
Border color
|
int |
style
Border style (one of EN_*)
|
int |
width
Border width
|
Constructor and Description |
---|
BorderProps(int style,
int width,
int radiusStart,
int radiusEnd,
Color color,
BorderProps.Mode mode)
Constructs a new BorderProps instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static int |
getClippedWidth(BorderProps bp) |
BorderProps.Mode |
getMode() |
int |
getRadiusEnd() |
int |
getRadiusStart() |
int |
hashCode() |
boolean |
isCollapseOuter() |
static BorderProps |
makeRectangular(int style,
int width,
Color color,
BorderProps.Mode mode)
Factory method for a new BorderProps instance with rectangular corners.
|
String |
toString() |
static BorderProps |
valueOf(FOUserAgent foUserAgent,
String s)
Returns a BorderProps represtation of a string of the format as written by
BorderProps.toString().
|
public final int style
public final Color color
public final int width
public BorderProps(int style, int width, int radiusStart, int radiusEnd, 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)public static BorderProps makeRectangular(int style, int width, 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 BorderProps.Mode getMode()
public static int getClippedWidth(BorderProps bp)
bp
- the border properties or nullpublic boolean isCollapseOuter()
public static BorderProps valueOf(FOUserAgent foUserAgent, String s)
foUserAgent
- FOP user agent caching ICC profiless
- the stringCopyright © 2025 Apache Software Foundation. All rights reserved.