net.ontopia.topicmaps.viz
Class VizDesktop

java.lang.Object
  extended by net.ontopia.topicmaps.viz.VizDesktop
All Implemented Interfaces:
VizFrontEndIF

public class VizDesktop
extends java.lang.Object
implements VizFrontEndIF

INTERNAL: The top-level class for the VizDesktop. Can be run from the command-line to produce the desktop UI.


Nested Class Summary
protected  class VizDesktop.DynamicMenuListener
           
protected  class VizDesktop.ScopeActionListener
          INTERNAL.
 
Constructor Summary
VizDesktop(java.lang.String[] args)
           
 
Method Summary
protected  void addRDBMSImportMenuItem(javax.swing.JMenu containingMenu)
           
 void configureFilterMenus()
          Set up the menus to control the filters
 TypesConfigFrame getAssocFrame()
           
 java.lang.String getConfigURL()
          Get the URL of the config file
 ApplicationContextIF getContext()
          Get the appropriate ApplicationContextIF for this front end.
 java.lang.String getCurrentConfigDir()
           
 java.lang.String getCurrentRDBMSDir()
           
 TopicMapIF getCurrentTopicMap()
           
 java.lang.String getCurrentTopicMapDirectory()
           
 boolean getDefaultControlsVisible()
          Are the controls to this front end visible by default?
 TypesConfigFrame getTopicFrame()
           
 TopicMapIF getTopicMap()
          Return the topic map that this front end is displaying
 TypesConfigFrame getTypesConfigFrame(VizController controller, boolean isTopicConfig)
          Returns the configuration frame that can be used to set colors for either Topics or Associations
 java.awt.Component getVpanel()
           
 java.lang.String getWallpaper()
          Get the url of the wallpaper for the background.
 void loadTopicMap(TopicMapReferenceIF tmReference, java.lang.String configFilePath)
           
static void main(java.lang.String[] argv)
          Simple main to allow stand-alone startup.
 boolean mapPreLoaded()
          Return true if this front end loads the topic map before generating any display, false if the display is generated before the map is loaded.
protected  void menuOpenAssociationConfig()
           
protected  void menuOpenTopicConfig()
           
protected  void resetClearStartMenu()
           
protected  void resetMapViewMenu()
           
protected  void resetStartTopicMenu()
           
protected  void scopingTopicChanged(TopicIF scope)
           
 void setCurrentConfigDir(java.lang.String dir)
           
 void setCurrentRDBMSDir(java.lang.String dir)
           
 void setCurrentTopicMapDirectory(java.lang.String currentTMDir)
           
 void setNewTypeColor(TopicIF type, java.awt.Color c)
          Called from the color configuration menu when the color for a topic or association type is changed.
 void setScopingTopic(TopicIF topic)
           
protected static void usage()
           
 boolean useGeneralConfig()
          Does this front end use the general configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VizDesktop

public VizDesktop(java.lang.String[] args)
Method Detail

main

public static void main(java.lang.String[] argv)
Simple main to allow stand-alone startup. Optionally can provide an initial topicmap to load.


usage

protected static void usage()

getTopicFrame

public TypesConfigFrame getTopicFrame()

getAssocFrame

public TypesConfigFrame getAssocFrame()

resetMapViewMenu

protected void resetMapViewMenu()

addRDBMSImportMenuItem

protected void addRDBMSImportMenuItem(javax.swing.JMenu containingMenu)

resetClearStartMenu

protected void resetClearStartMenu()

scopingTopicChanged

protected void scopingTopicChanged(TopicIF scope)

setScopingTopic

public void setScopingTopic(TopicIF topic)

configureFilterMenus

public void configureFilterMenus()
Description copied from interface: VizFrontEndIF
Set up the menus to control the filters

Specified by:
configureFilterMenus in interface VizFrontEndIF

loadTopicMap

public void loadTopicMap(TopicMapReferenceIF tmReference,
                         java.lang.String configFilePath)
                  throws java.io.IOException
Throws:
java.io.IOException

setNewTypeColor

public void setNewTypeColor(TopicIF type,
                            java.awt.Color c)
Called from the color configuration menu when the color for a topic or association type is changed.

Specified by:
setNewTypeColor in interface VizFrontEndIF

menuOpenAssociationConfig

protected void menuOpenAssociationConfig()

menuOpenTopicConfig

protected void menuOpenTopicConfig()

getCurrentTopicMapDirectory

public java.lang.String getCurrentTopicMapDirectory()

setCurrentTopicMapDirectory

public void setCurrentTopicMapDirectory(java.lang.String currentTMDir)

getCurrentRDBMSDir

public java.lang.String getCurrentRDBMSDir()

setCurrentRDBMSDir

public void setCurrentRDBMSDir(java.lang.String dir)

getCurrentConfigDir

public java.lang.String getCurrentConfigDir()

setCurrentConfigDir

public void setCurrentConfigDir(java.lang.String dir)

getCurrentTopicMap

public TopicMapIF getCurrentTopicMap()

resetStartTopicMenu

protected void resetStartTopicMenu()

getVpanel

public java.awt.Component getVpanel()

getContext

public ApplicationContextIF getContext()
Description copied from interface: VizFrontEndIF
Get the appropriate ApplicationContextIF for this front end.

Specified by:
getContext in interface VizFrontEndIF
Returns:
ApplicationContextIF for this front end

getDefaultControlsVisible

public boolean getDefaultControlsVisible()
Description copied from interface: VizFrontEndIF
Are the controls to this front end visible by default?

Specified by:
getDefaultControlsVisible in interface VizFrontEndIF
Returns:
true if the controls should be visible by default, false otherwise.

getTypesConfigFrame

public TypesConfigFrame getTypesConfigFrame(VizController controller,
                                            boolean isTopicConfig)
Description copied from interface: VizFrontEndIF
Returns the configuration frame that can be used to set colors for either Topics or Associations

Specified by:
getTypesConfigFrame in interface VizFrontEndIF
isTopicConfig - - is this a Topic or Association configuration frame
Returns:
configuration frame - if True return TopicConfigurationFrame, else return AssociationConfigFrame

mapPreLoaded

public boolean mapPreLoaded()
Description copied from interface: VizFrontEndIF
Return true if this front end loads the topic map before generating any display, false if the display is generated before the map is loaded. In general, front ends that do not allow for the map to be changed (servlets, etc) will pass in a single map, while the desktop application allows you to load and change the map.

Specified by:
mapPreLoaded in interface VizFrontEndIF
Returns:
true if the map is loaded before the display is initialized, false otherwise

getTopicMap

public TopicMapIF getTopicMap()
Description copied from interface: VizFrontEndIF
Return the topic map that this front end is displaying

Specified by:
getTopicMap in interface VizFrontEndIF
Returns:
current topic map

getWallpaper

public java.lang.String getWallpaper()
Description copied from interface: VizFrontEndIF
Get the url of the wallpaper for the background.

Specified by:
getWallpaper in interface VizFrontEndIF
Returns:
URL of the wallpaper file, null if no wallpaper

getConfigURL

public java.lang.String getConfigURL()
Description copied from interface: VizFrontEndIF
Get the URL of the config file

Specified by:
getConfigURL in interface VizFrontEndIF
Returns:
URL of the config file, null if the default is to be used

useGeneralConfig

public boolean useGeneralConfig()
Description copied from interface: VizFrontEndIF
Does this front end use the general configuration. Some front ends (desktop) use the VizGeneralConfigurationManager, while others exclusively use the VizTopicMapConfigurationManager.

Specified by:
useGeneralConfig in interface VizFrontEndIF
Returns:
true if VizGeneralConfigurationManager is supported, false otherwise


Copyright © 2000-2012 Ontopia.