Package net.ontopia.topicmaps.viz
Class DesktopContext
java.lang.Object
net.ontopia.topicmaps.viz.ApplicationContext
net.ontopia.topicmaps.viz.DesktopContext
- All Implemented Interfaces:
ApplicationContextIF
EXPERIMENTAL: Information for the VizDesktop version of Vizigator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfocusNode(TMAbstractNode aNode) Set the node as the focus of the mapDisplay the configuration frame for associations (edges)intGet the default locality for the application.getDefaultScopingTopic(TopicMapIF aTopicmap) Get the default scoping topicReturn the menu of enabled itemsintReturns the maximum number of nodes (locality) to display linked to the central node.getStartTopic(TopicMapIF aTopicmap) Return the start topic defined on the mapgetTopicForLocator(LocatorIF aLocator, TopicMapIF topicmap) Returns the topic with the given subject identifier, if any.Display the configuration frame for topicsvoidSet the focus of the map to the specified topicbooleanisApplet()Is this an applet?voidGet a topic from the associated storevoidopenPropertiesURL(String aUrl) Opens the supplied url string in a browser window.voidsetScopingTopic(TopicIF aScope) Set the scoping topic for the mapvoidsetStartTopic(TopicIF aTopic) Assign the starting topic of the map to display.Methods inherited from class net.ontopia.topicmaps.viz.ApplicationContext
getTmConfig, getView, getVizPanel, setTmConfig, setView, setVizPanel
-
Constructor Details
-
DesktopContext
-
-
Method Details
-
goToTopic
Description copied from interface:ApplicationContextIFSet the focus of the map to the specified topic- Parameters:
topic- Topic to set as the central focus
-
isApplet
public boolean isApplet()Description copied from interface:ApplicationContextIFIs this an applet?- Returns:
- boolean indicating if this context is an applet
-
openPropertiesURL
Description copied from interface:ApplicationContextIFOpens the supplied url string in a browser window. Which window is used is defined by the 'propTarget' applet parameter. Does nothing for non applet context.- Parameters:
aUrl- String representing the target url
-
setStartTopic
Description copied from interface:ApplicationContextIFAssign the starting topic of the map to display.- Parameters:
aTopic- Start Topic
-
getTopicForLocator
Description copied from interface:ApplicationContextIFReturns the topic with the given subject identifier, if any.- Parameters:
aLocator- the subject identifiertopicmap- the topic map to look up in- Returns:
- topic with given subject identifier (or null if none)
-
loadTopic
Description copied from interface:ApplicationContextIFGet a topic from the associated store- Parameters:
aTopic- to read from the store
-
focusNode
Description copied from interface:ApplicationContextIFSet the node as the focus of the map- Parameters:
aNode- node to focus on
-
setScopingTopic
Description copied from interface:ApplicationContextIFSet the scoping topic for the map- Parameters:
aScope- topic to set scope
-
getDefaultScopingTopic
Description copied from interface:ApplicationContextIFGet the default scoping topic- Parameters:
aTopicmap- map that contains the topic- Returns:
- default scoping topic
-
getStartTopic
Description copied from interface:ApplicationContextIFReturn the start topic defined on the map- Parameters:
aTopicmap- map containing topic- Returns:
- start topic
-
getDefaultLocality
public int getDefaultLocality()Description copied from interface:ApplicationContextIFGet the default locality for the application. This is usually 1- Returns:
- the default locality
-
getMaxLocality
public int getMaxLocality()Description copied from interface:ApplicationContextIFReturns the maximum number of nodes (locality) to display linked to the central node. Large numbers (> 3) can have a significant performance impact when used, especially for large maps- Returns:
- the maximum allowed locality
-
getEnabledItemIds
Description copied from interface:ApplicationContextIFReturn the menu of enabled items- Returns:
- menu containing enabled items
-
getAssocFrame
Description copied from interface:ApplicationContextIFDisplay the configuration frame for associations (edges)- Returns:
- The association configuration frame
-
getTopicFrame
Description copied from interface:ApplicationContextIFDisplay the configuration frame for topics- Returns:
- the topic configuration frame
-