|
|||||||||
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 | +--shout3d.Shout3DPanel
Shout3D Panel - a Panel containing a Shout3DViewer
Field Summary | |
Shout3DApplet |
applet
The Shout3DApplet in which this panel is contained. |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Shout3DPanel(Shout3DApplet applet)
Constructs a Shout3DPanel |
|
Shout3DPanel(Shout3DApplet applet,
int width,
int height)
Constructs a Shout3DPanel |
|
Shout3DPanel(Shout3DApplet applet,
int x,
int y,
int width,
int height)
Constructs a Shout3DPanel |
Method Summary | |
void |
addDeviceObserver(DeviceObserver devo,
java.lang.String typeName,
java.lang.Object userData)
Adds the given DeviceObserver to the list of observers for which this DeviceObserver will invoke methods. |
boolean |
addRoute(Field fromField,
Field toField)
Adds a route that copies values from 'fromField' to 'toField' each time that fromField's value changes. |
void |
clearResourceCaches()
Clears the cache of loaded resources, freeing the memory that holds them. |
void |
customInitialize()
Subclasses should override to perform custom initialization tasks. |
boolean |
deleteRoute(Field fromField,
Field toField)
Removes any existing route from fromField to toField Returns true if a route existed and was removed, false otherwise Note: Routes of ArrayFields copy by reference, not by value. |
double |
getAbsoluteTime()
this method gets the number of seconds since midnight GMT January 1, 1970, as of the last call to tick(). |
Clock |
getClock()
Returns a reference to the Clock |
Bindable |
getCurrentBindableNode(java.lang.String typeName)
Returns a reference to the currently bound node of the given type. |
DeviceListener |
getDeviceListener()
Gets this panel's DeviceListener |
float |
getFramesPerSecond()
Returns the rendering frame rate |
Picker |
getNewPicker()
Gets a new Shout3DPicker |
Searcher |
getNewSearcher()
Gets a new Searcher |
Node |
getNodeByName(java.lang.String nodeName)
Gets a Node by DEF name. |
java.lang.String |
getProfile()
Gets a string denoting the profile of the current scene. |
Renderer |
getRenderer()
Gets the renderer |
ResourceListener |
getResourceListener()
Returns a reference to the ResourceListener |
Group |
getScene()
Gets the scene in the panel |
java.lang.String |
getVersion()
Gets a string denoting the version of this viewer. |
boolean |
handleEvent(java.awt.Event event)
|
boolean |
isAntiAliased()
Returns whether antialiasing is enabled |
boolean |
isBilinearFiltering()
Returns whether bilinear filtering is enabled on textures |
boolean |
isLoadResourcesInSeparateThread()
Returns whether resources should are being loaded in a separate thread. |
boolean |
isRouted(Field fromField,
Field toField)
Checks if a route currently exists from fromField to toField |
void |
loadURL(java.lang.String[] url,
Node root)
Loads an URL into the node root. |
void |
onPostRender(Renderer r,
java.lang.Object userData)
Called immediately following rendering. |
void |
onPreRender(Renderer r,
java.lang.Object userData)
Called immediately prior to rendering. |
void |
removeDeviceObserver(DeviceObserver devo,
java.lang.String typeName)
Removes the given ResourceObserver from the list of observers for which this ResrourceObserver will invoke methods. |
void |
run()
Runnable's run method |
void |
setAntiAliased(boolean newVal)
Sets whether antialiasing is enabled. |
void |
setBilinearFiltering(boolean newVal)
Sets whether bilinear filtering is enabled on textures. |
void |
setLoadResourcesInSeparateThread(boolean newVal)
Sets whether resources (textures and sounds) should be loaded in a separate thread from the main thread. |
void |
setScene(Group root)
Replaces the scene in the panel This includes applying all of the applet parameters (headlight, anti-aliasing, etc) to the newly loaded scene. |
void |
setSceneFromURL(java.lang.String[] url)
Loads an URL into the panel's scene This includes applying all of the applet parameters (headlight, anti-aliasing, etc) to the newly loaded scene. |
void |
tick()
This method updates the Clock and sets a new absolute time. |
void |
update(java.awt.Graphics g)
Inherited Applet update method |
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,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
validate |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
disable,
dispatchEvent,
enable,
enable,
enableInputMethods,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
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,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
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 |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public Shout3DApplet applet
Constructor Detail |
public Shout3DPanel(Shout3DApplet applet)
applet
- the Shout3DApplet in which this panel is to be drawnpublic Shout3DPanel(Shout3DApplet applet, int width, int height)
applet
- the Shout3DApplet in which this panel is to be drawnwidth
- the width of the panel in pixelsheight
- the height of the panel in pixelspublic Shout3DPanel(Shout3DApplet applet, int x, int y, int width, int height)
applet
- the Shout3DApplet in which this panel is to be drawnx
- the x position of the panel in pixelsy
- the x position of the panel in pixelswidth
- the width of the panel in pixelsheight
- the height of the panel in pixelsMethod Detail |
public final Renderer getRenderer()
public final DeviceListener getDeviceListener()
public final Picker getNewPicker()
public final Searcher getNewSearcher()
public final void setScene(Group root) throws Shout3DException
root
- the root of the new Scenepublic final Group getScene()
public final void setSceneFromURL(java.lang.String[] url) throws Shout3DException
url
- a String representation of the URLpublic final void loadURL(java.lang.String[] url, Node root) throws Shout3DException
url
- the URL to loadroot
- the scene, once loadedpublic final Node getNodeByName(java.lang.String nodeName)
nodeName
- the name of the node to findpublic final java.lang.String getProfile()
public final java.lang.String getVersion()
public final Bindable getCurrentBindableNode(java.lang.String typeName) throws Shout3DException
public final Clock getClock()
public boolean addRoute(Field fromField, Field toField) throws Shout3DException
fromField
- the field from which values will be copiedtoField
- the field to which values will be copiedpublic boolean deleteRoute(Field fromField, Field toField)
fromField
- the field from which values will be copiedtoField
- the field to which values will be copiedpublic boolean isRouted(Field fromField, Field toField)
public final ResourceListener getResourceListener()
public final double getAbsoluteTime()
public final void tick()
public final void addDeviceObserver(DeviceObserver devo, java.lang.String typeName, java.lang.Object userData)
devo
- the observer to adduserData
- the data given by the observerpublic final void removeDeviceObserver(DeviceObserver devo, java.lang.String typeName)
devo
- the observer to removepublic void onPreRender(Renderer r, java.lang.Object userData)
r
- the renderer that is about to renderuserData
- the userdata that was passed by this panel to the rendererpublic void onPostRender(Renderer r, java.lang.Object userData)
r
- the renderer that just finished renderinguserData
- the userdata that was passed by this panel to the rendererpublic final float getFramesPerSecond()
public void customInitialize()
public final void run()
public final void update(java.awt.Graphics g)
public final boolean handleEvent(java.awt.Event event)
public final void clearResourceCaches()
public final void setAntiAliased(boolean newVal)
newVal
- whether antialiasing should be enabledpublic final boolean isAntiAliased()
public final void setBilinearFiltering(boolean newVal)
newVal
- whether bilinear filtering should be enabledpublic final boolean isBilinearFiltering()
public final void setLoadResourcesInSeparateThread(boolean newVal)
newVal
- whether resources should be loaded in a separate thread.public final boolean isLoadResourcesInSeparateThread()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |