org.herac.tuxguitar.gui.editors.piano
Class Piano

java.lang.Object
  extended by Composite
      extended by org.herac.tuxguitar.gui.editors.piano.Piano

public class Piano
extends Composite


Field Summary
protected  TGBeat beat
           
protected  TGBeat externalBeat
           
protected  Image image
           
 
Constructor Summary
Piano(Composite parent, int style)
           
 
Method Summary
protected  void afterAction()
           
protected  void configure()
           
 void dispose()
           
 TGBeat getExternalBeat()
           
 Composite getPianoComposite()
           
protected  int getRealNoteValue(TGNote note)
           
 boolean hasChanges()
           
protected  void hit(int x, int y)
           
 void loadIcons()
           
 void loadProperties()
           
 void loadScale()
           
protected  void paintNote(TGPainter painter, int value)
          Pinta la nota a partir del indice
 void redraw()
           
 void redrawPlayingMode()
           
 void setChanges(boolean changes)
           
 void setExternalBeat(TGBeat externalBeat)
           
protected  void updateEditor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beat

protected TGBeat beat

externalBeat

protected TGBeat externalBeat

image

protected Image image
Constructor Detail

Piano

public Piano(Composite parent,
             int style)
Method Detail

paintNote

protected void paintNote(TGPainter painter,
                         int value)
Pinta la nota a partir del indice

Parameters:
gc -
value -

hit

protected void hit(int x,
                   int y)

afterAction

protected void afterAction()

getRealNoteValue

protected int getRealNoteValue(TGNote note)

hasChanges

public boolean hasChanges()

setChanges

public void setChanges(boolean changes)

setExternalBeat

public void setExternalBeat(TGBeat externalBeat)

getExternalBeat

public TGBeat getExternalBeat()

updateEditor

protected void updateEditor()

redraw

public void redraw()

redrawPlayingMode

public void redrawPlayingMode()

dispose

public void dispose()

loadProperties

public void loadProperties()

loadIcons

public void loadIcons()

loadScale

public void loadScale()

configure

protected void configure()

getPianoComposite

public Composite getPianoComposite()