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
|
protected int |
iCornerRadius |
protected bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BorderedComponent |
owner |
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 |
---|
CEclipseBorder(bibliothek.gui.DockController controller,
int cornerRadius,
bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BorderedComponent owner,
int roundEdges)
Creates a new border
|
CEclipseBorder(bibliothek.gui.DockController controller,
int cornerRadius,
int edges)
Creates a new border
|
Modifier and Type | Method and Description |
---|---|
static Path2D |
CreateBorderShape(int x,
int y,
int w,
int h,
int roundEdges,
int cornerRadius) |
protected Path2D |
createShape(int x,
int y,
int w,
int h,
int cornerRadius) |
Insets |
getBorderInsets(Component c) |
int |
getCornerRadius() |
int |
getRoundEdges()
Tells which edges are painted round.
|
boolean |
isBorderOpaque() |
protected static boolean |
isSet(int mask,
int bit) |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
void |
setCornerRadius(int radius) |
void |
setRoundEdges(int roundEdges)
Sets which edges are painted round.
|
static int |
ShiftEdgeMask(int srcMask,
boolean CCW) |
void |
update4Placement(bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement tabPlacement)
Updates the edge mask for the specified placement.
|
public static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
protected bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BorderedComponent owner
protected int iCornerRadius
public CEclipseBorder(bibliothek.gui.DockController controller, int cornerRadius, bibliothek.extension.gui.dock.theme.eclipse.stack.tab.BorderedComponent owner, int roundEdges)
controller
- the owner of this bordercornerRadius
- The radius of the round edges.owner
- The owner component.roundEdges
- Edge mask.public CEclipseBorder(bibliothek.gui.DockController controller, int cornerRadius, 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 update4Placement(bibliothek.gui.dock.station.stack.tab.layouting.TabPlacement tabPlacement)
tabPlacement
- public void setRoundEdges(int roundEdges)
roundEdges
- the edges to paint roundpublic int getRoundEdges()
public void setCornerRadius(int radius)
public int getCornerRadius()
public static Path2D CreateBorderShape(int x, int y, int w, int h, int roundEdges, int cornerRadius)
protected static boolean isSet(int mask, int bit)
public static int ShiftEdgeMask(int srcMask, boolean CCW)
protected Path2D createShape(int x, int y, int w, int h, int cornerRadius)
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