public class AwtPanel extends java.awt.Canvas implements SceneProcessor
| Constructor and Description |
|---|
AwtPanel(PaintMode paintMode) |
AwtPanel(PaintMode paintMode,
boolean srgb) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotify() |
void |
attachTo(boolean overrideMainFramebuffer,
ViewPort... vps) |
boolean |
checkVisibilityState() |
void |
cleanup()
Called when the SP is removed from the RM.
|
void |
drawFrameInThread() |
void |
initialize(RenderManager rm,
ViewPort vp)
Called in the render thread to initialize the scene processor.
|
void |
invalidate() |
boolean |
isActiveDrawing() |
boolean |
isInitialized() |
void |
paint(java.awt.Graphics g) |
void |
postFrame(FrameBuffer out)
Called after a frame has been rendered and the queue flushed.
|
void |
postQueue(RenderQueue rq)
Called after the scene graph has been queued, but before it is flushed.
|
void |
preFrame(float tpf)
Called before a frame
|
void |
removeNotify() |
void |
repaintInThread() |
void |
reshape(ViewPort vp,
int w,
int h)
Called when the resolution of the viewport has been changed.
|
void |
setProfiler(AppProfiler profiler)
Sets a profiler Instance for this processor.
|
createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, updateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validatepublic AwtPanel(PaintMode paintMode)
public AwtPanel(PaintMode paintMode, boolean srgb)
public void addNotify()
addNotify in class java.awt.Canvaspublic void removeNotify()
removeNotify in class java.awt.Componentpublic void paint(java.awt.Graphics g)
paint in class java.awt.Canvaspublic boolean checkVisibilityState()
public void repaintInThread()
public void drawFrameInThread()
public boolean isActiveDrawing()
public void attachTo(boolean overrideMainFramebuffer,
ViewPort... vps)
public void initialize(RenderManager rm, ViewPort vp)
SceneProcessorinitialize in interface SceneProcessorrm - The render manager to which the SP was added tovp - The viewport to which the SP is assignedpublic boolean isInitialized()
isInitialized in interface SceneProcessorpublic void preFrame(float tpf)
SceneProcessorpreFrame in interface SceneProcessortpf - Time per framepublic void postQueue(RenderQueue rq)
SceneProcessorpostQueue in interface SceneProcessorrq - The render queuepublic void invalidate()
invalidate in class java.awt.Componentpublic void postFrame(FrameBuffer out)
SceneProcessorpostFrame in interface SceneProcessorout - The FB to which the scene was rendered.public void reshape(ViewPort vp, int w, int h)
SceneProcessorreshape in interface SceneProcessorpublic void cleanup()
SceneProcessorcleanup in interface SceneProcessorpublic void setProfiler(AppProfiler profiler)
SceneProcessorsetProfiler in interface SceneProcessorprofiler - the profiler instance.