Package net.ontopia.topicmaps.viz
Class VizDesktop
java.lang.Object
net.ontopia.topicmaps.viz.VizDesktop
- All Implemented Interfaces:
VizFrontEndIF
INTERNAL: The top-level class for the VizDesktop. Can be run from the
command-line to produce the desktop UI.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classINTERNAL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddRDBMSImportMenuItem(JMenu containingMenu) voidSet up the menus to control the filtersGet the URL of the config fileGet the appropriate ApplicationContextIF for this front end.booleanAre the controls to this front end visible by default?Return the topic map that this front end is displayinggetTypesConfigFrame(VizController controller, boolean isTopicConfig) Returns the configuration frame that can be used to set colors for either Topics or AssociationsGet the url of the wallpaper for the background.voidloadTopicMap(TopicMapReferenceIF tmReference, String configFilePath) static voidSimple main to allow stand-alone startup.booleanReturn 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 voidprotected voidprotected voidprotected voidprotected voidprotected voidscopingTopicChanged(TopicIF scope) voidvoidsetCurrentRDBMSDir(String dir) voidsetCurrentTopicMapDirectory(String currentTMDir) voidsetNewTypeColor(TopicIF type, Color c) Called from the color configuration menu when the color for a topic or association type is changed.voidsetScopingTopic(TopicIF topic) protected static voidusage()booleanDoes this front end use the general configuration.
-
Constructor Details
-
VizDesktop
-
-
Method Details
-
main
Simple main to allow stand-alone startup. Optionally can provide an initial topicmap to load. -
usage
protected static void usage() -
getTopicFrame
-
getAssocFrame
-
resetMapViewMenu
protected void resetMapViewMenu() -
addRDBMSImportMenuItem
-
resetClearStartMenu
protected void resetClearStartMenu() -
scopingTopicChanged
-
setScopingTopic
-
configureFilterMenus
public void configureFilterMenus()Description copied from interface:VizFrontEndIFSet up the menus to control the filters- Specified by:
configureFilterMenusin interfaceVizFrontEndIF
-
loadTopicMap
- Throws:
IOException
-
setNewTypeColor
Called from the color configuration menu when the color for a topic or association type is changed.- Specified by:
setNewTypeColorin interfaceVizFrontEndIF
-
getCurrentTopicMapDirectory
-
setCurrentTopicMapDirectory
-
getCurrentRDBMSDir
-
setCurrentRDBMSDir
-
getCurrentConfigDir
-
setCurrentConfigDir
-
getCurrentTopicMap
-
resetStartTopicMenu
protected void resetStartTopicMenu() -
getVpanel
-
getContext
Description copied from interface:VizFrontEndIFGet the appropriate ApplicationContextIF for this front end.- Specified by:
getContextin interfaceVizFrontEndIF- Returns:
- ApplicationContextIF for this front end
-
getDefaultControlsVisible
public boolean getDefaultControlsVisible()Description copied from interface:VizFrontEndIFAre the controls to this front end visible by default?- Specified by:
getDefaultControlsVisiblein interfaceVizFrontEndIF- Returns:
- true if the controls should be visible by default, false otherwise.
-
getTypesConfigFrame
Description copied from interface:VizFrontEndIFReturns the configuration frame that can be used to set colors for either Topics or Associations- Specified by:
getTypesConfigFramein interfaceVizFrontEndIFisTopicConfig- - 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:VizFrontEndIFReturn 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:
mapPreLoadedin interfaceVizFrontEndIF- Returns:
- true if the map is loaded before the display is initialized, false otherwise
-
getTopicMap
Description copied from interface:VizFrontEndIFReturn the topic map that this front end is displaying- Specified by:
getTopicMapin interfaceVizFrontEndIF- Returns:
- current topic map
-
getWallpaper
Description copied from interface:VizFrontEndIFGet the url of the wallpaper for the background.- Specified by:
getWallpaperin interfaceVizFrontEndIF- Returns:
- URL of the wallpaper file, null if no wallpaper
-
getConfigURL
Description copied from interface:VizFrontEndIFGet the URL of the config file- Specified by:
getConfigURLin interfaceVizFrontEndIF- Returns:
- URL of the config file, null if the default is to be used
-
useGeneralConfig
public boolean useGeneralConfig()Description copied from interface:VizFrontEndIFDoes this front end use the general configuration. Some front ends (desktop) use the VizGeneralConfigurationManager, while others exclusively use the VizTopicMapConfigurationManager.- Specified by:
useGeneralConfigin interfaceVizFrontEndIF- Returns:
- true if VizGeneralConfigurationManager is supported, false otherwise
-