Border
, UIResource
public class SubstanceBorder extends Object implements Border, UIResource
Modifier and Type | Field | Description |
---|---|---|
protected float |
alpha |
Border alpha.
|
protected Insets |
myInsets |
Insets of
this border. |
protected float |
radiusScaleFactor |
When the border is painted, the default radius is multiplied by this
factor.
|
Constructor | Description |
---|---|
SubstanceBorder() |
Creates a new border with dynamic insets (computed at the invocation time
of
getBorderInsets(Component) call). |
SubstanceBorder(float radiusScaleFactor) |
Creates a new border with dynamic insets (computed at the invocation time
of
getBorderInsets(Component) call). |
SubstanceBorder(Insets insets) |
Creates a new border with the specified insets.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
getBorderInsets(Component c) |
|
float |
getRadiusScaleFactor() |
Returns the radius scale factor of this border.
|
boolean |
isBorderOpaque() |
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
|
void |
setAlpha(float alpha) |
Sets the alpha for this border.
|
protected Insets myInsets
this
border.protected float alpha
protected float radiusScaleFactor
public SubstanceBorder()
getBorderInsets(Component)
call).public SubstanceBorder(float radiusScaleFactor)
getBorderInsets(Component)
call).radiusScaleFactor
- Radius scale factor.public SubstanceBorder(Insets insets)
insets
- Insets.public void setAlpha(float alpha)
alpha
- Alpha factor.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
public float getRadiusScaleFactor()