|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.extension.gui.dock.theme.eclipse.EclipseBorder
@ColorCodes(value="stack.border") public class EclipseBorder
A border that has round edges.
Field Summary | |
---|---|
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 Summary | |
---|---|
EclipseBorder(DockController controller,
boolean fillEdges)
Creates a new border |
|
EclipseBorder(DockController controller,
boolean fillEdges,
int edges)
Creates a new border |
Method Summary | |
---|---|
Insets |
getBorderInsets(Component c)
|
int |
getRoundEdges()
Tells which edges are painted round. |
boolean |
isBorderOpaque()
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
|
void |
setRoundEdges(int roundEdges)
Sets which edges are painted round. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
Constructor Detail |
---|
public EclipseBorder(DockController controller, boolean fillEdges)
controller
- the owner of this borderfillEdges
- whether to paint over the edgespublic EclipseBorder(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
Method Detail |
---|
public void setRoundEdges(int roundEdges)
roundEdges
- the edges to paint roundpublic int getRoundEdges()
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
public boolean isBorderOpaque()
isBorderOpaque
in interface Border
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |