Class VizDesktop

  • All Implemented Interfaces:
    VizFrontEndIF

    public class VizDesktop
    extends Object
    implements VizFrontEndIF
    INTERNAL: The top-level class for the VizDesktop. Can be run from the command-line to produce the desktop UI.
    • Constructor Detail

      • VizDesktop

        public VizDesktop​(String[] args)
    • Method Detail

      • main

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

        protected static void usage()
      • resetMapViewMenu

        protected void resetMapViewMenu()
      • addRDBMSImportMenuItem

        protected void addRDBMSImportMenuItem​(JMenu containingMenu)
      • resetClearStartMenu

        protected void resetClearStartMenu()
      • scopingTopicChanged

        protected void scopingTopicChanged​(TopicIF scope)
      • setScopingTopic

        public void setScopingTopic​(TopicIF topic)
      • setNewTypeColor

        public void setNewTypeColor​(TopicIF type,
                                    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 String getCurrentTopicMapDirectory()
      • setCurrentTopicMapDirectory

        public void setCurrentTopicMapDirectory​(String currentTMDir)
      • getCurrentRDBMSDir

        public String getCurrentRDBMSDir()
      • setCurrentRDBMSDir

        public void setCurrentRDBMSDir​(String dir)
      • getCurrentConfigDir

        public String getCurrentConfigDir()
      • setCurrentConfigDir

        public void setCurrentConfigDir​(String dir)
      • getCurrentTopicMap

        public TopicMapIF getCurrentTopicMap()
      • resetStartTopicMenu

        protected void resetStartTopicMenu()
      • 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
      • getWallpaper

        public 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 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