Create a movie with text in a ticker tape moving up from the bottom of the picture to the top.

What will be an ideal response?


```
/**
* Method to c r e a t e a t i c k e r t a p e movie t h a t moves
* from bot tom to top
* @param d i r e c t o r y the d i r e c t o r y to wr i t e to
* @param message the s t r i n g to d i s p l a y
*/
public void makeTickerTapeMovieBotTop ( St r ing di r e c t o r y ,
St r ing message )
{
int f ramesPerSec = 3 0 ;
Pi c tur e p = nul l ;
Graphics g = nul l ;
FrameSequencer f rameSequencer =
new FrameSequencer ( d i r e c t o r y ) ;
Font f ont = new Font ( "Ar i a l " , Font .BOLD, 2 4 ) ;
// loop f o r 2 seconds of animat ion
for ( int i = 0 ; i < f ramesPerSec * 2 ; i++)
{
// draw the s t r i n g
p = new Pi c tur e ( 3 0 0 , 2 0 0 ) ;
g = p . ge tGraphi c s ( ) ;
g . s e tCo l o r ( Color .BLACK) ;
g . setFont ( f ont ) ;
g . drawSt r ing (message , 1 0 , 190 ยก ( i * 2 ) ) ;
// add frame to s e quenc e r
f rameSequencer . addFrame (p ) ;
}
// p lay the movie
f rameSequencer . play ( f ramesPerSec ) ;
}
```

Computer Science & Information Technology

You might also like to view...

The items marked 2 in the accompanying figure are the ____ markers.

A. onion skin B. baseline C. Timeline D. index

Computer Science & Information Technology

A(n) ________ is a calendar activity occurring at a specific time and day that does not require inviting people or reservations.

a. e-mail b. contacts c. appointment d. calendar event

Computer Science & Information Technology

A query that summarizes a data source into a few key rows and columns; the intersection of each row and column displays aggregate data.

What will be an ideal response?

Computer Science & Information Technology

To change the summary functions in a PivotTable, right-click a cell, point to ____, and click a command on the submenu.

A. Subtotal Values By B. Summarize Values By C. Total Values By D. Calculate Values By

Computer Science & Information Technology