|
Led Display Component v2.0 www.SwingLeddisplay.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is a proxy for the led display class which is a JComponent
that is obtained via getComponent method. To
create a led display use LedDisplayFactory.createLedDisplay()
The display content is a DisplayElement which
is composed of Tokens.
LedDisplayFactory,
DisplayElement,
Token| Field Summary | |
static int |
CENTER
Anchor constants |
static int |
EAST
|
static int |
NORTH
|
static int |
NORTHEAST
|
static int |
NORTHWEST
|
static int |
SOUTH
|
static int |
SOUTHEAST
|
static int |
SOUTHWEST
|
static int |
WEST
|
| Method Summary | |
javax.swing.JComponent |
getComponent()
Gets the JComponent used to display the contents of the led display. |
void |
setAnchor(int anchor)
Sets the location of the element on the display when the display area is larger than the element. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color of the display |
void |
setDisplayElement(DisplayElement element)
Sets display's element |
void |
setDotGaps(int hGap,
int vGap)
Sets the gaps, in pixels, between two display leds. |
void |
setDotOffColor(java.awt.Color color)
Sets the color of a turned-off led |
void |
setDotSize(int width,
int height)
Sets the dimensions, in pixels, of the display's led Default values are (1, 1). |
void |
setPadding(int top,
int left,
int bottom,
int right)
Sets the number of dots separating the element from the edges of the component. |
void |
setTokenGap(int gap)
Sets the gap, in dots, between two tokens of an element. |
void |
update()
Signals the display that the element changed it's value and that it's led display should be updated. |
| Field Detail |
public static final int CENTER
public static final int NORTH
public static final int WEST
public static final int EAST
public static final int SOUTH
public static final int NORTHWEST
public static final int NORTHEAST
public static final int SOUTHWEST
public static final int SOUTHEAST
| Method Detail |
public void setDisplayElement(DisplayElement element)
element - the element to be displayedpublic void update()
public void setPadding(int top,
int left,
int bottom,
int right)
top - leading dots from topleft - leading dots from leftbottom - leading dots from bottomright - leading dots from rightpublic void setAnchor(int anchor)
anchor -
public void setDotSize(int width,
int height)
width - the width of the ledheight - the height of the led
public void setDotGaps(int hGap,
int vGap)
hGap - the horizontal gapvGap - the vertical gappublic void setTokenGap(int gap)
gap - the gap between the elements' tokenspublic void setBackgroundColor(java.awt.Color color)
color - the background color of the displaypublic void setDotOffColor(java.awt.Color color)
color - the color of a turned-off ledpublic javax.swing.JComponent getComponent()
|
Led Display Component v2.0 www.SwingLeddisplay.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||