com.lowagie.text
public class RectangleReadOnly extends Rectangle
RectangleReadOnly is the representation of a geometric figure.
It's the same as a Rectangle but immutable.
Rectangles support constant width borders using
RectangleReadOnlyand RectangleReadOnly.
They also support borders that vary in width/color on each side using
methods like RectangleReadOnlyor
setBorderColorLeft.
Since: 2.1.2
See Also: Element Table Cell HeaderFooter
| Constructor Summary | |
|---|---|
| RectangleReadOnly(float llx, float lly, float urx, float ury)
Constructs a RectangleReadOnly -object.
| |
| RectangleReadOnly(float urx, float ury)
Constructs a RectangleReadOnly -object starting from the origin
(0, 0).
| |
| RectangleReadOnly(Rectangle rect)
Constructs a RectangleReadOnly -object.
| |
| Method Summary | |
|---|---|
| void | cloneNonPositionParameters(Rectangle rect)
Copies each of the parameters, except the position, from a
Rectangle object
|
| void | disableBorderSide(int side)
Disables the border on the specified side.
|
| void | enableBorderSide(int side)
Enables the border on the specified side.
|
| void | normalize()
Normalizes the rectangle.
|
| void | setBackgroundColor(Color value)
Sets the backgroundcolor of the rectangle.
|
| void | setBorder(int border)
Enables/Disables the border on the specified sides.
|
| void | setBorderColor(Color borderColor)
Sets the color of the border.
|
| void | setBorderColorBottom(Color borderColorBottom)
Sets the color of the bottom border.
|
| void | setBorderColorLeft(Color borderColorLeft)
Sets the color of the left border.
|
| void | setBorderColorRight(Color borderColorRight)
Sets the color of the right border
|
| void | setBorderColorTop(Color borderColorTop)
Sets the color of the top border.
|
| void | setBorderWidth(float borderWidth)
Sets the borderwidth of the table.
|
| void | setBorderWidthBottom(float borderWidthBottom)
Sets the width of the bottom border
|
| void | setBorderWidthLeft(float borderWidthLeft)
Sets the width of the left border
|
| void | setBorderWidthRight(float borderWidthRight)
Sets the width of the right border
|
| void | setBorderWidthTop(float borderWidthTop)
Sets the width of the top border
|
| void | setBottom(float lly)
Sets the lower left y-coordinate.
|
| void | setGrayFill(float value)
Sets the grayscale of the rectangle.
|
| void | setLeft(float llx)
Sets the lower left x-coordinate.
|
| void | setRight(float urx)
Sets the upper right x-coordinate.
|
| void | setTop(float ury)
Sets the upper right y-coordinate.
|
| void | setUseVariableBorders(boolean useVariableBorders)
Sets a parameter indicating if the rectangle has variable borders
|
| void | softCloneNonPositionParameters(Rectangle rect)
Copies each of the parameters, except the position, from a
Rectangle object if the value is set there.
|
| void | throwReadOnlyError()
Throws an error because of the read only nature of this object. |
| String | toString() |
RectangleReadOnly -object.
Parameters: llx lower left x lly lower left y urx upper right x ury upper right y
RectangleReadOnly -object starting from the origin
(0, 0).
Parameters: urx upper right x ury upper right y
RectangleReadOnly -object.
Parameters: rect another Rectangle
Rectangle object
Parameters: rect Rectangle to copy from
Parameters: side the side to disable.
One of LEFT, RIGHT, TOP, BOTTOM
Parameters: side the side to enable.
One of LEFT, RIGHT, TOP, BOTTOM
Parameters: value the new value
LEFT, RIGHT, TOP, BOTTOM.
Parameters: border the new value
See Also: RectangleReadOnly RectangleReadOnly
Parameters: borderColor a Color
Parameters: borderColorBottom a Color
Parameters: borderColorLeft a Color
Parameters: borderColorRight a Color
Parameters: borderColorTop a Color
Parameters: borderWidth the new value
Parameters: borderWidthBottom a width
Parameters: borderWidthLeft a width
Parameters: borderWidthRight a width
Parameters: borderWidthTop a width
Parameters: lly the new value
Parameters: value the new value
Parameters: llx the new value
Parameters: urx the new value
Parameters: ury the new value
Parameters: useVariableBorders indication if the rectangle has variable borders
Rectangle object if the value is set there.
Parameters: rect Rectangle to copy from
Returns: String version of the most important rectangle properties
See Also: java.lang.Object#toString()