About this program:(developed using JDK 1.0.2)
Best viewed with Netscape 4.01 or over with Java patch 1.1

Solar masking calculator for Building Analysis.
This Calulator for building analysis would help to figure out, how much sun is entering through
an opening in a window at a particular time, on a particular location on earth.
The area which is masked as black in the graph depicts the sun position of the sun for which light
would not  directly enter the building/room.
 

The user is required to provide the following input: 
Month
Day
Hour
Latitude, of the location on earth.
East fin of the window.
West fin of the window.
Opening of the window.
Overhang of the window.

 

Prgram will generate the following output: .............
Altitude
Azimuth
Julian day
Declination angle
Hour angle
Sunrise time
Sunset time

 
 
For Viewing the graph the user has the following options

 Relevent Technical Information:
The program is utilizing  java.awt.* and java.applet.* class for making the GUI.
The Applets, Frames and the Dialog boxes.
Also, it uses Graphics object to work out the graph.
In the graph a special thing to note is the masking (the blue background in the chart) which has
been painted using setXORMode so that the objects drawn behind are still visible, showing the position
of the sun which are not directly hitting the room.
The new version of this program has been provided with the capability to print.
 

For the program code or more information contact Vagish Narang
Visit my web site for more applets http://www.nbyte.com/~vnarang/new
Visit Java Ratings  www.jars.com

Below is the code for the initial starting  applet.

import java.awt.*;
import java.applet.*;

public class Applet2 extends Applet {
 void button1_Clicked(Event event) {
  (new Frame1()).show();
 }
 

 public void init() {
  super.init();
  //{{INIT_CONTROLS
  setLayout(null);
  addNotify();
  resize(150,50);
  button1 = new java.awt.Button("Start the mask");
  button1.reshape(30,20,112,25);
  add(button1);
  //}}
 }

 public boolean handleEvent(Event event) {
  if (event.target == button1 && event.id == Event.ACTION_EVENT) {
   button1_Clicked(event);
   return true;
  }
  return super.handleEvent(event);
 }

 //{{DECLARE_CONTROLS
 java.awt.Button button1;
 //}}
}
 
Contact  with comments, corrections or suggestions. This page and its contents are Copyright © 1998 Vagish Narang, Inc. All rights reserved. Unauthorized redistribution prohibited. Please see legal information page for further details.