org.herac.tuxguitar.gui.editors.matrix
Class MatrixEditor

java.lang.Object
  extended by org.herac.tuxguitar.gui.editors.matrix.MatrixEditor
All Implemented Interfaces:
IconLoader, LanguageLoader

public class MatrixEditor
extends java.lang.Object
implements IconLoader, LanguageLoader


Nested Class Summary
protected  class MatrixEditor.BufferDisposer
           
protected  class MatrixEditor.DisposeListenerImpl
           
protected  class MatrixEditor.MatrixListener
           
 
Field Summary
protected static int[] DIVISIONS
           
 
Constructor Summary
MatrixEditor()
           
 
Method Summary
protected  void afterAction()
           
protected  void configure()
           
 void dispose()
           
protected  void dispose(Resource resource)
           
protected  void dispose(Resource[] resources)
           
protected  void disposeAll()
           
protected  void disposeBuffer()
           
protected  void disposeSelectionBuffer()
           
protected  Image getBuffer()
           
protected  Caret getCaret()
           
protected  Composite getEditor()
           
 int getGrids()
           
protected  TGMeasure getMeasure()
           
protected  long getStartAt(float x)
           
protected  int getValueAt(float y)
           
protected  void hit(float x, float y)
           
 void initEditor()
           
 boolean isDisposed()
           
protected  int loadGrids()
           
 void loadIcons()
           
 void loadProperties()
           
protected  void paintBeat(TGPainter painter, TGMeasure measure, TGBeat beat, float fromX, float fromY)
           
protected  void paintBorders(TGPainter painter, float fromX, float fromY)
           
protected  void paintEditor(TGPainter painter)
           
protected  void paintMeasure(TGPainter painter, float fromX, float fromY)
           
protected  void paintPosition(TGPainter painter, float fromX, float fromY)
           
protected  void paintSelection(TGPainter painter, float fromX, float fromY)
           
protected  void play(int value)
           
 void redraw()
           
 void redrawPlayingMode()
           
protected  void resetPlayed()
           
 void selectionFinish()
           
protected  void setGrids(int grids)
           
 void show()
           
protected  void updateScroll()
           
protected  void updateSelection(float y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIVISIONS

protected static final int[] DIVISIONS
Constructor Detail

MatrixEditor

public MatrixEditor()
Method Detail

show

public void show()

initEditor

public void initEditor()

updateScroll

protected void updateScroll()

getValueAt

protected int getValueAt(float y)

getStartAt

protected long getStartAt(float x)

paintEditor

protected void paintEditor(TGPainter painter)

getBuffer

protected Image getBuffer()

paintMeasure

protected void paintMeasure(TGPainter painter,
                            float fromX,
                            float fromY)

paintBeat

protected void paintBeat(TGPainter painter,
                         TGMeasure measure,
                         TGBeat beat,
                         float fromX,
                         float fromY)

paintBorders

protected void paintBorders(TGPainter painter,
                            float fromX,
                            float fromY)

paintPosition

protected void paintPosition(TGPainter painter,
                             float fromX,
                             float fromY)

paintSelection

protected void paintSelection(TGPainter painter,
                              float fromX,
                              float fromY)

updateSelection

protected void updateSelection(float y)

selectionFinish

public void selectionFinish()

disposeSelectionBuffer

protected void disposeSelectionBuffer()

hit

protected void hit(float x,
                   float y)

afterAction

protected void afterAction()

play

protected void play(int value)

loadGrids

protected int loadGrids()

setGrids

protected void setGrids(int grids)

getGrids

public int getGrids()

getMeasure

protected TGMeasure getMeasure()

getCaret

protected Caret getCaret()

isDisposed

public boolean isDisposed()

resetPlayed

protected void resetPlayed()

redraw

public void redraw()

redrawPlayingMode

public void redrawPlayingMode()

configure

protected void configure()

loadIcons

public void loadIcons()
Specified by:
loadIcons in interface IconLoader

loadProperties

public void loadProperties()
Specified by:
loadProperties in interface LanguageLoader

dispose

public void dispose()

disposeBuffer

protected void disposeBuffer()

dispose

protected void dispose(Resource[] resources)

dispose

protected void dispose(Resource resource)

disposeAll

protected void disposeAll()

getEditor

protected Composite getEditor()