javax.swing.border.Border, javax.swing.plaf.UIResourcepublic class SubstanceTableCellBorder
extends java.lang.Object
implements javax.swing.border.Border, javax.swing.plaf.UIResource
| Modifier and Type | Field | Description |
|---|---|---|
protected float |
alpha |
Border alpha.
|
protected SubstanceTableUI.TableCellId |
cellId |
|
protected java.awt.Insets |
myInsets |
Insets of
this border. |
protected SubstanceTableUI |
ui |
| Constructor | Description |
|---|---|
SubstanceTableCellBorder(java.awt.Insets insets,
SubstanceTableUI ui,
SubstanceTableUI.TableCellId cellId) |
Creates a new border with the specified insets.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
|
boolean |
isBorderOpaque() |
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
|
void |
setAlpha(float alpha) |
Sets the alpha for this border.
|
protected java.awt.Insets myInsets
this border.protected SubstanceTableUI ui
protected SubstanceTableUI.TableCellId cellId
protected float alpha
public SubstanceTableCellBorder(java.awt.Insets insets,
SubstanceTableUI ui,
SubstanceTableUI.TableCellId cellId)
insets - Insets.public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.Borderpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.Borderpublic boolean isBorderOpaque()
isBorderOpaque in interface javax.swing.border.Borderpublic void setAlpha(float alpha)
alpha - Alpha factor.