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 all of the parameters from a Rectangle object
except the position.
|
| void | disableBorderSide(int side)
Disables the border on the specified side.
|
| void | enableBorderSide(int side)
Enables the border on the specified side.
|
| void | normalize()
Switches lowerleft with upperright |
| void | setBackgroundColor(Color value)
Sets the backgroundcolor of the rectangle.
|
| void | setBorder(int value)
Enables/Disables the border on the specified sides. |
| void | setBorderColor(Color value)
Sets the color of the border.
|
| void | setBorderColorBottom(Color value)
Sets the value of the border color
|
| void | setBorderColorLeft(Color value)
Sets the value of the border color
|
| void | setBorderColorRight(Color value)
Sets the value of the border color
|
| void | setBorderColorTop(Color value)
Sets the value of the border color
|
| void | setBorderWidth(float value)
Sets the borderwidth of the table.
|
| void | setBorderWidthBottom(float borderWidthBottom)
Sets the width of a border
|
| void | setBorderWidthLeft(float borderWidthLeft)
Sets the width of a border
|
| void | setBorderWidthRight(float borderWidthRight)
Sets the width of a border
|
| void | setBorderWidthTop(float borderWidthTop)
Sets the width of a border
|
| void | setBottom(float value)
Sets the lower left y-coordinate.
|
| void | setGrayFill(float value)
Sets the grayscale of the rectangle.
|
| void | setLeft(float value)
Sets the lower left x-coordinate.
|
| void | setRight(float value)
Sets the upper right x-coordinate.
|
| void | setTop(float value)
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 all of the parameters from a Rectangle object
except the position.
|
| void | throwReadOnlyError() |
| 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
except the position.
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: value the new value
See Also: RectangleReadOnly RectangleReadOnly
Parameters: value the new value
Parameters: value a color value
Parameters: value a color value
Parameters: value a color value
Parameters: value a color value
Parameters: value the new value
Parameters: borderWidthBottom a width
Parameters: borderWidthLeft a width
Parameters: borderWidthRight a width
Parameters: borderWidthTop a width
Parameters: value the new value
Parameters: value the new value
Parameters: value the new value
Parameters: value the new value
Parameters: value the new value
Parameters: useVariableBorders indication if the rectangle has variable borders
Rectangle object
except the position.
Parameters: rect
Rectangle to copy from
See Also: java.lang.Object#toString()