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