Border
, UIResource
public class SubstanceTableCellBorder extends Object implements Border, UIResource
Modifier and Type | Field | Description |
---|---|---|
protected float |
alpha |
Border alpha.
|
protected SubstanceTableUI.TableCellId |
cellId |
|
protected Insets |
myInsets |
Insets of
this border. |
protected SubstanceTableUI |
ui |
Constructor | Description |
---|---|
SubstanceTableCellBorder(Insets insets,
SubstanceTableUI ui,
SubstanceTableUI.TableCellId cellId) |
Creates a new border with the specified insets.
|
Modifier and Type | Method | Description |
---|---|---|
Insets |
getBorderInsets(Component c) |
|
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 SubstanceTableUI ui
protected SubstanceTableUI.TableCellId cellId
protected float alpha
public SubstanceTableCellBorder(Insets insets, SubstanceTableUI ui, SubstanceTableUI.TableCellId cellId)
insets
- Insets.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 void setAlpha(float alpha)
alpha
- Alpha factor.