Package net.ontopia.topicmaps.viz
Class Vizlet
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Panel
-
- java.applet.Applet
-
- javax.swing.JApplet
-
- net.ontopia.topicmaps.viz.Vizlet
-
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,Accessible
,RootPaneContainer
,VizFrontEndIF
public class Vizlet extends JApplet implements VizFrontEndIF
PUBLIC: Visualization applet. To learn how to use this applet, consult the The Vizigator User's Guide.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
Vizlet.DynamicMenuListener
-
Nested classes/interfaces inherited from class javax.swing.JApplet
JApplet.AccessibleJApplet
-
Nested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleApplet
-
Nested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
-
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description Vizlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureFilterMenus()
Set up the menus to control the filtersString
getAppletInfo()
String
getConfigURL()
Get the URL of the config fileApplicationContextIF
getContext()
Get the appropriate ApplicationContextIF for this front end.boolean
getDefaultControlsVisible()
Are the controls to this front end visible by default?int
getDefaultLocality()
ParsedMenuFile
getEnabledItemIds()
Process the menu file and get the enabled item ids from it.int
getMaxLocality()
String
getResolvedParameter(String param)
TopicMapIF
getTopicMap()
Return the topic map that this front end is displayingTypesConfigFrame
getTypesConfigFrame(VizController controller, boolean isTopicConfig)
Returns the configuration frame that can be used to set colors for either Topics or AssociationsString
getWallpaper()
Get the url of the wallpaper for the background.void
init()
boolean
mapPreLoaded()
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.String
resolve(String base)
INTERNAL: Resolves the URI relative to the applet's codebase URI.void
setNewTypeColor(TopicIF type, Color c)
set the color on a specific topic typeboolean
useGeneralConfig()
Does this front end use the general configuration.-
Methods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.applet.Applet
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Method Detail
-
getAppletInfo
public String getAppletInfo()
- Overrides:
getAppletInfo
in classApplet
-
getDefaultControlsVisible
public boolean getDefaultControlsVisible()
Description copied from interface:VizFrontEndIF
Are the controls to this front end visible by default?- Specified by:
getDefaultControlsVisible
in interfaceVizFrontEndIF
- Returns:
- true if the controls should be visible by default, false otherwise.
-
getDefaultLocality
public int getDefaultLocality()
-
resolve
public String resolve(String base) throws MalformedURLException
INTERNAL: Resolves the URI relative to the applet's codebase URI.- Throws:
MalformedURLException
-
getMaxLocality
public int getMaxLocality()
-
getEnabledItemIds
public ParsedMenuFile getEnabledItemIds()
Process the menu file and get the enabled item ids from it.
-
getTopicMap
public TopicMapIF getTopicMap()
Description copied from interface:VizFrontEndIF
Return the topic map that this front end is displaying- Specified by:
getTopicMap
in interfaceVizFrontEndIF
- Returns:
- current topic map
-
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 interfaceVizFrontEndIF
- Returns:
- true if the map is loaded before the display is initialized, false otherwise
-
setNewTypeColor
public void setNewTypeColor(TopicIF type, Color c)
Description copied from interface:VizFrontEndIF
set the color on a specific topic type- Specified by:
setNewTypeColor
in interfaceVizFrontEndIF
-
configureFilterMenus
public void configureFilterMenus()
Description copied from interface:VizFrontEndIF
Set up the menus to control the filters- Specified by:
configureFilterMenus
in interfaceVizFrontEndIF
-
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 interfaceVizFrontEndIF
- Returns:
- true if VizGeneralConfigurationManager is supported, false otherwise
-
getWallpaper
public String getWallpaper()
Description copied from interface:VizFrontEndIF
Get the url of the wallpaper for the background.- Specified by:
getWallpaper
in interfaceVizFrontEndIF
- 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 interfaceVizFrontEndIF
- Returns:
- URL of the config file, null if the default is to be used
-
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 interfaceVizFrontEndIF
isTopicConfig
- - is this a Topic or Association configuration frame- Returns:
- configuration frame - if True return TopicConfigurationFrame, else return AssociationConfigFrame
-
getContext
public ApplicationContextIF getContext()
Description copied from interface:VizFrontEndIF
Get the appropriate ApplicationContextIF for this front end.- Specified by:
getContext
in interfaceVizFrontEndIF
- Returns:
- ApplicationContextIF for this front end
-
-