Package net.ontopia.topicmaps.viz
Interface ApplicationContextIF
-
- All Known Implementing Classes:
AppletContext,ApplicationContext,DesktopContext
public interface ApplicationContextIFEXPERIMENTAL: Interface to define the application context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfocusNode(TMAbstractNode aNode)Set the node as the focus of the mapTypesConfigFramegetAssocFrame()Display the configuration frame for associations (edges)intgetDefaultLocality()Get the default locality for the application.TopicIFgetDefaultScopingTopic(TopicMapIF aTopicmap)Get the default scoping topicParsedMenuFilegetEnabledItemIds()Return the menu of enabled itemsintgetMaxLocality()Returns the maximum number of nodes (locality) to display linked to the central node.TopicIFgetStartTopic(TopicMapIF aTopicmap)Return the start topic defined on the mapTopicIFgetTopicForLocator(LocatorIF locator, TopicMapIF aTopicmap)Returns the topic with the given subject identifier, if any.TypesConfigFramegetTopicFrame()Display the configuration frame for topicsvoidgoToTopic(TopicIF aTopic)Set the focus of the map to the specified topicbooleanisApplet()Is this an applet?voidloadTopic(TopicIF aTopic)Get 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.voidsetTmConfig(VizTopicMapConfigurationManager config)Store the TopicMapConfigurationvoidsetView(TopicMapView view)Set the viewvoidsetVizPanel(VizPanel panel)Store the panel containing the map
-
-
-
Method Detail
-
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
void goToTopic(TopicIF aTopic)
Set the focus of the map to the specified topic- Parameters:
aTopic- Topic to set as the central focus
-
openPropertiesURL
void openPropertiesURL(String aUrl)
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
void setStartTopic(TopicIF aTopic)
Assign the starting topic of the map to display.- Parameters:
aTopic- Start Topic
-
getTopicForLocator
TopicIF getTopicForLocator(LocatorIF locator, TopicMapIF aTopicmap)
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
void loadTopic(TopicIF aTopic)
Get a topic from the associated store- Parameters:
aTopic- to read from the store
-
focusNode
void focusNode(TMAbstractNode aNode)
Set the node as the focus of the map- Parameters:
aNode- node to focus on
-
setScopingTopic
void setScopingTopic(TopicIF aScope)
Set the scoping topic for the map- Parameters:
aScope- topic to set scope
-
getDefaultScopingTopic
TopicIF getDefaultScopingTopic(TopicMapIF aTopicmap)
Get the default scoping topic- Parameters:
aTopicmap- map that contains the topic- Returns:
- default scoping topic
-
getStartTopic
TopicIF getStartTopic(TopicMapIF aTopicmap)
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
void setVizPanel(VizPanel panel)
Store the panel containing the map- Parameters:
panel- to save
-
setTmConfig
void setTmConfig(VizTopicMapConfigurationManager config)
Store the TopicMapConfiguration- Parameters:
config- to save
-
setView
void setView(TopicMapView view)
Set the view- Parameters:
view- to set
-
-