Archive for: September, 2014

next Cell( )

next Cell( ) The next Cen() method modifies the work..pixels may for the next cell; It loops through each line of the image starting from the bottom line and fills part of each .column by copying pixels from the next billboard onto the work_pixels array. It does not ever need to copy pixels from the old billboard, because these…

Read More →

Column Transition.java

Column Transition.java The Column Transition class Changes one image into another by drawing increasingly large columns of the new image onto. the old image. The column sizes increase to the left, and the same pixels are always.drawn on the left side of each column. This makes • the billboard appear to be sliding in from behind the old…

Read More →

Init( )

Init( ) The init( ) method is overloaded three times. The first method, which has three parameters, is abstract and must be overridden by classes derived from this class. The other two methods initialize data members within this class. Robert’s intention was to have the init( ) method of classes that arc derived from this class call on of…

Read More →

The Constructor

The Constructor The constructor for a Bill Data object simply initializes the URL and Image variables with the two parameters passed in. Initializing the pixel array is done in a separate method, because it is very processor intensive. This gives the applet a chance to only initialize the pixel array when it needs it. Bill Transition.java In previous…

Read More →

Bill Data.java

Bill Data.java The Bill Data class is mostly just a data structure for encapsulating attributes associated with individual billboards. It contains three variables. The first variable stores the URL to which the billboard is a link. The second variable has an Image that the applet uses to draw on the scr~ The third variable includes a pixel array of…

Read More →

mouse Released( )

mouse Released( ) When the mouse button is pressed with the cursor over the applet and then released” the mouse Released( ) method is called. The applet uses get Applet Context( ) showDocument( ) to send the browser to the URL that the current billboard points to. As Robert found out, sometimes browsers take a long time…

Read More →

mouse Moved and mouse Exitcd( )

mouse Moved and mouse Exitcd( ) mouse Moved and mouse Exitcd( )arc used change the text that )( H 5 on the status bar. When the 1l1ll11Sceursor is over the applet, the status bar is supposed to show the URL that the current billboard links to. So when mousclvlovedt ) gets called,the applet shows the URL on the…

Read More →

run( )

run( ) The run( ) method starts with a loop that waits for the first image to be fully loaded before proceeding. It then finishes the initialization of the applet by calling finish lnit. From there, it enters the main loop of the program. This main loop drives the transitions between billboards. Using the delay parameter passed in from…

Read More →

Unroll( )

Unroll( )  The Unroll ) method modifies the work pixels array for the next cell. It draws the roll onto the work pixels. This method first calculates the offset that it needs to use for drawing each-line of the roll. It then loops through each line of the roll, copying scan lines, from the new image onto the…

Read More →

parse Bill Data ()

parse Bill Data () This method creates and initializes the next billboard (Bill Data) object that the applet will use” It only gets called if the billboard object has not been created yet (the element corresponding to the next billboard object in the billboard array will be null). Normally, parse Bill Data() calls the-BillOata method int Pixels () after…

Read More →

Back to Top