Create a movie that has the text in a ticker tape moving diagonally from top left to bottom right.

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 top l e f t to bot tom r i g h t
* @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 makeTickerTapeMovieTopBot ( 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 + ( i * 2 ) , 10 + ( 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...

Print a screen dump of your favorite Web browser. With a pencil, label the navigational aids that help build context for a user.

What will be an ideal response?

Computer Science & Information Technology

Given the resulting stack X below, what would be the result of each of the following?

``` X.push(new Integer(4)); X.push(new Integer(3)); Integer Y = X.pop(); X.push(new Integer(7)); X.push(new Integer(2)); X.push(new Integer(5)); X.push(new Integer(9)); Integer Y = X.pop(); X.push(new Integer(3)); X.push(new Integer(9)); a) Y = X.peek(); b) Y = X.pop(); Z = X.peek(); ```

Computer Science & Information Technology

To delete a subfolder from the computer entirely, use the Delete command.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The ____________________ procedure is used to close a StreamWriter file.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology