|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
eu.hansolo.custom.Counter
public class Counter extends JComponent
| Field Summary | |
|---|---|
private Rectangle |
CLIP
|
protected static String |
DEC_PROPERTY
|
private Rectangle |
DIGIT_CLIP
|
private ArrayList |
DIGIT_STACK
|
protected static String |
INC_PROPERTY
|
private org.pushingpixels.trident.ease.Linear |
LINEAR_EASING
|
private Point |
POS
|
private org.pushingpixels.trident.ease.Spline |
SPLINE_EASING
|
private org.pushingpixels.trident.Timeline |
TIMELINE_DECREMENT
|
private org.pushingpixels.trident.callback.TimelineCallback |
TIMELINE_DECREMENT_CALLBACK
|
private org.pushingpixels.trident.Timeline |
TIMELINE_INCREMENT
|
private org.pushingpixels.trident.callback.TimelineCallback |
TIMELINE_INCREMENT_CALLBACK
|
protected static String |
ZERO_PROPERTY
|
private Color |
backgroundColor
|
private BufferedImage |
backgroundImage
|
private boolean |
decFired
|
private int |
fireDecrementThreshold
|
private int |
fireIncrementThreshold
|
private boolean |
incFired
|
private BufferedImage |
lenseImage
|
private int |
maxValue
|
private int |
offset0
|
private int |
offset1
|
private int |
offsetDecrement
|
private int |
offsetIncrement
|
private int |
oldOffsetDecrement
|
private int |
oldOffsetIncrement
|
private BufferedImage |
stackImage
|
private long |
switchTime
|
private Theme |
theme
|
private boolean |
zero
|
| Fields inherited from class JComponent | |
|---|---|
| WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Fields inherited from class Container | |
|---|---|
| TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT |
| Constructor Summary | |
Counter()
|
|
| Method Summary | |
|---|---|
void
|
componentHidden(ComponentEvent EVENT)
|
void
|
componentMoved(ComponentEvent EVENT)
|
void
|
componentResized(ComponentEvent EVENT)
|
void
|
componentShown(ComponentEvent EVENT)
|
private BufferedImage
|
create_BACKGROUND_Image(int WIDTH)
|
private BufferedImage
|
create_DIGIT_Image(int WIDTH, int DIGIT)
|
private BufferedImage
|
create_LENSE_Image(int WIDTH)
|
private BufferedImage
|
create_STACK_Image(int WIDTH)
|
void
|
decrement()
|
Color
|
getBackgroundColor()
|
private double
|
getLuminance(Color COLOR)
|
int
|
getMaxValue()
|
int
|
getOffsetDecrement()
|
int
|
getOffsetIncrement()
|
long
|
getSwitchTime()
|
Theme
|
getTheme()
|
void
|
increment()
|
private void
|
init(int WIDTH, int HEIGHT)
|
boolean
|
isZero()
|
protected void
|
paintComponent(Graphics g)
|
void
|
reset()
|
void
|
setBackgroundColor(Color BACKGROUND_COLOR)
|
void
|
setMaxValue(int MAX_VALUE)
|
void
|
setOffsetDecrement(int OFFSET_DECREMENT)
|
void
|
setOffsetIncrement(int OFFSET_INCREMENT)
|
void
|
setSwitchTime(long SWITCH_TIME)
|
void
|
setTheme(Theme THEME)
|
String
|
toString()
|
| Field Detail |
|---|
private final Rectangle CLIP
protected static final String DEC_PROPERTY
private final Rectangle DIGIT_CLIP
private final ArrayList DIGIT_STACK
protected static final String INC_PROPERTY
private final org.pushingpixels.trident.ease.Linear LINEAR_EASING
private final Point POS
private final org.pushingpixels.trident.ease.Spline SPLINE_EASING
private final org.pushingpixels.trident.Timeline TIMELINE_DECREMENT
private final org.pushingpixels.trident.callback.TimelineCallback TIMELINE_DECREMENT_CALLBACK
private final org.pushingpixels.trident.Timeline TIMELINE_INCREMENT
private final org.pushingpixels.trident.callback.TimelineCallback TIMELINE_INCREMENT_CALLBACK
protected static final String ZERO_PROPERTY
private Color backgroundColor
private BufferedImage backgroundImage
private boolean decFired
private int fireDecrementThreshold
private int fireIncrementThreshold
private boolean incFired
private BufferedImage lenseImage
private int maxValue
private int offset0
private int offset1
private int offsetDecrement
private int offsetIncrement
private int oldOffsetDecrement
private int oldOffsetIncrement
private BufferedImage stackImage
private long switchTime
private Theme theme
private boolean zero
| Constructor Detail |
|---|
public Counter()
| Method Detail |
|---|
@Override public void componentHidden(ComponentEvent EVENT)
@Override public void componentMoved(ComponentEvent EVENT)
@Override public void componentResized(ComponentEvent EVENT)
@Override public void componentShown(ComponentEvent EVENT)
private BufferedImage create_BACKGROUND_Image(int WIDTH)
private BufferedImage create_DIGIT_Image(int WIDTH, int DIGIT)
private BufferedImage create_LENSE_Image(int WIDTH)
private BufferedImage create_STACK_Image(int WIDTH)
public void decrement()
public Color getBackgroundColor()
private double getLuminance(Color COLOR)
public int getMaxValue()
public int getOffsetDecrement()
public int getOffsetIncrement()
public long getSwitchTime()
public Theme getTheme()
public void increment()
private void init(int WIDTH, int HEIGHT)
public boolean isZero()
@Override protected void paintComponent(Graphics g)
public void reset()
public void setBackgroundColor(Color BACKGROUND_COLOR)
public void setMaxValue(int MAX_VALUE)
public void setOffsetDecrement(int OFFSET_DECREMENT)
public void setOffsetIncrement(int OFFSET_INCREMENT)
public void setSwitchTime(long SWITCH_TIME)
public void setTheme(Theme THEME)
@Override public String toString()
Groovy Documentation