|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--java.applet.Applet
|
+--javax.swing.JApplet
|
+--edu.umd.cs.jazz.util.ZBasicApplet
ZBasicApplet is a basic applet that creates a simple extendable applet with a single window for Jazz, and basic pan/zoom event handlers.
| Inner classes inherited from class javax.swing.JApplet |
javax.swing.JApplet.AccessibleJApplet |
| Field Summary | |
protected ZEventHandler |
activeEventHandler
The currently active event handler |
protected ZCamera |
camera
The camera in the scenegraph |
protected ZBasicComponent |
component
The component in the frame that Jazz renders onto. |
protected ZNode |
layer
The single node that camera looks onto. |
static int |
METAL_LAF
|
protected static java.lang.String |
metalClassName
|
static int |
MOTIF_LAF
|
protected static java.lang.String |
motifClassName
|
protected ZEventHandler |
panEventHandler
The event handler that supports panning |
protected ZRootNode |
root
The root of the scenegraph |
protected ZSurface |
surface
The surface associated with the component |
static int |
WINDOWS_LAF
|
protected static java.lang.String |
windowsClassName
|
protected ZEventHandler |
zoomEventHandler
The event handler that supports zooming |
| 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 |
| Constructor Summary | |
ZBasicApplet()
Creates a new basic Jazz applet. |
|
| Method Summary | |
void |
activateEventHandlers()
Activate the default event handlers for ZBasicFrame. |
void |
deactivateEventHandlers()
Deactivate the default event handlers for ZBasicFrame. |
ZCamera |
getCamera()
Return the camera associated with the primary surface. |
ZBasicComponent |
getComponent()
Return the component that the surface is attached to. |
ZNode |
getLayer()
Return the "layer". |
ZEventHandler |
getPanEventHandler()
Return the pan event handler. |
ZRootNode |
getRoot()
Return the root of the scenegraph. |
ZSurface |
getSurface()
Return the surface. |
ZEventHandler |
getZoomEventHandler()
Return the zoom event handler. |
void |
init()
|
void |
setLookAndFeel(int laf)
Set the Swing look and feel. |
| Methods inherited from class javax.swing.JApplet |
addImpl,
createRootPane,
getAccessibleContext,
getContentPane,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
setContentPane,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
| Methods inherited from class java.applet.Applet |
destroy,
getAppletContext,
getAppletInfo,
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,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
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,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected static java.lang.String windowsClassName
protected static java.lang.String metalClassName
protected static java.lang.String motifClassName
public static final int WINDOWS_LAF
public static final int METAL_LAF
public static final int MOTIF_LAF
protected ZBasicComponent component
protected ZRootNode root
protected ZCamera camera
protected ZSurface surface
protected ZNode layer
protected ZEventHandler panEventHandler
protected ZEventHandler zoomEventHandler
protected ZEventHandler activeEventHandler
| Constructor Detail |
public ZBasicApplet()
getRoot(),
getSurface(),
getCamera(),
getLayer()| Method Detail |
public void init()
public ZCamera getCamera()
public ZSurface getSurface()
public ZRootNode getRoot()
public ZNode getLayer()
public ZBasicComponent getComponent()
public ZEventHandler getPanEventHandler()
public ZEventHandler getZoomEventHandler()
public void activateEventHandlers()
public void deactivateEventHandlers()
public void setLookAndFeel(int laf)
laf - The look and feel, can be WINDOWs_LAF, METAL_LAF, or MOTIF_LAF
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||