net.ontopia.topicmaps.viz
Class Vizlet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by javax.swing.JApplet
                      extended by net.ontopia.topicmaps.viz.Vizlet
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, VizFrontEndIF

public class Vizlet
extends javax.swing.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
protected  class Vizlet.DynamicMenuListener
           
 
Nested classes/interfaces inherited from class javax.swing.JApplet
javax.swing.JApplet.AccessibleJApplet
 
Nested classes/interfaces inherited from class java.applet.Applet
java.applet.Applet.AccessibleApplet
 
Nested classes/interfaces inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.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
Vizlet()
           
 
Method Summary
 void configureFilterMenus()
          Set up the menus to control the filters
 java.lang.String getAppletInfo()
           
 java.lang.String getConfigURL()
          Get the URL of the config file
 ApplicationContextIF 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()
           
 java.lang.String getResolvedParameter(java.lang.String param)
           
 TopicMapIF getTopicMap()
          Return the topic map that this front end is displaying
 TypesConfigFrame getTypesConfigFrame(VizController controller, boolean isTopicConfig)
          Returns the configuration frame that can be used to set colors for either Topics or Associations
 java.lang.String 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.
 java.lang.String resolve(java.lang.String base)
          INTERNAL: Resolves the URI relative to the applet's codebase URI.
 void setNewTypeColor(TopicIF type, java.awt.Color c)
          set the color on a specific topic type
 boolean 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, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
 
Methods inherited from class java.awt.Panel
addNotify
 
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, transferFocusBackward, 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, getPeer, 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, requestFocusInWindow, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vizlet

public Vizlet()
Method Detail

getAppletInfo

public java.lang.String getAppletInfo()
Overrides:
getAppletInfo in class java.applet.Applet

init

public void init()
Overrides:
init in class java.applet.Applet

getDefaultControlsVisible

public boolean getDefaultControlsVisible()
Description copied from interface: VizFrontEndIF
Are the controls to this front end visible by default?

Specified by:
getDefaultControlsVisible in interface VizFrontEndIF
Returns:
true if the controls should be visible by default, false otherwise.

getDefaultLocality

public int getDefaultLocality()

resolve

public java.lang.String resolve(java.lang.String base)
                         throws java.net.MalformedURLException
INTERNAL: Resolves the URI relative to the applet's codebase URI.

Throws:
java.net.MalformedURLException

getResolvedParameter

public java.lang.String getResolvedParameter(java.lang.String param)

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 interface VizFrontEndIF
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 interface VizFrontEndIF
Returns:
true if the map is loaded before the display is initialized, false otherwise

setNewTypeColor

public void setNewTypeColor(TopicIF type,
                            java.awt.Color c)
Description copied from interface: VizFrontEndIF
set the color on a specific topic type

Specified by:
setNewTypeColor in interface VizFrontEndIF

configureFilterMenus

public void configureFilterMenus()
Description copied from interface: VizFrontEndIF
Set up the menus to control the filters

Specified by:
configureFilterMenus in interface VizFrontEndIF

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 interface VizFrontEndIF
Returns:
true if VizGeneralConfigurationManager is supported, false otherwise

getWallpaper

public java.lang.String getWallpaper()
Description copied from interface: VizFrontEndIF
Get the url of the wallpaper for the background.

Specified by:
getWallpaper in interface VizFrontEndIF
Returns:
URL of the wallpaper file, null if no wallpaper

getConfigURL

public java.lang.String getConfigURL()
Description copied from interface: VizFrontEndIF
Get the URL of the config file

Specified by:
getConfigURL in interface VizFrontEndIF
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 interface VizFrontEndIF
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 interface VizFrontEndIF
Returns:
ApplicationContextIF for this front end


Copyright © 2000-2012 Ontopia.