All Packages  This Package  Class Hierarchy  Class Search  Index

Class jkp.geometry.mesh.quake.MeshQuakeConfigDialog
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----jkp.geometry.mesh.quake.MeshQuakeConfigDialog

  Summary

public class  MeshQuakeConfigDialog
     extends java.awt.Dialog
     implements jkp.awt.event.WindowClosingOnAListener, 
                jkp.awt.event.ActionPerformedOnAListener, 
                jkp.awt.event.ActionPerformedOnBListener, 
                jkp.awt.event.ActionPerformedOnCListener, 
                jkp.awt.event.ActionPerformedOnDListener, 
                jkp.awt.event.ItemStateChangedOnAListener, 
                jkp.awt.event.ItemStateChangedOnCListener, 
                jkp.awt.event.ItemStateChangedOnDListener, 
                jkp.awt.event.ItemStateChangedOnEListener, 
                jkp.awt.event.ItemStateChangedOnFListener, 
                jkp.awt.event.ItemStateChangedOnGListener, 
                jkp.awt.event.ItemStateChangedOnHListener, 
                jkp.awt.event.ItemStateChangedOnIListener
{
          // Fields 36
     static final String CFGEXT;
     Checkbox cbautolight;
     Checkbox cbautostart;
     Checkbox cbnofloats;
     Checkbox cbquake1;
     Checkbox cbquake2;
     Checkbox cbsealsides;
     Checkbox cbsealtopbottom;
     Checkbox cbseawater;
     Checkbox cbworldspawn;
     MeshQuakeConfig cfg;
     Frame parent;
     final int pp1width;
     final int pp4width;
     final int pp5width;
     PromptPanel ppautolightdivider;
     PromptPanel ppautolightintensity;
     PromptPanel ppcdtrack;
     PromptPanel ppceilingtexture;
     PromptPanel ppfloortexture;
     PromptPanel ppgridqdepth;
     PromptPanel ppgridqheight;
     PromptPanel ppgridqwidth;
     PromptPanel ppmapname;
     PromptPanel ppmidqspace;
     PromptPanel ppouterqunits;
     PromptPanel ppterraintexture;
     PromptPanel ppwadname;
     PromptPanel ppwallgap;
     PromptPanel ppwalltexture;
     PromptPanel ppwatertexture;
     PromptPanel ppxoffset;
     PromptPanel ppyoffset;
     PromptPanel ppzcutoff;
     PromptPanel ppzoffset;
     private String savedirectory;

          // Constructors 1
     public MeshQuakeConfigDialog(Frame, String, int);

          // Methods 31
     public final void actionPerformedOnA(ActionEvent);
     public final void actionPerformedOnB(ActionEvent);
     public final void actionPerformedOnC(ActionEvent);
     public final void actionPerformedOnD(ActionEvent);
     private void cancel();
     private void configToScreen();
     public MeshQuakeConfig getMeshQuakeConfig();
     public final void itemStateChangedOnA(ItemEvent);
     public final void itemStateChangedOnC(ItemEvent);
     public final void itemStateChangedOnD(ItemEvent);
     public final void itemStateChangedOnE(ItemEvent);
     public final void itemStateChangedOnF(ItemEvent);
     public final void itemStateChangedOnG(ItemEvent);
     public final void itemStateChangedOnH(ItemEvent);
     public final void itemStateChangedOnI(ItemEvent);
     private void loadConfig();
     private Panel panel1();
     private Panel panel12();
     private Panel panel1245();
     private Panel panel2();
     private Panel panel3();
     private Panel panel4();
     private Panel panel45();
     private Panel panel5();
     private void saveConfig();
     private void screenToConfig();
     private void setAutoLight();
     private void setAutoStart();
     private void setSeals();
     private void setWorldSpawn();
     public final void windowClosingOnA(WindowEvent);
}

Displays a dialog to enter a number of parameters governing the conversion of the mesh into a Quake map.

Version:
0.001a 4 Jul 1998
Author:
Jack Perdue j-perdue@tamu.edu si_slick@cy-net.net




  Fields

· CFGEXT

Summary  |  Top

   static final String CFGEXT

Default file extension for configuration file.


· cbautolight

Summary  |  Top
   Checkbox cbautolight

Add lights?


· cbautostart

Summary  |  Top
   Checkbox cbautostart

Add info_player_start?


· cbnofloats

Summary  |  Top
   Checkbox cbnofloats

Write brushes as floats?


· cbquake1

Summary  |  Top
   Checkbox cbquake1

Quake1?


· cbquake2

Summary  |  Top
   Checkbox cbquake2

Quake2?


· cbsealsides

Summary  |  Top
   Checkbox cbsealsides

Seal sides?


· cbsealtopbottom

Summary  |  Top
   Checkbox cbsealtopbottom

Seal floor/ceiling?


· cbseawater

Summary  |  Top
   Checkbox cbseawater

Add water at sea level?


· cbworldspawn

Summary  |  Top
   Checkbox cbworldspawn

Add worldspawn?


· cfg

Summary  |  Top
   MeshQuakeConfig cfg

Object to store configuration data in.


· parent

Summary  |  Top
   Frame parent

The owning frame of this Dialog.


· pp1width

Summary  |  Top
   final int pp1width

Width for PromptPanels on Panel1.


· pp4width

Summary  |  Top
   final int pp4width

Width for PromptPanels on Panel4.


· pp5width

Summary  |  Top
   final int pp5width

Width for PromptPanels on Panel5.


· ppautolightdivider

Summary  |  Top
   PromptPanel ppautolightdivider

Determines number of lights.


· ppautolightintensity

Summary  |  Top
   PromptPanel ppautolightintensity

Intensity of added lights.


· ppcdtrack

Summary  |  Top
   PromptPanel ppcdtrack

CD track to play.


· ppceilingtexture

Summary  |  Top
   PromptPanel ppceilingtexture

Texture for the ceiling.


· ppfloortexture

Summary  |  Top
   PromptPanel ppfloortexture

Texture for the floor.


· ppgridqdepth

Summary  |  Top
   PromptPanel ppgridqdepth

Depth (Y) of Quake map.


· ppgridqheight

Summary  |  Top
   PromptPanel ppgridqheight

Height (Z) of Quake map.


· ppgridqwidth

Summary  |  Top
   PromptPanel ppgridqwidth

Width (X) of Quake map.


· ppmapname

Summary  |  Top
   PromptPanel ppmapname

MAP signon message.


· ppmidqspace

Summary  |  Top
   PromptPanel ppmidqspace

Space in middle of map.


· ppouterqunits

Summary  |  Top
   PromptPanel ppouterqunits

Thickness of outer walls.


· ppterraintexture

Summary  |  Top
   PromptPanel ppterraintexture

Texture for terrain.


· ppwadname

Summary  |  Top
   PromptPanel ppwadname

.WAD file containing textures (Quake1 only)


· ppwallgap

Summary  |  Top
   PromptPanel ppwallgap

Gap between terrain and outer walls.


· ppwalltexture

Summary  |  Top
   PromptPanel ppwalltexture

Texture for walls.


· ppwatertexture

Summary  |  Top
   PromptPanel ppwatertexture

Texture for water.


· ppxoffset

Summary  |  Top
   PromptPanel ppxoffset

X offset from origin.


· ppyoffset

Summary  |  Top
   PromptPanel ppyoffset

Y offset from origin.


· ppzcutoff

Summary  |  Top
   PromptPanel ppzcutoff

Z offset from origin.


· ppzoffset

Summary  |  Top
   PromptPanel ppzoffset

Z cutoff value.


· savedirectory

Summary  |  Top
   private String savedirectory

Last directory config file was loaded/saved from/to.


  Constructors

· MeshQuakeConfigDialog

Summary  |  Top

   public MeshQuakeConfigDialog(Frame parent, 
                                String title, 
                                int mode) 

Constructs a new MeshQuakeConfig dialog using the given mode.

Parameter Description
parent The owning frame.
title Title for this Dialog.
mode Mandelbrot set or terrain elevation mode.



  Methods

· actionPerformedOnA

Summary  |  Top
   public final void actionPerformedOnA(ActionEvent ae) 

Load configuration button was pushed.

Parameter Description
ae The action performed event.

Implements:
actionPerformedOnA in interface ActionPerformedOnAListener


· actionPerformedOnB

Summary  |  Top
   public final void actionPerformedOnB(ActionEvent ae) 

Save configuration button was pushed.

Parameter Description
ae The action performed event.

Implements:
actionPerformedOnB in interface ActionPerformedOnBListener


· actionPerformedOnC

Summary  |  Top
   public final void actionPerformedOnC(ActionEvent ae) 

OK button pushed.

Parameter Description
ae The action performed event.

Implements:
actionPerformedOnC in interface ActionPerformedOnCListener


· actionPerformedOnD

Summary  |  Top
   public final void actionPerformedOnD(ActionEvent ae) 

Cancel button pushed.

Parameter Description
ae The action performed event.

Implements:
actionPerformedOnD in interface ActionPerformedOnDListener


· cancel

Summary  |  Top
   private void cancel() 

The operator closed the dialog or chose cancel.



· configToScreen

Summary  |  Top
   private void configToScreen() 

Copy data from our MeshQuakeConfig to the components on the screen.



· getMeshQuakeConfig

Summary  |  Top
   public MeshQuakeConfig getMeshQuakeConfig() 

Retrieve the config from the dialog - called after dialog has closed.

Returns:
The configuration data for the Quake map.


· itemStateChangedOnA

Summary  |  Top
   public final void itemStateChangedOnA(ItemEvent ie) 

Quake1/Quake2 toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnA in interface ItemStateChangedOnAListener


· itemStateChangedOnC

Summary  |  Top
   public final void itemStateChangedOnC(ItemEvent ie) 

Worldspawn toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnC in interface ItemStateChangedOnCListener


· itemStateChangedOnD

Summary  |  Top
   public final void itemStateChangedOnD(ItemEvent ie) 

Auto info_player_start toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnD in interface ItemStateChangedOnDListener


· itemStateChangedOnE

Summary  |  Top
   public final void itemStateChangedOnE(ItemEvent ie) 

Seal sides toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnE in interface ItemStateChangedOnEListener


· itemStateChangedOnF

Summary  |  Top
   public final void itemStateChangedOnF(ItemEvent ie) 

Seal floor and ceiling toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnF in interface ItemStateChangedOnFListener


· itemStateChangedOnG

Summary  |  Top
   public final void itemStateChangedOnG(ItemEvent ie) 

Write brushes as floats toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnG in interface ItemStateChangedOnGListener


· itemStateChangedOnH

Summary  |  Top
   public final void itemStateChangedOnH(ItemEvent ie) 

Add water at sea level toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnH in interface ItemStateChangedOnHListener


· itemStateChangedOnI

Summary  |  Top
   public final void itemStateChangedOnI(ItemEvent ie) 

Add lights toggled.

Parameter Description
ie The item state changed event.

Implements:
itemStateChangedOnI in interface ItemStateChangedOnIListener


· loadConfig

Summary  |  Top
   private void loadConfig() 

Read configuration data from a file.



· panel1

Summary  |  Top
   private Panel panel1() 

First panel - texture and other long text fields.

Returns:
Panel with textures and other long text fields.


· panel12

Summary  |  Top
   private Panel panel12() 

Combine panels 1 and 2.

Returns:
Panel containing both panels.


· panel1245

Summary  |  Top
   private Panel panel1245() 

Combine panels 12 and 45.

Returns:
Panel containing both panels.


· panel2

Summary  |  Top
   private Panel panel2() 

Second panel - Checkbox items.

Returns:
Panel with a number of Checkboxes.


· panel3

Summary  |  Top
   private Panel panel3() 

Panel 3 - Load/Save/Cancel/OK buttons.

Returns:
Panel with Load/Save/Cancel/OK buttons.


· panel4

Summary  |  Top
   private Panel panel4() 

Panel 4 - auto lighting options.

Returns:
Panel with auto lighting options.


· panel45

Summary  |  Top
   private Panel panel45() 

Combine panels 4 and 5.

Returns:
Panel containing both panels.


· panel5

Summary  |  Top
   private Panel panel5() 

Panel 5 - short PromptPanels.

Returns:
Panel containing short (mostly numeric) PromptPanels.


· saveConfig

Summary  |  Top
   private void saveConfig() 

Save configuration data to a file.



· screenToConfig

Summary  |  Top
   private void screenToConfig() 

Copy data from the components on the screen to our MeshQuakeConfig.



· setAutoLight

Summary  |  Top
   private void setAutoLight() 

Auto lighting toggled, enable/disable components.



· setAutoStart

Summary  |  Top
   private void setAutoStart() 

Auto start toggled, enable/disable components.



· setSeals

Summary  |  Top
   private void setSeals() 

Seal sides or seal floor/ceiling toggled, enable/disable components.



· setWorldSpawn

Summary  |  Top
   private void setWorldSpawn() 

Worldspawn toggled, enable/disable components.



· windowClosingOnA

Summary  |  Top
   public final void windowClosingOnA(WindowEvent we) 

Dialog closed or user chose Cancel.

Parameter Description
we The window closing event.

Implements:
windowClosingOnA in interface WindowClosingOnAListener


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7