jET
1.0beta1


org.jet
Class Jet

java.lang.Object
  |
  +--org.jet.Jet

public class Jet
extends java.lang.Object

jET application. Entry point. Creates frame, menu, reads configuration file.


Field Summary
 Configuration config
          Current configuration.
 
Constructor Summary
Jet()
          Creates frame and initializes everything.
 
Method Summary
 void addSceneryFrame(SceneryFrame sf)
          Adds scenery frame to the application workspace (desktop pane).
protected  void closeApplication()
          Invoked when application is going to closes.
protected  javax.swing.JDesktopPane createDesktopPane()
          Creates application workspace for internal frames.
protected  javax.swing.JMenuBar createMenu()
          Create main menu.
protected  javax.swing.JToolBar createStandardBar()
          Creates standard toolbar.
protected  javax.swing.JLabel createStatusBar()
          Creates status bar at bottom of application's window.
protected  javax.swing.JComboBox createZoomCombo()
          Creates zoom combo box.
protected  void emptySceneryFrame()
          Creates new scenery frame and adds it to the application workspace (desktop pane).
 javax.swing.JDesktopPane getDesktopPane()
          Gets application desktop workspace.
 java.util.Vector getEditorFrames()
          Gets scenery collection.
 javax.swing.filechooser.FileFilter getFileFilter()
          Gets the file filter used in file chooser dialogs.
 javax.swing.JFrame getFrame()
          Gets a frame of application.
 SceneryFrame getTopmostFrame()
          Gets topmost scenery frame within the desktop.
static double grid(double d)
          Converts full double resolution to double with 3 fractional digits.
protected  void installActions()
          Registers all actions.
protected  void installListeners()
          Installs all listeners.
static void main(java.lang.String[] args)
          Entry point to the application.
protected  void openSceneryFrame(java.io.File file)
          Creates scenery frame with file and adds it to the application workspace.
 void removeSceneryFrame(SceneryFrame sf)
          Removes scenery frame from application workspace (desktop pane).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

public Configuration config
Current configuration.

Constructor Detail

Jet

public Jet()
Creates frame and initializes everything.

Method Detail

main

public static void main(java.lang.String[] args)
Entry point to the application.

Parameters:
args - Command line.

grid

public static double grid(double d)
Converts full double resolution to double with 3 fractional digits.

Parameters:
d - Double to convert.
Returns:
Converted value.

createMenu

protected javax.swing.JMenuBar createMenu()
Create main menu.

Returns:
Menu.

createStandardBar

protected javax.swing.JToolBar createStandardBar()
Creates standard toolbar.

Returns:
Standard toolbar.

createZoomCombo

protected javax.swing.JComboBox createZoomCombo()
Creates zoom combo box.

Returns:
Combo box.

createDesktopPane

protected javax.swing.JDesktopPane createDesktopPane()
Creates application workspace for internal frames.

Returns:
Application workspace (desktop pane).

createStatusBar

protected javax.swing.JLabel createStatusBar()
Creates status bar at bottom of application's window.

Returns:
Status bar.

getFrame

public javax.swing.JFrame getFrame()
Gets a frame of application.

Returns:
Frame of application.

addSceneryFrame

public void addSceneryFrame(SceneryFrame sf)
Adds scenery frame to the application workspace (desktop pane).

Parameters:
sf - Scenery frame to add.

removeSceneryFrame

public void removeSceneryFrame(SceneryFrame sf)
Removes scenery frame from application workspace (desktop pane).

Parameters:
sf - Removing scenery frame.

emptySceneryFrame

protected void emptySceneryFrame()
Creates new scenery frame and adds it to the application workspace (desktop pane).


openSceneryFrame

protected void openSceneryFrame(java.io.File file)
Creates scenery frame with file and adds it to the application workspace.

Parameters:
file - Open file.

getEditorFrames

public java.util.Vector getEditorFrames()
Gets scenery collection.


getDesktopPane

public javax.swing.JDesktopPane getDesktopPane()
Gets application desktop workspace.


closeApplication

protected void closeApplication()
Invoked when application is going to closes.


getFileFilter

public javax.swing.filechooser.FileFilter getFileFilter()
Gets the file filter used in file chooser dialogs.

jET uses following pattern: *.sc*.

Returns:
Application file filter.

installActions

protected void installActions()
Registers all actions.


installListeners

protected void installListeners()
Installs all listeners.


getTopmostFrame

public SceneryFrame getTopmostFrame()
Gets topmost scenery frame within the desktop.

Returns:
Topmost scenery frame or null if there is no scenery frames at now.

jET
1.0beta1