public class DigitalWhiteboard extends Object implements VideoDisplayListener<MBFImage>, MouseInputListener, KeyListener
Constructor and Description |
---|
DigitalWhiteboard() |
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(VideoDisplay<MBFImage> display)
Called when the video display is updated and the next frame
is displayed
|
void |
beforeUpdate(MBFImage frame)
Called when the video is about to update
|
void |
keyPressed(KeyEvent arg0) |
void |
keyReleased(KeyEvent arg0) |
void |
keyTyped(KeyEvent event) |
static void |
main(String[] args) |
void |
mouseClicked(MouseEvent arg0) |
void |
mouseDragged(MouseEvent arg0) |
void |
mouseEntered(MouseEvent arg0) |
void |
mouseExited(MouseEvent arg0) |
void |
mouseMoved(MouseEvent arg0) |
void |
mousePressed(MouseEvent arg0) |
void |
mouseReleased(MouseEvent arg0) |
public DigitalWhiteboard() throws IOException
IOException
public void afterUpdate(VideoDisplay<MBFImage> display)
VideoDisplayListener
afterUpdate
in interface VideoDisplayListener<MBFImage>
display
- the video displaypublic void beforeUpdate(MBFImage frame)
VideoDisplayListener
beforeUpdate
in interface VideoDisplayListener<MBFImage>
frame
- the frame about to be displayedpublic static void main(String[] args) throws IOException
IOException
public void mouseClicked(MouseEvent arg0)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent arg0)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent arg0)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent arg0)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent arg0)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent arg0)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent arg0)
mouseMoved
in interface MouseMotionListener
public void keyPressed(KeyEvent arg0)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent arg0)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent event)
keyTyped
in interface KeyListener