visual
Class Player
java.lang.Object
visual.Player
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.util.EventListener
public class Player
- extends java.lang.Object
- implements java.awt.event.MouseListener
Created by IntelliJ IDEA.
User: andy
Date: Apr 9, 2010
Simple Gui that simulates the way that a player works.
It allows playing, stopping, pausing, seeking and speed calibration of the visualization.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reset
public volatile boolean reset
run
public volatile boolean run
seeked
public volatile double seeked
seekedTimestamp
public volatile long seekedTimestamp
Player
public Player()
getContainer
public javax.swing.JPanel getContainer()
- Returns:
- the JPanel that contains this gui.
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent mouseEvent)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent mouseEvent)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent mouseEvent)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
setSlider
public void setSlider(double time)
- Changes the slider's value to match the visualization time. The Slider is split SLIDER_MAX times.
- Parameters:
time
- the current visualization time in milliseconds.