Package net.ontopia.topicmaps.viz
Interface ApplicationContextIF
- All Known Implementing Classes:
AppletContext,ApplicationContext,DesktopContext
public interface ApplicationContextIF
EXPERIMENTAL: Interface to define the application context.
-
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 locator, TopicMapIF aTopicmap) 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.voidStore the TopicMapConfigurationvoidsetView(TopicMapView view) Set the viewvoidsetVizPanel(VizPanel panel) Store the panel containing the map
-
Method Details
-
getMaxLocality
int getMaxLocality()Returns 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
-
getAssocFrame
TypesConfigFrame getAssocFrame()Display the configuration frame for associations (edges)- Returns:
- The association configuration frame
-
getTopicFrame
TypesConfigFrame getTopicFrame()Display the configuration frame for topics- Returns:
- the topic configuration frame
-
getDefaultLocality
int getDefaultLocality()Get the default locality for the application. This is usually 1- Returns:
- the default locality
-
isApplet
boolean isApplet()Is this an applet?- Returns:
- boolean indicating if this context is an applet
-
goToTopic
Set the focus of the map to the specified topic- Parameters:
aTopic- Topic to set as the central focus
-
openPropertiesURL
Opens 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
Assign the starting topic of the map to display.- Parameters:
aTopic- Start Topic
-
getTopicForLocator
Returns the topic with the given subject identifier, if any.- Parameters:
locator- the subject identifieraTopicmap- the topic map to look up in- Returns:
- topic with given subject identifier (or null if none)
-
loadTopic
Get a topic from the associated store- Parameters:
aTopic- to read from the store
-
focusNode
Set the node as the focus of the map- Parameters:
aNode- node to focus on
-
setScopingTopic
Set the scoping topic for the map- Parameters:
aScope- topic to set scope
-
getDefaultScopingTopic
Get the default scoping topic- Parameters:
aTopicmap- map that contains the topic- Returns:
- default scoping topic
-
getStartTopic
Return the start topic defined on the map- Parameters:
aTopicmap- map containing topic- Returns:
- start topic
-
getEnabledItemIds
ParsedMenuFile getEnabledItemIds()Return the menu of enabled items- Returns:
- menu containing enabled items
-
setVizPanel
Store the panel containing the map- Parameters:
panel- to save
-
setTmConfig
Store the TopicMapConfiguration- Parameters:
config- to save
-
setView
Set the view- Parameters:
view- to set
-