|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.SubstanceBorder
public class SubstanceBorder
Gradient border for the Substance look and feel. This class is for internal use only.
| Field Summary | |
|---|---|
protected float |
alpha
Border opacity. |
protected java.awt.Insets |
myInsets
Insets of this border. |
protected float |
radiusFactor
When the border is painted, the default radius is multiplied by this factor. |
| Constructor Summary | |
|---|---|
SubstanceBorder()
Creates a new border with dynamic insets (computed at the invocation time of getBorderInsets(Component) call). |
|
SubstanceBorder(float radiusFactor)
Creates a new border with dynamic insets (computed at the invocation time of getBorderInsets(Component) call). |
|
SubstanceBorder(java.awt.Insets insets)
Creates a new border with the specified insets. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Insets myInsets
this border.
protected float alpha
protected float radiusFactor
| Constructor Detail |
|---|
public SubstanceBorder()
getBorderInsets(Component) call).
public SubstanceBorder(float radiusFactor)
getBorderInsets(Component) call).
radiusFactor - Radius factor.public SubstanceBorder(java.awt.Insets insets)
insets - Insets.| Method Detail |
|---|
public void setAlpha(float alpha)
alpha - Alpha factor.
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.Border
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||