|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.NeonBorder
public class NeonBorder
| Field Summary | |
|---|---|
static Color[] |
BLUE
|
static Color[] |
GREEN
|
static Color[] |
GREY
|
static Color[] |
ORANGE
|
static Color[] |
RED
|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
NeonBorder()
standaard |
|
NeonBorder(Color highlight)
custom color |
|
NeonBorder(Color[] highlight)
custom color |
|
NeonBorder(Color[] normal,
Color[] highlight)
custom color |
|
| Method Summary | |
|---|---|
static JPanel |
createJPanelWithNeonBorder(Component component)
Wrap a component in a JPanel with a standard neon border |
static JPanel |
createJPanelWithNeonBorder(Component component,
NeonBorder neonBorder)
Wrap a component in a JPanel with a neon border |
Insets |
getBorderInsets(Component c)
|
Color[] |
getHighlight()
|
Color[] |
getNormal()
|
boolean |
isBorderOpaque()
|
protected boolean |
isMousOver(MouseEvent e)
This method tries to determine if the mouse is actually over, taking the actual shape into account. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
|
void |
setHighlight(Color color)
derrives other colors |
void |
setHighlight(Color[] value)
|
void |
setNormal(Color[] value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
public static Color[] GREY
public static Color[] GREEN
public static Color[] BLUE
public static Color[] RED
public static Color[] ORANGE
| Constructor Detail |
|---|
public NeonBorder()
public NeonBorder(Color highlight)
public NeonBorder(Color[] highlight)
public NeonBorder(Color[] normal,
Color[] highlight)
| Method Detail |
|---|
public Color[] getNormal()
public void setNormal(Color[] value)
public Color[] getHighlight()
public void setHighlight(Color[] value)
public void setHighlight(Color color)
color - public Insets getBorderInsets(Component c)
getBorderInsets in interface Borderpublic boolean isBorderOpaque()
isBorderOpaque in interface Border
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
paintBorder in interface Borderpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerprotected boolean isMousOver(MouseEvent e)
e -
public static JPanel createJPanelWithNeonBorder(Component component)
public static JPanel createJPanelWithNeonBorder(Component component,
NeonBorder neonBorder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||