uk.ac.ed.morphml_viewer
Class View

java.lang.Object
  extended by uk.ac.ed.morphml_viewer.View

public class View
extends Object

The View object contains two nested classes, one which handles the AWT/Swing components of the view and a second which handle the Java3D components of the view.

Author:
nix

Field Summary
static int NETBEANS_MODULE_VIEW
           
static int STANDALONE_VIEW
           
 
Constructor Summary
View(Model model, int view_type)
          Constructs a new View
 
Method Summary
 Container getContainer()
          Returns the container
 Model getModel()
          Returns the model
static File selectFileToOpen()
          Pops up a file chooser allowing the file to be opened to be selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDALONE_VIEW

public static final int STANDALONE_VIEW
See Also:
Constant Field Values

NETBEANS_MODULE_VIEW

public static final int NETBEANS_MODULE_VIEW
See Also:
Constant Field Values
Constructor Detail

View

public View(Model model,
            int view_type)
Constructs a new View

Parameters:
model - the applications model
Method Detail

selectFileToOpen

public static File selectFileToOpen()
Pops up a file chooser allowing the file to be opened to be selected.

Returns:
file to open

getModel

public Model getModel()
Returns the model

Returns:
the model

getContainer

public Container getContainer()
Returns the container

Returns:
the container