Category Archive for: The Dynamic Billboard Applet

Create Unroll Amount Array( )

Create Unroll Amount Array( )  Each consecutive cell frame in this transition unrolls the roll onto ‘he applet a little bit less than ‘he previous cell frame. The create Unroll Amount Array() static method is used to calculate an array that indicates how much each cell frame should unroll the roll. init( ) The init< Method lor this…

Read More →

Unroll Transition.java

Unroll Transition.java Unroll’Transition makes it appear as if a rolled-up poster is placed on the bottom of the applet ana then unrolled upward, gradually revealing the next image and covering the old image. To enhance the unroll illusion, the roll gradually decreases in size as it makes its ‘way upward on the billboard. Two instance variables are used…

Read More →

Tear( )

Tear( ) The Tear:() method modifies the work_pixels array for the next cell. It draws the tear effect onto the work pixels. It draws the tear effect line by line. To draw one line, the method copies pixels from the old image pixels into the work_pixels array. It uses two counters, one that is an index into the…

Read More →

Tear Transition.java

Tear Transition.java The Tear Transition creates the illusion of the current billboard getting torn off the applet like a piece of It gets ripped upwards and toward the left to reveal the next billboard image underneath, There is only one member variable used in this transition, x_cross. It is used as a multiplier to create the tear effect. The…

Read More →

setup Fill Pixels( )

setup Fill Pixels( ) The setup Fill Pixels() static method is used to ensure that the fill pixel array is initialized-and is at as long as one whole line (or this applet. If this array has not -been initialized yet or is not long enough for this applet, then this method respectively re-creates or creates and fills in the…

Read More →

Smash Transition.java

Smash Transition.java The Smash Transition class changes one image into another by dropping the new image onto the old one. The old image appears to crumble under the weight of the hew image. Two instance variables, drop_amount and location, are used to create the frames; The location variable keeps track of the pixel that the smashed image starts on.…

Read More →

create Random Array()

create Random Array() The create Random Array () static method’ creates the two-dimension random array. It takes parameters that describe the size of the applet, It is highly optimized, because originally it Was,too slow. It includes its own random-number generator that is very fast, but with a short cycle. Because of this, it is fairly complicated and beyond the scope…

Read More →

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 →

Back to Top