apps.groove
Class PianoInteraction

java.lang.Object
  extended by apps.groove.PianoInteraction
All Implemented Interfaces:
ItemListener

public class PianoInteraction
extends java.lang.Object
implements ItemListener

The Class PianoInteraction.


Constructor Summary
PianoInteraction(Piano p, GrooveInstrument pianoInstrument)
          Instantiates a new piano interaction.
 
Method Summary
 void cursorChanged(ContentItem item, long id, float x, float y, float pressure)
          Cursor changed.
 void cursorClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor clicked.
 void cursorDoubleClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor double clicked.
 void cursorLongHeld(ContentItem item, long id, float x, float y, float pressure)
          Cursor long held.
 void cursorPressed(ContentItem item, long id, float x, float y, float pressure)
          Cursor pressed.
 void cursorReleased(ContentItem item, long id, float x, float y, float pressure)
          Cursor released.
 void cursorRightClicked(ContentItem item, long id, float x, float y, float pressure)
          Cursor right clicked.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PianoInteraction

public PianoInteraction(Piano p,
                        GrooveInstrument pianoInstrument)
Instantiates a new piano interaction.

Parameters:
p - the p
pianoInstrument - the piano instrument
Method Detail

cursorChanged

public void cursorChanged(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor changed.

Specified by:
cursorChanged in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorClicked

public void cursorClicked(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor clicked.

Specified by:
cursorClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorDoubleClicked

public void cursorDoubleClicked(ContentItem item,
                                long id,
                                float x,
                                float y,
                                float pressure)
Description copied from interface: ItemListener
Cursor double clicked.

Specified by:
cursorDoubleClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorLongHeld

public void cursorLongHeld(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor long held.

Specified by:
cursorLongHeld in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorPressed

public void cursorPressed(ContentItem item,
                          long id,
                          float x,
                          float y,
                          float pressure)
Description copied from interface: ItemListener
Cursor pressed.

Specified by:
cursorPressed in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorReleased

public void cursorReleased(ContentItem item,
                           long id,
                           float x,
                           float y,
                           float pressure)
Description copied from interface: ItemListener
Cursor released.

Specified by:
cursorReleased in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure

cursorRightClicked

public void cursorRightClicked(ContentItem item,
                               long id,
                               float x,
                               float y,
                               float pressure)
Description copied from interface: ItemListener
Cursor right clicked.

Specified by:
cursorRightClicked in interface ItemListener
Parameters:
item - the item
id - the id
x - the x
y - the y
pressure - the pressure