@ColorCodes(value={"flap.button.border.edges","flap.button.border.inner","flap.button.border.outer"}) public class EclipseButtonBorder extends AbstractEclipseBorder
Border
used by the EclipseButtonTitle
.BOTTOM_LEFT, BOTTOM_RIGHT, TOP_LEFT, TOP_RIGHT
Constructor and Description |
---|
EclipseButtonBorder(DockController controller,
boolean fillEdges,
int edges)
Creates a new border
|
Modifier and Type | Method and Description |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
getController, getRoundEdges, isBorderOpaque, isFillEdges, setFillEdges, setRoundEdges
public EclipseButtonBorder(DockController controller, boolean fillEdges, int edges)
controller
- the controller in whose realm this border is usedfillEdges
- whether to fill the edges with a coloredges
- which edges to paint round, a bitwise or of the constants defined in AbstractEclipseBorder