flatscape
Class Flatscape

java.lang.Object
  |
  +--manifold.se.AbstractViewer
        |
        +--flatscape.Flatscape
All Implemented Interfaces:
DocumentListener, Viewer
Direct Known Subclasses:
Pocketscape

public class Flatscape
extends AbstractViewer

The main class of the Flatscape 2D collaborative editor.

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
manifold %Version%
Version:
%Version%, %Time%

Field Summary
protected  FCanvas canvas_
          The canvas
static java.lang.String CONFIG
           
static boolean DEBUG
           
protected  javax.swing.JDesktopPane desktopPane_
           
protected  FMapLayer maplayer_
          The map layer
static java.lang.String NAME
           
protected  javax.swing.JPanel pane_
           
protected  javax.swing.JLabel statusLabel_
           
protected  java.util.List views_
           
 
Fields inherited from class manifold.se.AbstractViewer
components_
 
Constructor Summary
Flatscape()
           
 
Method Summary
 void addPane(javax.swing.JInternalFrame frame)
          Adds a pane to flatscape.
 void addView(View view)
          Adds a view to the viewer.
 FCanvas getCanvas()
           
 java.awt.Container getFlatscapePane()
          Returns the top-level pane of the Flatscape window, which contains the desktop pane, the menu bar, and the status bar.
 FMapLayer getMapLayer()
           
 java.awt.Container getPane()
           
protected  void initializeUI()
          Initialize the UI of Flatscape
protected  void loadConfig()
          Loads the configuration files.
static void main(java.lang.String[] args)
           
 void redraw()
          Redraws the view
 void redraw(Glyph requestor)
           
 void removeView(View view)
          Removes a content view from the viewer.
 void resetLayout()
           
 void setCanvas(FCanvas canvas)
          Adds a canvas to flatscape.
 void setMapLayer(FMapLayer maplayer)
          Sets the map layer of the viewer.
 void setStatus(java.lang.String status)
           
 java.util.Iterator views()
          Returns an iterator of all Views that have been added
 
Methods inherited from class manifold.se.AbstractViewer
addSelectionListener, documentAdded, documentNames, documentRemoved, getActiveDocument, getComponent, getController, getCurrentTool, getSceneGraph, getSelection, getToolBar, getToolManager, getUser, removeSelectionListener, setActiveDocument, setController, setCurrentTool, setSceneGraph, setSelection, setSelection, setToolBar, setToolManager, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values

NAME

public static java.lang.String NAME

CONFIG

public static java.lang.String CONFIG

canvas_

protected FCanvas canvas_
The canvas


views_

protected java.util.List views_

pane_

protected javax.swing.JPanel pane_

desktopPane_

protected javax.swing.JDesktopPane desktopPane_

statusLabel_

protected javax.swing.JLabel statusLabel_

maplayer_

protected FMapLayer maplayer_
The map layer

Constructor Detail

Flatscape

public Flatscape()
Method Detail

main

public static void main(java.lang.String[] args)

loadConfig

protected void loadConfig()
Loads the configuration files.


initializeUI

protected void initializeUI()
Initialize the UI of Flatscape


setCanvas

public void setCanvas(FCanvas canvas)
Adds a canvas to flatscape.


getCanvas

public FCanvas getCanvas()

setMapLayer

public void setMapLayer(FMapLayer maplayer)
Sets the map layer of the viewer.

Parameters:
maplayer - the map layer

getMapLayer

public FMapLayer getMapLayer()

addView

public void addView(View view)
Adds a view to the viewer. It is up to the implemetation of the viewer how the view is added, and if multiple views are allowed.

Specified by:
addView in class AbstractViewer
Parameters:
view - the view to be added

removeView

public void removeView(View view)
Removes a content view from the viewer.

Specified by:
removeView in class AbstractViewer
Parameters:
view - the view to be removed

views

public java.util.Iterator views()
Returns an iterator of all Views that have been added

Specified by:
views in class AbstractViewer
Returns:
an Iterator of View objects

addPane

public void addPane(javax.swing.JInternalFrame frame)
Adds a pane to flatscape.


resetLayout

public void resetLayout()

getFlatscapePane

public java.awt.Container getFlatscapePane()
Returns the top-level pane of the Flatscape window, which contains the desktop pane, the menu bar, and the status bar. Set this as the content pane of a new window to enbed Flatscape in it.


getPane

public java.awt.Container getPane()
Specified by:
getPane in class AbstractViewer
Returns:
the content pane of this viewer

setStatus

public void setStatus(java.lang.String status)

redraw

public void redraw(Glyph requestor)

redraw

public void redraw()
Description copied from interface: Viewer
Redraws the view



Copyright (c) 2003 Rutgers, The State University of New Jersey