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 classVizlet.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 voidconfigureFilterMenus()Set up the menus to control the filtersStringgetAppletInfo()StringgetConfigURL()Get the URL of the config fileApplicationContextIFgetContext()Get the appropriate ApplicationContextIF for this front end.booleangetDefaultControlsVisible()Are the controls to this front end visible by default?intgetDefaultLocality()ParsedMenuFilegetEnabledItemIds()Process the menu file and get the enabled item ids from it.intgetMaxLocality()StringgetResolvedParameter(String param)TopicMapIFgetTopicMap()Return the topic map that this front end is displayingTypesConfigFramegetTypesConfigFrame(VizController controller, boolean isTopicConfig)Returns the configuration frame that can be used to set colors for either Topics or AssociationsStringgetWallpaper()Get the url of the wallpaper for the background.voidinit()booleanmapPreLoaded()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.Stringresolve(String base)INTERNAL: Resolves the URI relative to the applet's codebase URI.voidsetNewTypeColor(TopicIF type, Color c)set the color on a specific topic typebooleanuseGeneralConfig()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:
getAppletInfoin classApplet
-
getDefaultControlsVisible
public boolean getDefaultControlsVisible()
Description copied from interface:VizFrontEndIFAre the controls to this front end visible by default?- Specified by:
getDefaultControlsVisiblein 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:VizFrontEndIFReturn the topic map that this front end is displaying- Specified by:
getTopicMapin interfaceVizFrontEndIF- Returns:
- current topic map
-
mapPreLoaded
public boolean mapPreLoaded()
Description copied from interface:VizFrontEndIFReturn 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:
mapPreLoadedin 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:VizFrontEndIFset the color on a specific topic type- Specified by:
setNewTypeColorin interfaceVizFrontEndIF
-
configureFilterMenus
public void configureFilterMenus()
Description copied from interface:VizFrontEndIFSet up the menus to control the filters- Specified by:
configureFilterMenusin interfaceVizFrontEndIF
-
useGeneralConfig
public boolean useGeneralConfig()
Description copied from interface:VizFrontEndIFDoes this front end use the general configuration. Some front ends (desktop) use the VizGeneralConfigurationManager, while others exclusively use the VizTopicMapConfigurationManager.- Specified by:
useGeneralConfigin interfaceVizFrontEndIF- Returns:
- true if VizGeneralConfigurationManager is supported, false otherwise
-
getWallpaper
public String getWallpaper()
Description copied from interface:VizFrontEndIFGet the url of the wallpaper for the background.- Specified by:
getWallpaperin interfaceVizFrontEndIF- Returns:
- URL of the wallpaper file, null if no wallpaper
-
getConfigURL
public String getConfigURL()
Description copied from interface:VizFrontEndIFGet the URL of the config file- Specified by:
getConfigURLin 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:VizFrontEndIFReturns the configuration frame that can be used to set colors for either Topics or Associations- Specified by:
getTypesConfigFramein interfaceVizFrontEndIFisTopicConfig- - 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:VizFrontEndIFGet the appropriate ApplicationContextIF for this front end.- Specified by:
getContextin interfaceVizFrontEndIF- Returns:
- ApplicationContextIF for this front end
-
-