org.herac.tuxguitar.gui.editors
Class TGPainter

java.lang.Object
  extended by org.herac.tuxguitar.gui.editors.TGPainter

public class TGPainter
extends java.lang.Object


Field Summary
static int PATH_DRAW
           
static int PATH_FILL
           
 
Constructor Summary
TGPainter()
           
TGPainter(GC gc)
           
TGPainter(Image image)
           
 
Method Summary
 void addArc(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
           
 void addOval(float arg0, float arg1, float arg2, float arg3)
           
 void addRectangle(float x, float y, float width, float height)
           
 void addRectangle(Rectangle rectangle)
           
 void addString(java.lang.String arg0, float arg1, float arg2, Font arg3)
           
 void closePath()
           
 void copyArea(Image image, int x, int y)
           
 void cubicTo(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
           
 void dispose()
           
 void drawImage(Image image, int x, int y)
           
 void drawImage(Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight)
           
 void drawPolygon(int[] arg0)
           
 void drawString(java.lang.String string, int x, int y)
           
 void drawString(java.lang.String string, int x, int y, boolean isTransparent)
           
 void fillPolygon(int[] arg0)
           
 GC getGC()
           
 Point getStringExtent(java.lang.String string)
           
 void init(GC gc)
           
 void init(Image image)
           
 void initPath()
           
 void initPath(int style)
           
 void lineTo(float arg0, float arg1)
           
 void moveTo(float arg0, float arg1)
           
 void setAlpha(int alpha)
           
 void setBackground(Color arg0)
           
 void setFont(Font arg0)
           
 void setForeground(Color arg0)
           
 void setLineStyle(int arg0)
           
 void setLineWidth(int arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_DRAW

public static final int PATH_DRAW
See Also:
Constant Field Values

PATH_FILL

public static final int PATH_FILL
See Also:
Constant Field Values
Constructor Detail

TGPainter

public TGPainter()

TGPainter

public TGPainter(GC gc)

TGPainter

public TGPainter(Image image)
Method Detail

init

public void init(Image image)

init

public void init(GC gc)

initPath

public void initPath(int style)

initPath

public void initPath()

closePath

public void closePath()

getGC

public GC getGC()

dispose

public void dispose()

setBackground

public void setBackground(Color arg0)

setFont

public void setFont(Font arg0)

setForeground

public void setForeground(Color arg0)

setLineStyle

public void setLineStyle(int arg0)

setLineWidth

public void setLineWidth(int arg0)

setAlpha

public void setAlpha(int alpha)

copyArea

public void copyArea(Image image,
                     int x,
                     int y)

getStringExtent

public Point getStringExtent(java.lang.String string)

drawString

public void drawString(java.lang.String string,
                       int x,
                       int y)

drawString

public void drawString(java.lang.String string,
                       int x,
                       int y,
                       boolean isTransparent)

drawImage

public void drawImage(Image image,
                      int srcX,
                      int srcY,
                      int srcWidth,
                      int srcHeight,
                      int destX,
                      int destY,
                      int destWidth,
                      int destHeight)

drawImage

public void drawImage(Image image,
                      int x,
                      int y)

drawPolygon

public void drawPolygon(int[] arg0)

fillPolygon

public void fillPolygon(int[] arg0)

cubicTo

public void cubicTo(float arg0,
                    float arg1,
                    float arg2,
                    float arg3,
                    float arg4,
                    float arg5)

lineTo

public void lineTo(float arg0,
                   float arg1)

moveTo

public void moveTo(float arg0,
                   float arg1)

addString

public void addString(java.lang.String arg0,
                      float arg1,
                      float arg2,
                      Font arg3)

addArc

public void addArc(float arg0,
                   float arg1,
                   float arg2,
                   float arg3,
                   float arg4,
                   float arg5)

addOval

public void addOval(float arg0,
                    float arg1,
                    float arg2,
                    float arg3)

addRectangle

public void addRectangle(float x,
                         float y,
                         float width,
                         float height)

addRectangle

public void addRectangle(Rectangle rectangle)