|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.berkeley.guir.ptk.PTK
edu.berkeley.guir.ptk.PeripheralDisplay
edu.berkeley.guir.ptk.apps.ticker.StockNewsAppNon
Stock News Ticker application: this is an example application using the PTK. It is the non-distributed version of the Stock-News Ticker application. It is a ticker that displays two rows of text information: stock quotes on top and CNN news headlines on bottom. The text scrolls from right to left. It fades in and out when changes are made. It interrupts the user when a certain headline appears or stocks for a company rise or fall below a certain level. The interruption transition is to flash the text a few times.
See the code and inline code comments for an example of how to write a peripheral display.
| Field Summary | |
static java.lang.String |
MY_ID
|
| Fields inherited from class edu.berkeley.guir.ptk.PeripheralDisplay |
AUDIO_THRESHOLD, check_interruptibility, my_id, my_ip, my_port, volume |
| Fields inherited from class edu.berkeley.guir.ptk.PTK |
debug, MAX_DEBUG, MED_DEBUG, MIN_DEBUG, NO_DEBUG |
| Constructor Summary | |
StockNewsAppNon(java.lang.String id)
|
|
| Method Summary | |
void |
buildUI()
Build any user interface components necessary, such as JFrames or hardware. |
void |
initialize()
Override this method to initalize peripheral display elements: abstractors, notification setters, transitions, outputs. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class edu.berkeley.guir.ptk.PTK |
getMAX, getMED, getMIN, getNO, printDebug, printDebug, printError |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MY_ID
| Constructor Detail |
public StockNewsAppNon(java.lang.String id)
| Method Detail |
public static void main(java.lang.String[] args)
public void initialize()
PeripheralDisplay
initialize in class PeripheralDisplaypublic void buildUI()
PeripheralDisplay
buildUI in class PeripheralDisplay
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||