public class RolloverEffect
extends java.awt.event.MouseAdapter
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.border.Border |
activeBorder |
(package private) java.awt.Color |
bgColor |
(package private) javax.swing.JComponent |
button |
static int |
ETCHED_DOWN |
static int |
ETCHED_UP |
private boolean |
hasPadding |
(package private) int |
iactive |
(package private) int |
inormal |
static int |
NONE |
(package private) javax.swing.border.Border |
normalBorder |
(package private) int |
pB |
(package private) int |
pL |
(package private) int |
pR |
(package private) int |
pT |
static int |
RAISED |
Constructor and Description |
---|
RolloverEffect(javax.swing.JComponent buttonIn) |
RolloverEffect(javax.swing.JComponent buttonIn,
int norm,
int active) |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
linMod(java.awt.Color c,
int d) |
private javax.swing.border.Border |
makeBorder(int type) |
void |
makeBorders() |
void |
mouseEntered(java.awt.event.MouseEvent me) |
void |
mouseExited(java.awt.event.MouseEvent me) |
static java.awt.Color |
myBrighter(java.awt.Color c) |
static java.awt.Color |
myDarker(java.awt.Color c) |
void |
setBg(java.awt.Color c) |
void |
setPadding(int p) |
void |
setPadding(int pl,
int pr,
int pt,
int pb) |
javax.swing.JComponent button
int inormal
int iactive
javax.swing.border.Border normalBorder
javax.swing.border.Border activeBorder
public static final int NONE
public static final int ETCHED_DOWN
public static final int ETCHED_UP
public static final int RAISED
java.awt.Color bgColor
int pL
int pR
int pT
int pB
private boolean hasPadding
public RolloverEffect(javax.swing.JComponent buttonIn)
public RolloverEffect(javax.swing.JComponent buttonIn, int norm, int active)
public void setPadding(int p)
public void setPadding(int pl, int pr, int pt, int pb)
public void setBg(java.awt.Color c)
public void makeBorders()
public void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class java.awt.event.MouseAdapter
public void mouseExited(java.awt.event.MouseEvent me)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class java.awt.event.MouseAdapter
private javax.swing.border.Border makeBorder(int type)
public static java.awt.Color myBrighter(java.awt.Color c)
public static java.awt.Color myDarker(java.awt.Color c)
public static java.awt.Color linMod(java.awt.Color c, int d)
Copyright © 2013. All Rights Reserved.