de.jreality.toolsystem.raw
Class DeviceMouse
java.lang.Object
de.jreality.toolsystem.raw.AbstractDeviceMouse
de.jreality.toolsystem.raw.DeviceMouse
- All Implemented Interfaces:
- RawDevice, MouseListener, MouseMotionListener, MouseWheelListener, EventListener
public class DeviceMouse
- extends AbstractDeviceMouse
- implements RawDevice, MouseListener, MouseMotionListener, MouseWheelListener
- Author:
- weissman
DeviceMouse
public DeviceMouse()
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interface MouseListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interface MouseListener
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interface MouseMotionListener
mouseWheelMoved
public void mouseWheelMoved(MouseWheelEvent e)
- Specified by:
mouseWheelMoved
in interface MouseWheelListener
getRealButton
public static int getRealButton(MouseEvent e)
setComponent
public void setComponent(Component component)
mapRawDevice
public ToolEvent mapRawDevice(String rawDeviceName,
InputSlot inputDevice)
- Specified by:
mapRawDevice
in interface RawDevice
- Returns:
- a ToolEvent representing a reasonable initial
value for the mapping - that means the source
must be the given input slot!
dispose
public void dispose()
- Specified by:
dispose
in interface RawDevice
initialize
public void initialize(Viewer viewer,
Map<String,Object> config)
- Specified by:
initialize
in interface RawDevice
getName
public String getName()
- Specified by:
getName
in interface RawDevice
toString
public String toString()
- Overrides:
toString
in class Object
installGrabs
public void installGrabs()
uninstallGrabs
public void uninstallGrabs()