|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.viz.VizController
public class VizController
INTERNAL: The VizController manages the interaction between the gui, model and configuration manager.
Nested Class Summary | |
---|---|
protected class |
VizController.VizHoverHelpManager
INTERNAL: Hover Help Manager |
Field Summary | |
---|---|
protected boolean |
showNeighbouringCircle
|
protected boolean |
showNeighboursOnMouseover
|
protected UndoManager |
undoManager
|
Constructor Summary | |
---|---|
VizController(VizPanel vpanel,
VizFrontEndIF vizFrontEnd,
com.touchgraph.graphlayout.TGPanel aTgPanel)
|
Method Summary | |
---|---|
protected void |
addToHidden(TMAbstractNode target,
com.touchgraph.graphlayout.Node source,
java.util.Vector hidden)
|
boolean |
canRedo()
|
boolean |
canUndo()
|
void |
clearStartTopic()
|
void |
collapseNode(TMAbstractNode node)
|
void |
configure(AssociationScopeFilterMenu menu,
TopicMapIF topicmap,
java.awt.event.ActionListener parentListener)
Configure the given AssociationScopeFilterMenu |
void |
enableAnimation(boolean enable)
Enables/disables animation. |
void |
enableMotionKiller(boolean enable)
Enables/disables the motion killer. |
void |
expandNode(TMAbstractNode node)
|
void |
focusNode(TMAbstractNode node)
Set the given node to be the focus node. |
void |
focusNodeInternal(TMAbstractNode node)
Set the given node to be the focus node. |
void |
focusStartTopic()
|
void |
focusStartTopicInternal()
|
java.util.Collection |
getAllTopicTypes()
|
java.util.Collection |
getAllTopicTypesWithNull()
|
TypesConfigFrame |
getAssocFrame()
|
int |
getAssociationScopeFilterStrictness()
|
java.awt.Color |
getAssociationTypeColor(TopicIF type)
|
java.util.Collection |
getAssociationTypes()
|
int |
getAssoicationTypeLineWeight(TopicIF selectedType)
|
int |
getAssoicationTypeShape(TopicIF selectedType)
|
VizTopicMapConfigurationManager |
getConfigurationManager()
|
java.lang.String |
getCurrentConfigDir()
|
java.lang.String |
getCurrentRDBMSDir()
|
java.lang.String |
getCurrentTMDir()
|
int |
getDefaultLocality()
|
TopicIF |
getDefaultScopingTopic(TopicMapIF topicmap)
|
ParsedMenuFile |
getEnabledItemIds()
|
TMAbstractNode |
getFocusNode()
|
protected VizController.VizHoverHelpManager |
getHoverHelpManager()
|
boolean |
getIgnoreStateChangedEvent()
Required because the colour chooser will trigger the setTypeColor method when the selected is colour is changed by Vizigator (no user input). |
int |
getMaxLocality()
|
java.lang.String |
getRdfMappingFile()
|
java.util.List |
getRecentFiles()
|
TopicIF |
getStartTopic()
|
TopicIF |
getStartTopic(TopicMapIF aTopicmap)
|
StringifierIF |
getStringifier()
|
TypesConfigFrame |
getTopicFrame()
|
TopicMapIF |
getTopicMap()
|
java.awt.Color |
getTopicTypeColor(TopicIF type)
|
int |
getTopicTypeShape(TopicIF type)
|
int |
getTopicTypeShapePadding(TopicIF selectedType)
|
java.awt.Font |
getTypeFont(TopicIF selectedType)
|
javax.swing.Icon |
getTypeIcon(TopicIF selectedType)
|
java.lang.String |
getTypeIconFilename(TopicIF selectedType)
|
int |
getTypeVisibility(TopicIF selectedType)
|
TopicMapView |
getView()
|
VizPanel |
getVizPanel()
|
void |
goToMapView()
|
void |
goToTopic(TopicIF topic)
|
boolean |
hasTopicMap()
|
void |
hideEdge(TMAbstractEdge edge)
|
void |
hideNode(TMAbstractNode node)
Delete a node, all incident edges and all nodes and edges that no longer have a path to the focus node as a consequence of this. |
void |
initializeMotionKillerEnabled()
|
boolean |
isAnimationEnabled()
|
boolean |
isApplet()
|
boolean |
isAssocTypeVisible(TopicIF type)
|
boolean |
isInAssociationScopeFilter(TopicIF scope)
|
boolean |
isMotionKillerEnabled()
|
boolean |
isTopicTypeVisible(TopicIF type)
|
void |
loadAssociationTypes()
|
void |
loadConfig(java.io.File f)
|
void |
loadNode(TMAbstractNode node)
|
void |
loadTopic(TopicIF aTopic)
|
TopicMapIF |
loadTopicMap(java.io.File f)
|
TopicMapIF |
loadTopicMap(java.io.File tmfile,
java.io.File cfgfile)
|
TopicMapIF |
loadTopicMap(TopicMapIF topicMap)
|
TopicMapIF |
loadTopicMap(TopicMapIF topicmap,
java.io.File cfgfile)
|
void |
loadTopicTypes()
|
void |
openProperties(TMTopicNode node)
|
void |
openPropertiesURL(java.lang.String url)
Opens the supplied url string in a browser window. |
void |
outputDebugInfo(java.lang.String operation)
|
java.util.List |
performSearch(java.lang.String searchString)
|
void |
redo()
|
void |
saveGeneralConfiguration()
|
void |
saveTopicMapConfiguration(java.io.File file)
|
void |
setAllNodesFixed(boolean fixed)
Sets all nodes to fixed (sticky) or not fixed. |
void |
setAssociationScopeFilterStrictness(int strictness)
|
void |
setAssociationTypeLineWeight(TopicIF type,
int i)
|
void |
setAssociationTypeShape(TopicIF type,
int i)
|
void |
setAssociationTypeVisibility(TopicIF type,
int visibility)
|
void |
setAssociationTypeVisible(TopicIF type,
boolean visible)
|
void |
setColorToDefault(TopicIF type,
boolean topicType)
|
void |
setCurrentConfigDir(java.lang.String dir)
|
void |
setCurrentRDBMSDir(java.lang.String dir)
|
void |
setCurrentTMDir(java.lang.String currentTMDir)
|
void |
setFontToDefault(TopicIF type,
boolean topicType)
|
void |
setGeneralDoubleClick(int anAction)
|
void |
setGeneralLocalityAlgorithm(int anAction)
|
void |
setGeneralSingleClick(int anAction)
|
protected void |
setHighlightNode(TMAbstractNode node,
java.awt.Graphics g)
|
void |
setIgnoreStateChangedEvent(boolean ignoreStateChangedEvent)
|
void |
setInAssociationScopeFilter(TopicIF scope,
boolean useInFilter)
|
void |
setLocality(int locality)
|
void |
setMaxTopicNameLength(int length)
|
void |
setMotionKillerDelay(int seconds)
|
void |
setMotionKillerEnabled(boolean newValue)
|
void |
setPanelBackgroundColour(java.awt.Color aColor)
|
void |
setRdfMappingFile(java.io.File file)
|
void |
setScopingTopic(TopicIF aScope)
|
void |
setStartTopic(TopicIF topic)
|
void |
setTopicTypeShape(TopicIF type,
int i)
|
void |
setTopicTypeShapePadding(TopicIF type,
int i)
|
void |
setTopicTypeVisibility(TopicIF type,
int visibility)
|
void |
setTopicTypeVisible(TopicIF type,
boolean visible)
|
void |
setTypeColor(TopicIF type,
java.awt.Color c)
|
void |
setTypeExcluded(TopicIF type)
|
void |
setTypeFont(TopicIF type,
java.awt.Font font)
|
void |
setTypeIconFilename(TopicIF type,
java.lang.String string)
|
void |
setTypeIncluded(TopicIF type)
|
void |
shouldDisplayRoleHoverHelp(boolean newValue)
|
void |
shouldDisplayScopedAssociationNames(boolean newValue)
|
void |
stopMovingNodes()
Stops the motion of all nodes completely. |
void |
undo()
|
void |
updateRecentFiles(java.io.File f)
|
void |
updateViewType(TopicIF type)
|
void |
updateViewTypeColor(TopicIF type,
java.awt.Color color)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected UndoManager undoManager
protected boolean showNeighbouringCircle
protected boolean showNeighboursOnMouseover
Constructor Detail |
---|
public VizController(VizPanel vpanel, VizFrontEndIF vizFrontEnd, com.touchgraph.graphlayout.TGPanel aTgPanel)
Method Detail |
---|
public VizPanel getVizPanel()
public TopicMapView getView()
public TopicIF getDefaultScopingTopic(TopicMapIF topicmap)
public boolean hasTopicMap()
public boolean isApplet()
public java.util.Collection getAssociationTypes()
public java.util.Collection getAllTopicTypesWithNull()
public java.util.Collection getAllTopicTypes()
public boolean isAssocTypeVisible(TopicIF type)
public boolean isTopicTypeVisible(TopicIF type)
public java.awt.Color getTopicTypeColor(TopicIF type)
public TopicMapIF getTopicMap()
public int getTopicTypeShape(TopicIF type)
public java.awt.Color getAssociationTypeColor(TopicIF type)
public TopicIF getStartTopic()
public TopicIF getStartTopic(TopicMapIF aTopicmap)
public void setLocality(int locality)
public boolean getIgnoreStateChangedEvent()
public void setIgnoreStateChangedEvent(boolean ignoreStateChangedEvent)
public void updateViewTypeColor(TopicIF type, java.awt.Color color)
public void updateViewType(TopicIF type)
public void setColorToDefault(TopicIF type, boolean topicType)
public void setTypeColor(TopicIF type, java.awt.Color c)
public void focusNode(TMAbstractNode node)
node
- The new focus node.public void focusNodeInternal(TMAbstractNode node)
node
- The new focus node.public void setAllNodesFixed(boolean fixed)
fixed
- true(/false) if all nodes should get a (un)fixed position.public TMAbstractNode getFocusNode()
public void setStartTopic(TopicIF topic)
public void clearStartTopic()
public void openPropertiesURL(java.lang.String url)
url
- String representing the target urlpublic void goToTopic(TopicIF topic)
public void saveTopicMapConfiguration(java.io.File file) throws java.io.IOException
java.io.IOException
public void loadConfig(java.io.File f) throws java.io.IOException
java.io.IOException
public TopicMapIF loadTopicMap(java.io.File f) throws java.io.IOException
java.io.IOException
public TopicMapIF loadTopicMap(java.io.File tmfile, java.io.File cfgfile) throws java.io.IOException
java.io.IOException
public TopicMapIF loadTopicMap(TopicMapIF topicMap) throws java.io.IOException
java.io.IOException
public TopicMapIF loadTopicMap(TopicMapIF topicmap, java.io.File cfgfile) throws java.io.IOException
java.io.IOException
public int getDefaultLocality()
public int getMaxLocality()
protected void setHighlightNode(TMAbstractNode node, java.awt.Graphics g)
public VizTopicMapConfigurationManager getConfigurationManager()
public void setTopicTypeVisibility(TopicIF type, int visibility)
public void setAssociationTypeVisibility(TopicIF type, int visibility)
public void setTopicTypeVisible(TopicIF type, boolean visible)
public void setAssociationTypeVisible(TopicIF type, boolean visible)
public void goToMapView()
public void setTopicTypeShape(TopicIF type, int i)
public void setAssociationTypeShape(TopicIF type, int i)
public void setFontToDefault(TopicIF type, boolean topicType)
public void setTypeFont(TopicIF type, java.awt.Font font)
public void setAssociationTypeLineWeight(TopicIF type, int i)
public void setTopicTypeShapePadding(TopicIF type, int i)
public int getTypeVisibility(TopicIF selectedType)
public int getAssoicationTypeShape(TopicIF selectedType)
public int getAssoicationTypeLineWeight(TopicIF selectedType)
public int getTopicTypeShapePadding(TopicIF selectedType)
public java.lang.String getTypeIconFilename(TopicIF selectedType)
public javax.swing.Icon getTypeIcon(TopicIF selectedType)
public java.awt.Font getTypeFont(TopicIF selectedType)
public void setTypeIconFilename(TopicIF type, java.lang.String string)
public void openProperties(TMTopicNode node)
public void shouldDisplayRoleHoverHelp(boolean newValue)
public void initializeMotionKillerEnabled()
public void setMotionKillerEnabled(boolean newValue)
public void shouldDisplayScopedAssociationNames(boolean newValue)
public void setPanelBackgroundColour(java.awt.Color aColor)
public void setGeneralSingleClick(int anAction)
public void setGeneralLocalityAlgorithm(int anAction)
public void setMotionKillerDelay(int seconds)
public void setGeneralDoubleClick(int anAction)
public void setMaxTopicNameLength(int length)
public void setTypeIncluded(TopicIF type)
public void setTypeExcluded(TopicIF type)
public java.util.List performSearch(java.lang.String searchString)
public void loadNode(TMAbstractNode node)
public void outputDebugInfo(java.lang.String operation)
public void expandNode(TMAbstractNode node)
public StringifierIF getStringifier()
public void saveGeneralConfiguration() throws java.io.IOException
java.io.IOException
public void updateRecentFiles(java.io.File f)
public java.util.List getRecentFiles()
public java.lang.String getRdfMappingFile()
public void setRdfMappingFile(java.io.File file) throws java.io.IOException
java.io.IOException
public java.lang.String getCurrentTMDir()
public void setCurrentTMDir(java.lang.String currentTMDir) throws java.io.IOException
java.io.IOException
public java.lang.String getCurrentRDBMSDir()
public void setCurrentRDBMSDir(java.lang.String dir) throws java.io.IOException
java.io.IOException
public java.lang.String getCurrentConfigDir()
public void setCurrentConfigDir(java.lang.String dir) throws java.io.IOException
java.io.IOException
public void loadTopic(TopicIF aTopic)
public void collapseNode(TMAbstractNode node)
protected void addToHidden(TMAbstractNode target, com.touchgraph.graphlayout.Node source, java.util.Vector hidden)
public void focusStartTopic()
public void focusStartTopicInternal()
protected VizController.VizHoverHelpManager getHoverHelpManager()
public void setScopingTopic(TopicIF aScope)
public void configure(AssociationScopeFilterMenu menu, TopicMapIF topicmap, java.awt.event.ActionListener parentListener)
menu
- The menu to configure.topicmap
- The topicmap filtered by the filter of the menu.parentListener
- Listens for actions on the items in the menu.public void setInAssociationScopeFilter(TopicIF scope, boolean useInFilter)
public void setAssociationScopeFilterStrictness(int strictness)
public int getAssociationScopeFilterStrictness()
public boolean isInAssociationScopeFilter(TopicIF scope)
public TypesConfigFrame getTopicFrame()
public TypesConfigFrame getAssocFrame()
public void hideEdge(TMAbstractEdge edge)
public void undo()
public boolean canUndo()
public boolean canRedo()
public void redo()
public void hideNode(TMAbstractNode node)
node
- The base node to delete.public void stopMovingNodes()
public void enableMotionKiller(boolean enable)
public boolean isMotionKillerEnabled()
public void enableAnimation(boolean enable)
public boolean isAnimationEnabled()
public ParsedMenuFile getEnabledItemIds()
public void loadAssociationTypes()
public void loadTopicTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |