mam.agent.pluginAgentRes
Class PluginGLCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--gl4java.awt.GLCanvas
                    |
                    +--gl4java.awt.GLAnimCanvas
                          |
                          +--mam.agent.pluginAgentRes.PluginGLCanvas

public class PluginGLCanvas
extends GLAnimCanvas
implements KeyListener


Inner classes inherited from class java.awt.Canvas
Canvas.AccessibleAWTCanvas

Field Summary
 (package private) Drawerc
           
 private Collectionm_listeners
           
 private intmyheight
           
 private intmywidth
           

Fields inherited from class gl4java.awt.GLAnimCanvas
FramesPerSec, mSecPerFrame, globalThreadNumber, dFpsMilli, killme, threadSuspended, useRepaint, useFpsSleep, shallWeRender, isRunning

Fields inherited from class gl4java.awt.GLCanvas
glj, gl, glu, size, mustResize, needCvsDispose, doubleBuffer, stencilBits, accumSize, stereoView, rgba, capabilities, createOwnWindow, sharedGLContext, topLevelWindow, _f_dur

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Constructor Summary
PluginGLCanvas(int w, int h, String current)
          renderCanvas(int w, int h) Constructor.

Method Summary
 voidaddKnowAgent(int totalAgents, MamId mamid, String url)
           
 voidaddListener(PluginGLListener listener)
           
 voidaddMonitorAgent(String url)
           
 voidaddSearch(String requestor)
           
 voiddisplay()
          void display() Draw to the canvas.
 voiddispose()
          void dispose() Destroy the canvas.
 voidfireEvent(PluginGLEvent event)
           
 voidinit()
          void init() Called just AFTER the GL-Context is created.
 voidkeyPressed(KeyEvent e)
          void keyPressed(KeyEvent e) Invoked when a key has been pressed.
 voidkeyReleased(KeyEvent e)
          void keyReleased(KeyEvent e) Invoked when a key has been released.
 voidkeyTyped(KeyEvent e)
          void keyTyped(KeyEvent e) Invoked when a key has been typed.
 voidmonitorUpdate(String updatedurl)
           
 voidmooDeath()
           
 voidpreInit()
          void preInit() Called just BEFORE the GL-Context is created.
 voidremoveKnowAgent(MamId mamid)
           
 voidremoveMonitorAgent(String url)
           
 voidreshape(int width, int height)
          void reshape(int width, int height) Called after the first paint command.
 voidsetNewDrawer(String newDrawer)
           

Methods inherited from class gl4java.awt.GLAnimCanvas
getGlobalThreadNumber, ReInit, setUseRepaint, setUseFpsSleep, getUseRepaint, getUseFpsSleep, start, stop, cvsDispose, run, setSuspended, setSuspended, isAlive, isSuspended, resetFpsCounter, stopFpsCounter, setVerboseFps, getFps, getFpsDuration, getFpsFrames, setAnimateFps, setAnimateFps, getMaxFps

Methods inherited from class gl4java.awt.GLCanvas
getPreferredSize, getMinimumSize, getGLContext, update, getTopLevelWindow, paint, doCleanup, cvsIsInit, setGLEnabled, setVisible, isGLEnabled, sDisplay, componentResized, componentMoved, componentShown, componentHidden, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, windowOpened, windowClosing, windowClosed, windowIconified, windowDeiconified, windowActivated, windowDeactivated, finalize, destroy, cvsGetWidth, cvsGetHeight, addGLEventListener, removeGLEventListener, getListeners, getGL, getGLU

Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, show, show, hide, getForeground, setForeground, getBackground, setBackground, getFont, setFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, setSize, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, preferredSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, doLayout, layout, validate, invalidate, getGraphics, getFontMetrics, setCursor, getCursor, paintAll, repaint, repaint, repaint, repaint, print, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, getComponentAt, locate, getComponentAt, deliverEvent, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getInputMethodRequests, getInputContext, enableEvents, disableEvents, coalesceEvents, processEvent, processComponentEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, removeNotify, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, remove, paramString, toString, list, list, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait

Field Detail

c

Drawer c

m_listeners

private Collection m_listeners

myheight

private int myheight

mywidth

private int mywidth
Constructor Detail

PluginGLCanvas

public PluginGLCanvas(int w, int h, String current)
renderCanvas(int w, int h) Constructor.
Method Detail

addKnowAgent

public void addKnowAgent(int totalAgents, MamId mamid, String url)

addListener

public void addListener(PluginGLListener listener)

addMonitorAgent

public void addMonitorAgent(String url)

addSearch

public void addSearch(String requestor)

display

public void display()
void display() Draw to the canvas.

dispose

public void dispose()
void dispose() Destroy the canvas.

fireEvent

public void fireEvent(PluginGLEvent event)

init

public void init()
void init() Called just AFTER the GL-Context is created.

keyPressed

public void keyPressed(KeyEvent e)
void keyPressed(KeyEvent e) Invoked when a key has been pressed.

keyReleased

public void keyReleased(KeyEvent e)
void keyReleased(KeyEvent e) Invoked when a key has been released.

keyTyped

public void keyTyped(KeyEvent e)
void keyTyped(KeyEvent e) Invoked when a key has been typed. This event occurs when a key press is followed by a key release.

monitorUpdate

public void monitorUpdate(String updatedurl)

mooDeath

public void mooDeath()

preInit

public void preInit()
void preInit() Called just BEFORE the GL-Context is created.

removeKnowAgent

public void removeKnowAgent(MamId mamid)

removeMonitorAgent

public void removeMonitorAgent(String url)

reshape

public void reshape(int width, int height)
void reshape(int width, int height) Called after the first paint command.

setNewDrawer

public void setNewDrawer(String newDrawer)