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: Visualization applet. To learn how to use this applet, consult the
The Vizigator User's Guide.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.JApplet
JApplet.AccessibleJAppletNested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleAppletNested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanelNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested 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, rootPaneCheckingEnabledFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet up the menus to control the filtersGet the URL of the config fileGet the appropriate ApplicationContextIF for this front end.booleanAre the controls to this front end visible by default?intProcess the menu file and get the enabled item ids from it.intgetResolvedParameter(String param) Return the topic map that this front end is displayinggetTypesConfigFrame(VizController controller, boolean isTopicConfig) Returns the configuration frame that can be used to set colors for either Topics or AssociationsGet the url of the wallpaper for the background.voidinit()booleanReturn true if this front end loads the topic map before generating any display, false if the display is generated before the map is loaded.INTERNAL: Resolves the URI relative to the applet's codebase URI.voidsetNewTypeColor(TopicIF type, Color c) set the color on a specific topic typebooleanDoes 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, updateMethods 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, stopMethods 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, validateTreeMethods 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
-
Constructor Details
-
Vizlet
public Vizlet()
-
-
Method Details
-
getAppletInfo
- Overrides:
getAppletInfoin classApplet
-
init
public void init() -
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
INTERNAL: Resolves the URI relative to the applet's codebase URI.- Throws:
MalformedURLException
-
getResolvedParameter
-
getMaxLocality
public int getMaxLocality() -
getEnabledItemIds
Process the menu file and get the enabled item ids from it. -
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
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
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
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
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
Description copied from interface:VizFrontEndIFGet the appropriate ApplicationContextIF for this front end.- Specified by:
getContextin interfaceVizFrontEndIF- Returns:
- ApplicationContextIF for this front end
-