advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

Quasar


P A R A M E T E R    C H E A T    S H E E T
=========================================================================
CodeBrainQuasar.class



GENERAL NOTES
-------------------------------------------------------------------------

// CodeBrainQuasar's code is written protectively -- to make it easy
// to set up and get running.  Six demos and all the associated
// graphics and sound files are included, to get you rolling quickly.
//
// Other than the "Notice" parameter and one image file (any one),
// you can leave out any parameter and the applet will run.
// That is, "If in doubt, leave it out!"
//
// You can make the applet as simple as you wish, without the
// clutter and confusion of a multitude of parameters -- and then
// gradually build upward into more complex renditions.
//
// Parameter names are as descriptive as we can make them without
// having them a mile long, and they ARE case sensitive, so take care.
// On parameters with multiple values, make sure you put a value
// in each slot.
//
// Note that a keyfile is required (see below) to run the applet on
// your website.
//
// Keep image files to the smallest dimensions and file sizes
// possible.  There's a great deal of redrawing going on -- so
// large images backload the applet and slow it down.
// (Note that the BackImage is NOT a traditional background image;
// it is just an image that sits in back of all others -- so keep
// that small, as well.)
//
// To get started, place the CodeBrainQuasar.class file and ALL
// files used by the applet in the SAME directory
//
// Check out the six demos included, and gradually change parameters
// to get a feel for how the applet works.
//
// Good luck, and we hope you have a blast with CodeBrainQuasar.class.
// It's a remarkably flexible and powerful applet, well worth the
// small investment of time it takes to learn to use it well.
//
// Best regards,
//
// CodeBrain
//
// IMPORTANT:  CodeBrainQuasar.class will function properly off your
// disk drive, as is.  To use it on your website, you MUST MUST MUST
// get a KEYFILE from www.CodeBrain.com -- or the applet won't run.
// The KEYFILE, CodeBrainQuasar.key, must be in the SAME DIRECTORY
// as the CodeBrainQuasar.class file.





P A R A M E T E R S
=========================================================================



<param name="Notice"                 value="Applet by www.CodeBrain.com">
-------------------------------------------------------------------------
// Must be present, EXACTLY, or the applet will not run.  (See note
// above, you also need a keyfile to use the applet on your site.)



<param name="TimeConstant"                                  value = "50">
-------------------------------------------------------------------------
// Sets the overall speed of the applet.
// Smaller values are faster, larger are slower.
// Practical range is usually around 10-200.
// Getting started... try 50.



<param name="BackgroundColor"                        value="rrr,ggg,bbb">
-------------------------------------------------------------------------
// This sets the applet background color.
// Usual RGB format, values 0-255.
// Example: value = "255,0,0" would make the applet background red.



<param name="BackImage"                        value="imagefilename.ext">
-------------------------------------------------------------------------
// This image will sit at z-index zero, behind all others.
// The file can be a .gif, an animated .gif, or a .jpeg.
// Keep image files as small in dimension and file size as possible.



<param name="BackXY"                                         value="X,Y">
-------------------------------------------------------------------------
// Where the BackImage will be positioned, upper left corner of image.
// X is pixels across, Y is pixels down.
// Positioning at values less than zero or larger than the dimensions
//    of the applet will place it completely or partly off-screen.
// Example, if your applet is 200 wide and 300 high, value="100,150"
//    would position the BackImage upper left corner dead center



<param name="FrontImage"                       value="imagefilename.ext">
-------------------------------------------------------------------------
// This image will sit in front, on top of all others.
// The file can be a .gif, an animated .gif, or a .jpeg.
// Keep image files as small in dimension and file size as possible.


<param name="FrontXY"                                        value="X,Y">
-------------------------------------------------------------------------
// Where the FrontImage will be positioned, upper left corner of image.
// X is pixels across, Y is pixels down.
//
// Use integers, i.e., value="75,95"
//
// Positioning at values less than zero or larger than the dimensions
//    of the applet will place it completely or partly off-screen.



<param name="FloatImage"                       value="imagefilename.ext">
-------------------------------------------------------------------------
// The FloatImage is one of two active (moving) images in the applet.
//    It's z-index or layer is adjustable, to fall anywhere above
//    the BackImage and below the FrontImage -- see FloatZ.
//
// There are a total of 9 modes of motion -- see FloatMode.
//
// The file can be a .gif, an animated .gif, or a .jpeg.
// Keep image files as small in dimension and file size as possible.



<param name="FloatXXYY"                value="Xleft,Xright,Ytop,Ybottom">
-------------------------------------------------------------------------
// This is a bounding box, dimensions in pixels.
// Xleft is as far as the image will travel left.
// Xright as far as it will travel right.
// Ytop as far up as it will go.
// Ybottom as far down as it will go.
//
// Use integers, i.e. value= "20,200,30,150)"
//
// You can use negative values and values greater than the size
//    of the applet... useful in moving the image off-screen



<param name="FloatZ"                                           value="0">
-------------------------------------------------------------------------
// FloatZ is at what depth (what layer) the FloatImage will be postioned
//    RELATIVE to the FlyImage (see below).
// For example, if you set up the FlyImage FlyHowMany (see below) for
//    seven images, setting FloatZ to "3" would cause the FloatImage
//    to hover between the third and fourth FloatImage



<param name="FloatMode"                                        value="0">
-------------------------------------------------------------------------
// The FloatImage has 9 modes of motion.
// These modes are:
//    0 = static
//    1 = left to right
//    2 = right to left
//    3 = horizontal bounce
//    4 = top to bottom
//    5 = bottom to top
//    6 = vertical bounce
//    7 = circles clockwise
//    8 = circles counterclockwise
//    9 = random (moves pseudo-randomly through modes 1-4)

// Only modes *7,*8, and *9 have speed control; see FloatSpeed789 (below)



<param name="FloatSpeed789"                                   value="25">
-------------------------------------------------------------------------
// Sets how fast the FloatImage moves -- modes 7,8,9 only
// Larger values are faster; try 25 to get started.




<param name="FlyImage"                         value="imagefilename.ext">
-------------------------------------------------------------------------
// The FlyImage is the second of the two active (moving) images.
//    It creates multiple copies of itself (see FlyHowMany),
//    and has three main parameter sets to control how it moves.
//    All though all of the motion is based on Sine/Cosine (circular)
//    relationships, changing these parameters results in
//    a remarkable range of variation.
//
// The file can be a .gif, an animated .gif, or a .jpeg.
// Keep image files as small in dimension and file size as possible.



<param name="FlyHowMany"                                       value="3">
-------------------------------------------------------------------------
// How many copies the Fly Image will present.
// Practically, you probably want to keep this between 1-20 or so.
// Make sure you set FlySeparateMaxMinROC (below) so you can see.



<param name="FlyDirection"                                     value="1">
-------------------------------------------------------------------------
// Which direction the Fly image orbit will rotate.
//  0= ccw, 1 = cw



<param name="FlyCenterXY"                                    value="X,Y">
-------------------------------------------------------------------------
// This is the starting CENTER position of the image.
// The applet automatically takes into account the width and height of
//    the image!
// Thus, if you have an applet that is, say, 300 wide by 300 high,
//    value="150,150" will exactly center the image, no matter what
//    the image dimensions are.  (Say thank you.)



<param name="FlyOscillateXXYY"               value="Xmax,Xmin,Ymax,Ymin">
-------------------------------------------------------------------------
// This is the most important parameter for motion.  You WILL need to
//    experiment with it, and it DOES take some fiddling, though it's
//    very well behaved when you get the hang of it.
//
// Take NOTE... this is NOT a bounding box -- it is an oscillator, and
//   the values are for the limits.  The values are relative to the
//   FlyCenterXY point, and they are the radii -- not the diameters --
//   of the circles/elipses that the FlyImage moves through.
//
//   Xmax - maximum to which the radius will expand, left-to-right
//   Xmin - minimum to which the radius will contract, left-to-right
//   Ymax - maximum to which the radius will expand, top-to-bottom
//   Ymin - minimum to which the radius will contract, top-to-bottom
//
// Getting started... look at the demos included and work with them,
//    changing values a little at a time.
//
// Use integers, negative numbers are allowed -- with sometimes very
//   interesting results!



<param name="FlySpeedMaxMinROC"                       value="Max,Min,ROC">
-------------------------------------------------------------------------
// This adjusts how fast the FlyImage will move.
// Max is the maximum speed, Min is the minium speed, and ROC stands
//    for RateOfChange between the Max and Min speeds.  That is,
//    if you used value="20,2,11", the FlyImage would speed p to 20,
//    then slow down to 2 -- and the CHANGE in the speed would occur
//    at a RATE of 11.  This changing speed adds life to the applet,
//    and reduces the sensation of repetition.
// Again, work with the demos, changing this a little at a time.  The
//    effects can be starting.
// For a static (unchanging) speed, set Max and Min the same, and the
//    rate to any value; for example, value = "9,9,0"
// Decimal (i.e., 1.15) and negative values are allowed.



<param name="FlySeparateMaxMinROC"                   value="Max,Min,ROC">
-------------------------------------------------------------------------
// This adjusts how far apart each copy of the FlyImage will be.
//   (For those interested, the value is in radians.)
// Similar to setting up the parameter above, Max is the maximum
//   distance between images, Min is the minimum distance, and ROC is
//   the rate at which the distance between the images changes.  Work
//   with the demos!  Pushing the ROC up past 11 or so can have
//   fascinating results.
// For a static (unchanging) distance, set Max and Min the same, and the
//    rate to any value; for example, value = "9,9,0"
// Decimal (i.e., 1.15) and negative values are allowed.



<param name="SoundFile"                         value="soundfilename.au">
-------------------------------------------------------------------------
// This is the name of a sound file you may optionally associate
//    with the applet.  There are three modes, see below.
// The sound file MUST be a standard, JAVA .au file.
// Keep the sound file as small as possible, especially for sync mode.



<param name="SoundMode"                                        value="1">
-------------------------------------------------------------------------
// The associated SoundFile (above) can be set to trigger in three
//   different modes, as follows...
//   1 = plays the sound only when the applet opens
//   2 = plays the sound continuously (loop)
//   3 = sync mode -- plays the file syncrhonized with FloatImage motion




<param name="StatusBarTextS"           value="Static status bar message">
-------------------------------------------------------------------------
// Optional, a text message the applet displays in the browser status
//    bar whenever the mouse is NOT over the applet.



<param name="StatusBarTextM"        value="MouseOver status bar message">
-------------------------------------------------------------------------
// Optional, a text message the applet displays in the browser status
//    bar whenever the mouse IS over the applet.



<param name="Link"                      value="http://www.codebrain.com">
-------------------------------------------------------------------------
// Optional, a link to which the applet will send the browser when you
//    click on the applet.  Make sure you use the full path, as shown!



<param name="Target"                                        value="_new">
-------------------------------------------------------------------------
// Optional, used in conjuntion with the Link parameter above.
// This is in standard syntax -- _new, _top, etc.; or the name of
//    the target frame if you are using a framed layout.










=========================================================================
The CodeBrainQuasar.class applet is (c) 1999 by CodeBrain
All responsibility for use of the applet remains with the user.

Back to the Quasar applet page

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 DevX Skillbuilding from IBM developerWorks
 RIA Run Contest: Build Next-Gen Apps in Microsoft Silverlight 2
 Avaya DevConnect Center
 Intel Go Parallel Portal
 Internet.com eBook Library
 Microsoft RIA Development Center
 Destination .NET
XML error: not well-formed (invalid token) at line 53
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

RIM Ups Ante With Mobile Software Push
Novell Readies Silverlight Clone for Linux
Yahoo Pitches The 'Next Generation of Search'
Alfresco's Latest ECM: Prying Open a Sector?
SaaS Tool Offers Custom Database Development
Microsoft’s Automated Agent: Can We Talk?
Borland Finally Sells CodeGear
Red Hat Heads for the JON 2.0
Out with the Old, in with the New at JavaOne
Trolltech Expands WebKit Footprint

Create Secure Java Applications Productively, Part 1: Use Rational Application Developer and Data Studio
.NET Building Blocks: Custom User Control Fundamentals
Secure Internet File-Sharing with PHP, MySQL, and JavaScript
Getting Started with TBB on Windows
Moving to VoIP: Should You Go It Alone?
Introduction to the WPF Command Framework
7.0, Microsoft's Lucky Version?
Will Hyper-V Make VMware This Decade's Netscape?
Eliminate Fragmentation Frustration with Netbiscuits
Taming Trees: Building Branching Structures

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES