org.herac.tuxguitar.gui.editors.effects
Class BendEditor

java.lang.Object
  extended by org.herac.tuxguitar.gui.editors.effects.BendEditor

public class BendEditor
extends java.lang.Object


Field Summary
protected  org.herac.tuxguitar.gui.editors.effects.BendEditor.DefaultBend[] defaultBends
           
protected  Composite editor
           
protected  TGEffectBend result
           
static int X_SPACING
           
static int Y_SPACING
           
 
Constructor Summary
BendEditor()
           
 
Method Summary
protected  void addPoint(Point point)
           
protected  void checkPoint(int x, int y)
           
 TGEffectBend getBend()
           
 int getHeight()
           
 int getWidth()
           
protected  int getX(int pointX)
           
protected  int getY(int pointY)
           
 boolean isEmpty()
           
protected  void orderPoints()
           
protected  void paintEditor(TGPainter painter)
           
protected  boolean removePoint(Point point)
           
protected  void removePointsAtXLine(int x)
           
 void setBend(TGEffectBend effect)
           
 TGEffectBend show(Shell shell, TGNote note)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X_SPACING

public static final int X_SPACING
See Also:
Constant Field Values

Y_SPACING

public static final int Y_SPACING
See Also:
Constant Field Values

editor

protected Composite editor

defaultBends

protected org.herac.tuxguitar.gui.editors.effects.BendEditor.DefaultBend[] defaultBends

result

protected TGEffectBend result
Constructor Detail

BendEditor

public BendEditor()
Method Detail

show

public TGEffectBend show(Shell shell,
                         TGNote note)

paintEditor

protected void paintEditor(TGPainter painter)

checkPoint

protected void checkPoint(int x,
                          int y)

removePoint

protected boolean removePoint(Point point)

orderPoints

protected void orderPoints()

removePointsAtXLine

protected void removePointsAtXLine(int x)

addPoint

protected void addPoint(Point point)

getX

protected int getX(int pointX)

getY

protected int getY(int pointY)

isEmpty

public boolean isEmpty()

getBend

public TGEffectBend getBend()

setBend

public void setBend(TGEffectBend effect)

getWidth

public int getWidth()

getHeight

public int getHeight()