|
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.FlipChar
public class FlipChar extends JComponent
| Field Summary | |
|---|---|
private Rectangle2D |
BOTTOM_CLIP
|
private float[] |
BOTTOM_FONT_GRADIENT_FRACTIONS
|
private Point2D |
BOTTOM_FONT_GRADIENT_START
|
private Point2D |
BOTTOM_FONT_GRADIENT_STOP
|
private Rectangle2D |
CLIP
|
private ComponentListener |
COMPONENT_LISTENER
|
private Rectangle |
INNER_BOUNDS
|
private static String |
PROPERTY_CHARACTER
|
private BasicStroke |
THIN_STROKE
|
private Rectangle2D |
TOP_CLIP
|
private float[] |
TOP_FONT_GRADIENT_FRACTIONS
|
private Point2D |
TOP_FONT_GRADIENT_START
|
private Point2D |
TOP_FONT_GRADIENT_STOP
|
private BufferedImage |
backgroundImage
|
private Color[] |
bottomFontGradientColors
|
private String |
character
|
private char |
currentChar
|
private int |
currentFlipSequenceImage
|
private boolean |
flipComplete
|
private BufferedImage |
flipSequenceImage
|
private Font |
font
|
private Color |
fontColor
|
private BufferedImage |
foregroundImage
|
private char |
lastChar
|
private boolean |
reachedChar
|
private Color[] |
topFontGradientColors
|
| 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 | |
FlipChar()
|
|
| Method Summary | |
|---|---|
void
|
actionPerformed(ActionEvent EVENT)
|
private void
|
calcInnerBounds()
Calculates the area that is available for painting the display |
private BufferedImage
|
createBackgroundImage(int WIDTH, int HEIGHT)
|
private BufferedImage
|
createForegroundImage(int WIDTH, int HEIGHT)
|
String
|
getCharacter()
|
Color
|
getFontColor()
|
private Rectangle
|
getInnerBounds()
Returns a rectangle2d representing the available space for drawing the component taking the insets into account (e.g. given through borders etc.) |
Dimension
|
getMinimumSize()
|
private void
|
init(int WIDTH, int HEIGHT)
|
protected void
|
paintComponent(Graphics g)
|
void
|
setBounds(Rectangle BOUNDS)
|
void
|
setBounds(int X, int Y, int WIDTH, int HEIGHT)
|
void
|
setCharacter(String CHARACTER)
|
void
|
setFontColor(Color FONT_COLOR)
|
void
|
setPreferredSize(Dimension DIM)
|
void
|
setSize(int WIDTH, int HEIGHT)
|
void
|
setSize(Dimension DIM)
|
| Field Detail |
|---|
private final Rectangle2D BOTTOM_CLIP
private final float[] BOTTOM_FONT_GRADIENT_FRACTIONS
private final Point2D BOTTOM_FONT_GRADIENT_START
private final Point2D BOTTOM_FONT_GRADIENT_STOP
private final Rectangle2D CLIP
private final ComponentListener COMPONENT_LISTENER
private final Rectangle INNER_BOUNDS
private static final String PROPERTY_CHARACTER
private final BasicStroke THIN_STROKE
private final Rectangle2D TOP_CLIP
private final float[] TOP_FONT_GRADIENT_FRACTIONS
private final Point2D TOP_FONT_GRADIENT_START
private final Point2D TOP_FONT_GRADIENT_STOP
private BufferedImage backgroundImage
private Color[] bottomFontGradientColors
private String character
private char currentChar
private int currentFlipSequenceImage
private boolean flipComplete
private BufferedImage flipSequenceImage
private Font font
private Color fontColor
private BufferedImage foregroundImage
private char lastChar
private boolean reachedChar
private Color[] topFontGradientColors
| Constructor Detail |
|---|
public FlipChar()
| Method Detail |
|---|
@Override public void actionPerformed(ActionEvent EVENT)
private void calcInnerBounds()
private BufferedImage createBackgroundImage(int WIDTH, int HEIGHT)
private BufferedImage createForegroundImage(int WIDTH, int HEIGHT)
public String getCharacter()
public Color getFontColor()
private Rectangle getInnerBounds()
@Override public Dimension getMinimumSize()
private void init(int WIDTH, int HEIGHT)
@Override protected void paintComponent(Graphics g)
@Override public void setBounds(Rectangle BOUNDS)
@Override public void setBounds(int X, int Y, int WIDTH, int HEIGHT)
public void setCharacter(String CHARACTER)
public void setFontColor(Color FONT_COLOR)
@Override public void setPreferredSize(Dimension DIM)
@Override public void setSize(int WIDTH, int HEIGHT)
@Override public void setSize(Dimension DIM)
Groovy Documentation