com.tensegrity.gui.swing.document
Class NavigatorDocument

java.lang.Object
  extended bycom.tensegrity.gui.document.AbstractDocument
      extended bycom.tensegrity.gui.swing.document.SwingDocument
          extended bycom.tensegrity.gui.swing.document.NavigatorDocument
All Implemented Interfaces:
Container, Document, Observer

public class NavigatorDocument
extends SwingDocument

This class is derived from the base document class and represents a navigator document. This class is merely a bridge to the underlying navigator panel and works as glue only. Calls have to be done on the internally kept reference of the content.

Version:
$Id: NavigatorDocument.java,v 1.4 2004/06/29 09:23:31 sr Exp $
Author:
Stepan Rutz

Field Summary
 
Fields inherited from interface com.tensegrity.gui.document.Document
GLUE_LEFTBOTTOM, GLUE_LEFTCENTEREXTEND, GLUE_LEFTTOP, GLUE_RIGHTBOTTOM, GLUE_RIGHTCENTEREXTEND, GLUE_RIGHTTOP, TYPE_FIXED_SIZE, TYPE_PACK_IS_OK, TYPE_TOOLDOCUMENT
 
Constructor Summary
NavigatorDocument(java.lang.String name, javax.swing.JPanel navigatorpanel)
          Constructor for NavigatorDocument.
 
Method Summary
 int getFlags()
          Returns the flags of this document.
 javax.swing.JComponent getJComponent()
          Returns the embedded Jcomponent as JComponent.
 void update(Observable o, java.lang.Object arg)
          Triggers a repaint.
 
Methods inherited from class com.tensegrity.gui.swing.document.SwingDocument
getApplicationFrame
 
Methods inherited from class com.tensegrity.gui.document.AbstractDocument
closeHandler, getCopyCounter, getDocumentDataProvider, getDocumentSetting, getDocumentSettings, getFile, getName, isModified, setDocumentSetting, setDocumentSettings, setFile, setModified, setName, setSelected, setUnmodified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigatorDocument

public NavigatorDocument(java.lang.String name,
                         javax.swing.JPanel navigatorpanel)
Constructor for NavigatorDocument.

Parameters:
name - the document's name.
navigatorpanel - panel that acts as the navigator.
Method Detail

getFlags

public int getFlags()
Returns the flags of this document.

Specified by:
getFlags in interface Document
Overrides:
getFlags in class AbstractDocument
Returns:
the flags of this document.

getJComponent

public javax.swing.JComponent getJComponent()
Returns the embedded Jcomponent as JComponent.

Overrides:
getJComponent in class SwingDocument
Returns:
the embedded Jcomponent as JComponent.

update

public void update(Observable o,
                   java.lang.Object arg)
Description copied from class: AbstractDocument
Triggers a repaint.

Specified by:
update in interface Observer
Overrides:
update in class SwingDocument


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.