|
Led Ticker Component v2.2 www.ledticker.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface is a proxy for the led ticker class which is a JComponent
that is obtained via getTickerComponent method. To
create a led ticker use LedTickerFactory.createLedTicker()
The ticker content is composed of TickerElements which
in turn are also composed of Tokens.
LedTickerFactory,
TickerElement,
Token| Method Summary | |
void |
addElement(TickerElement element)
Adds an element to the ticker's contents |
void |
addElementListener(ElementListener listener)
Adds the specified element listener to receive element events from this led ticker. |
javax.swing.JComponent |
getTickerComponent()
Gets the JComponent used to display the contents and animation of the ticker. |
boolean |
isDraggingEnabled()
Returns the ability of the ticker to support dragging. |
void |
pauseAnimation()
Pauses the ticker elements' scrolling. |
void |
removeAll()
Empties the contents of the ticker. |
void |
removeElement(TickerElement element)
Removes an element from the ticker's contents |
void |
removeElementListener(ElementListener listener)
Removes the specified element listener so that it no longer receives element events from this led ticker. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color of the ticker |
void |
setDotGaps(int hGap,
int vGap)
Sets the gaps, in pixels, between two ticker 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 ticker's led Default values are (1, 1). |
void |
setDraggingEnabled(boolean draggingEnabled)
Enables the movement of the scroll by dragging |
void |
setElementGap(int gap)
Sets the gap, in dots, between two elements of the ticker Default value is 4. |
void |
setSpeed(int speed)
Sets the speed of the ticker animation. |
void |
setTokenGap(int gap)
Sets the gap, in dots, between two tokens of an element. |
void |
startAnimation()
Starts to scroll the ticker's elements. |
void |
stopAnimation()
Stops the ticker elements' scrolling. |
void |
update(TickerElement element)
Signals the ticker that the given element changed it's value and that it's display should be updated. |
void |
updateAll()
Updates the display of all of the ticker's elements. |
| Method Detail |
public void addElement(TickerElement element)
element - the element to be added to the contentspublic void removeElement(TickerElement element)
element - the element to be removed from the contentspublic void removeAll()
public void update(TickerElement element)
element - the element to be updated
java.lang.IllegalArgumentException - if the given element was not found within
the ticker's contentspublic void updateAll()
public void addElementListener(ElementListener listener)
listener - the element listener.ElementEvent,
ElementListener,
removeElementListener(ElementListener)public void removeElementListener(ElementListener listener)
listener - the element listener.ElementEvent,
ElementListener,
addElementListener(ElementListener)
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 setElementGap(int gap)
gap - the gap between elementspublic void setTokenGap(int gap)
gap - the gap between the elements' tokenspublic void setSpeed(int speed)
speed - the speed of the ticker animation
java.lang.IllegalArgumentException - if the given value is less than 1 or more
than 10public void setBackgroundColor(java.awt.Color color)
color - the background color of the tickerpublic void setDotOffColor(java.awt.Color color)
color - the color of a turned-off ledpublic void startAnimation()
public void stopAnimation()
public void pauseAnimation()
public void setDraggingEnabled(boolean draggingEnabled)
draggingEnabled - if set to true enables the movement
of the scroll by draggingpublic boolean isDraggingEnabled()
public javax.swing.JComponent getTickerComponent()
|
Led Ticker Component v2.2 www.ledticker.net |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||