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


Partners & Affiliates











advertisement

galaxy



            Galaxy - Copyright (C) by F. Ciucci & A. Fasce 1998/99





This applet generates various kinds of realtime "galaxy" effects.



*************************************************************************



NECESSARY FILES.



Apart from an optional overlay image, the following 3 ".class" files

 must be uploaded: 



galaxy.class

Lware.class

anfy.class



Plus, galaxy.jar for speedy loading on recent browsers.



*************************************************************************



EXAMPLE.



Insert the <applet> tag in your html document as follows to add this applet

to your page (Comments after the ";" symbol are code descriptions and

acceptable min/max values. They are not part of the applet language):





<applet archive="galaxy.jar" code="galaxy.class" width="240" height="150">

<param name="credits" value="Applet by Andrea Fasce (www.anfyjava.com)">

<param name="regcode" value="NO">         ; Registration code (if you have it)

<param name="reglink" value="NO">         ; Optional URL link when the applet

                                          is "clicked".

<param name="regnewframe" value="YES">      ; Reglink opened in new frame?

<param name="regframename" value="_blank">  ; Name of new frame for reglink

<param name="statusmsg" value="Galaxy applet">  ; Statusbar message

<param name="particles" value="5">           ; Particles mode (0..7)

<param name="random" value="0">              ; Random effect ("0"=no, "1"=yes)

<param name="script" value="1">              ; Script number (0 .. 11)

<param name="gpalette" value="0">            ; Palette (0 .. 5)

<param name="persist" value="6">             ; Persistence (0 .. 128)

<param name="dinamic_persist" value="0.0">   ; Dynamic pers. (0.0 .. 126.0)

<param name="dinamic_min" value="4">         ; Min. persistence (1 .. 127)

<param name="dinamic_max" value="16">        ; Max. persistence (1 .. 127)

<param name="overimg" value="NO">            ; Optional image over applet

<param name="overimgX" value="0">            ; Over image X offset

<param name="overimgY" value="0">            ; Over image Y offset

<param name="memdelay" value="1000">         ; Memory de-allocation delay

<param name="priority" value="3">            ; Task priority (1..10)

<param name="fixnetscape" value="NO">        ; Fix Netscape 3.0 bug ("YES","NO")

<param name="MinSYNC" value="10">            ; Min. milliseconds/frame for sync

Sorry, your browser doesn't support Java.  ; Message for no java browsers.

</applet>                                  ; End of applet tag





**************************************************************************



INSTRUCTIONS.





The following instructions describe how to change parameters:



Attempting to change the credits parameter will disable the applet.



To activate the reg parameters read the shareware registration notes.

In the "regcode" parameter, place the registration code you purchased

 from the author. If the code is correct and the applet is run from

the registered domain name, you can use "link" parameters to link to a URL

when the applet is mouse-clicked.



If you set "regnewframe" to "YES", you can specify a specific frame location

for the reglink:



"_blank"  : To load the link in a new blank unnamed browser window.

"_self"   : To load the link into the same window the applet occupies.

"_parent" : To load the link into the immediate FRAMESET parent.

"_top"    : To load the link into the top body of the window.



You can also set a custom frame name, such as "myframe1".



With the "overimg" parameter you can specify the name of an image that will

be painted over the applet. The best options are transparent GIF images.

NOTE: Animated GIF images are supported, but will be animated only on latest

 browsers (Netscape 4 and Explorer 4 or newer).



With "overimgX" and "overimgY" you can center the image over the applet area.



The size of the applet is determined by the "width" and "height" tags.



With "particles" parameter you choose the particle mode from values from 0 

to 7.



With "random" parameter set to "1", a random effect will be displayed. If you

instead set it to "0", the effect selected by the "script" parameter will be

displayed. Here are the abailable "script" parameter values:





 0 - Circular Galaxy

 1 - Sphere -> Ring

 2 - Tubular Galaxy

 3 - Spiral Galaxy

 4 - Rotating System

 5 - Into Sphere

 6 - Supernova

 7 - Sphere -> Tubular

 8 - Wave -> Atom

 9 - Cone -> Wave

 10 - All effects one color

 11 - All effects all colors





With "gpalette" parameter (0 .. 5), you choose the palette of a galaxy:



 0 = white

 1 = blue

 2 = red->black

 3 = red->violet

 4 = green

 5 = red->white



You can enable the light persistence, setting "persist" to a value higher

than 0. The max is 128, but the best results are arond 20.



You can set a persistence variation too, placing a value higher than 0.0 in

the "dinamic_persist" parameter. It accepts float values: 0.5 , 1.3 etc.

This value will be a "speed" of transition between the min and max persistence

set with "dinamic_min" and "dinamic_max" parameters.



Of course, min must be smaller than max!


Back to the galaxy 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
 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 48
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%.

Apple Details iPhone/Mac Developer Event
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

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