public class PSectionBorder extends CompoundBorder
insideBorder, outsideBorder| Constructor and Description |
|---|
PSectionBorder()
Creates a compound border consisting of a line border and an
empty border.
|
PSectionBorder(boolean top,
boolean bottom,
boolean left,
boolean right,
int inset)
Creates a compound border with the specified sides drawn for the
internal line border and a left inset as specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawBottom(boolean b)
Determines if the bottom line of the border is drawn
|
void |
drawLeft(boolean b)
Determines if the left line of the border is drawn
|
void |
drawRight(boolean b)
Determines if the right line of the border is drawn
|
void |
drawTop(boolean b)
Determines if the top line of the border is drawn
|
void |
setThickness(int thick)
Determines the thickness of the line used to render the border
|
getBorderInsets, getInsideBorder, getOutsideBorder, isBorderOpaque, paintBordergetBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectanglepublic PSectionBorder()
public PSectionBorder(boolean top,
boolean bottom,
boolean left,
boolean right,
int inset)
top - Flag to determine if the top of the border is drawnbottom - Flag to determine if the bottom of the border is drawnleft - Flag to determine if the left of the border is drawnright - Flag to determine if the right of the border is drawninset - The indent amountpublic void setThickness(int thick)
thick - The line thickness when drawnpublic void drawTop(boolean b)
b - if true, the line is drawn. If false, it is not.public void drawBottom(boolean b)
b - if true, the line is drawn. If false, it is not.public void drawLeft(boolean b)
b - if true, the line is drawn. If false, it is not.public void drawRight(boolean b)
b - if true, the line is drawn. If false, it is not.Copyright © 2003, 2023, Oracle and/or its affiliates.