apps.mtdesktop.tabletop.mouse
Class MouseCursor

java.lang.Object
  extended by apps.mtdesktop.tabletop.mouse.MouseCursor
All Implemented Interfaces:
TabletopContentManager.DesktopMouseListener

public class MouseCursor
extends java.lang.Object
implements TabletopContentManager.DesktopMouseListener

The Class MouseCursor.


Constructor Summary
MouseCursor(ContentSystem contentSystem, MultiTouchInputComponent input, TableIdentity tableId, int cursorId, java.awt.Color color)
          Instantiates a new mouse cursor.
 
Method Summary
 LightImageLabel getCursor()
          Gets the cursor.
 TableIdentity getTableIdentity()
          Gets the table identity.
 void mouseClicked(TableIdentity tableId, MouseEventInfo evt)
          Mouse clicked.
 void mouseDragged(TableIdentity tableId, MouseEventInfo evt)
          Mouse dragged.
 void mouseMoved(TableIdentity tableId, MouseEventInfo evt)
          Mouse moved.
 void mousePressed(TableIdentity tableId, MouseEventInfo evt)
          Mouse pressed.
 void mouseReleased(TableIdentity tableId, MouseEventInfo evt)
          Mouse released.
 void setOrientation(DesktopClient.Position position)
          Sets the orientation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseCursor

public MouseCursor(ContentSystem contentSystem,
                   MultiTouchInputComponent input,
                   TableIdentity tableId,
                   int cursorId,
                   java.awt.Color color)
Instantiates a new mouse cursor.

Parameters:
contentSystem - the content system
input - the input
tableId - the table id
cursorId - the cursor id
color - the color
Method Detail

getCursor

public LightImageLabel getCursor()
Gets the cursor.

Returns:
the cursor

getTableIdentity

public TableIdentity getTableIdentity()
Gets the table identity.

Returns:
the table identity

mouseClicked

public void mouseClicked(TableIdentity tableId,
                         MouseEventInfo evt)
Description copied from interface: TabletopContentManager.DesktopMouseListener
Mouse clicked.

Specified by:
mouseClicked in interface TabletopContentManager.DesktopMouseListener
Parameters:
tableId - the table id
evt - the evt

mouseDragged

public void mouseDragged(TableIdentity tableId,
                         MouseEventInfo evt)
Description copied from interface: TabletopContentManager.DesktopMouseListener
Mouse dragged.

Specified by:
mouseDragged in interface TabletopContentManager.DesktopMouseListener
Parameters:
tableId - the table id
evt - the evt

mouseMoved

public void mouseMoved(TableIdentity tableId,
                       MouseEventInfo evt)
Description copied from interface: TabletopContentManager.DesktopMouseListener
Mouse moved.

Specified by:
mouseMoved in interface TabletopContentManager.DesktopMouseListener
Parameters:
tableId - the table id
evt - the evt

mousePressed

public void mousePressed(TableIdentity tableId,
                         MouseEventInfo evt)
Description copied from interface: TabletopContentManager.DesktopMouseListener
Mouse pressed.

Specified by:
mousePressed in interface TabletopContentManager.DesktopMouseListener
Parameters:
tableId - the table id
evt - the evt

mouseReleased

public void mouseReleased(TableIdentity tableId,
                          MouseEventInfo evt)
Description copied from interface: TabletopContentManager.DesktopMouseListener
Mouse released.

Specified by:
mouseReleased in interface TabletopContentManager.DesktopMouseListener
Parameters:
tableId - the table id
evt - the evt

setOrientation

public void setOrientation(DesktopClient.Position position)
Sets the orientation.

Parameters:
position - the new orientation