public abstract class AbstractEclipseBorder extends Object implements Border
Border
managing basic properties that are required by varios
Border
s related to the EclipseTheme
.Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM_LEFT
constant indicating the bottom left edge has to be painted round
|
static int |
BOTTOM_RIGHT
constant indicating the bottom right edge has to be painted round
|
static int |
TOP_LEFT
constant indicating the top left edge has to be painted round
|
static int |
TOP_RIGHT
constant indicating the top right edge has to be painted round
|
Constructor and Description |
---|
AbstractEclipseBorder(DockController controller,
boolean fillEdges)
Creates a new border
|
AbstractEclipseBorder(DockController controller,
boolean fillEdges,
int edges)
Creates a new border
|
Modifier and Type | Method and Description |
---|---|
DockController |
getController()
Gets the controller in whose realm this border paints
|
int |
getRoundEdges()
Tells which edges are painted round.
|
boolean |
isBorderOpaque() |
boolean |
isFillEdges()
Tells whether the edges should be painted.
|
void |
setFillEdges(boolean fillEdges)
Sets whether the edges should be filled
|
void |
setRoundEdges(int roundEdges)
Sets which edges are painted round.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBorderInsets, paintBorder
public static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
public AbstractEclipseBorder(DockController controller, boolean fillEdges)
controller
- the owner of this borderfillEdges
- whether to paint over the edgespublic AbstractEclipseBorder(DockController controller, boolean fillEdges, int edges)
controller
- the owner of this borderfillEdges
- whether to paint over the edgesedges
- the edges that are painted round, or-ed from TOP_LEFT
,
TOP_RIGHT
, BOTTOM_LEFT
and BOTTOM_RIGHT
public void setRoundEdges(int roundEdges)
roundEdges
- the edges to paint roundpublic int getRoundEdges()
public void setFillEdges(boolean fillEdges)
fillEdges
- whether to paint the edgespublic boolean isFillEdges()
true
if the edges are to be filledpublic DockController getController()
public boolean isBorderOpaque()
isBorderOpaque
in interface Border