net.comrom.chart.gc.swt
Class ChartSwtGraphics

java.lang.Object
  extended bynet.comrom.chart.gc.ChartGraphics
      extended bynet.comrom.chart.gc.swt.ChartSwtGraphics

public class ChartSwtGraphics
extends ChartGraphics


Field Summary
 
Fields inherited from class net.comrom.chart.gc.ChartGraphics
ROTATE_CENTER, ROTATE_LEFTTOP, STROKE_DASHED, STROKE_DOTTED, STROKE_NORMAL
 
Constructor Summary
ChartSwtGraphics(java.lang.Object g)
           
 
Method Summary
 void createFadeArea(ChartColor colorFrom, ChartColor colorUntil, int x, int y, int w, int h, boolean vertical, boolean cyclic)
           
 void dispose()
          dispose graphic context.
 void drawArc(int x, int y, int w, int h, int a1, int a2)
           
 void drawImage(ChartImage image, int x, int y)
           
 void drawImage(ChartImage image, int x1Dest, int y1Dest, int x2Dest, int y2Dest, int x1Source, int y1Source, int x2Source, int y2Source)
           
 void drawLine(int x1, int y1, int x2, int y2)
           
 void drawPolygon(int[] x1, int[] y1, int count)
           
 void drawRect(int x1, int y1, int w, int h)
           
 boolean drawRotatedText(ChartFont descFont, ChartColor descColor, java.lang.String txt, int angle, int x, int y, boolean b)
           
 void drawString(java.lang.String s, int x, int y)
           
 void fillArc(int x, int y, int w, int h, int a1, int a2)
           
 void fillPolygon(int[] x1, int[] y1, int count)
           
 void fillRect(int x1, int y1, int w, int h)
           
 java.lang.Object getAlphaComposite()
           
 ChartColor getColor()
           
 ChartFont getFont()
           
 int getFontHeight(ChartFont font)
           
 int getFontWidth(ChartFont font, java.lang.String s)
           
 void paintRotatedImage(ChartImage srcImage, int angle, int x, int y, int alignment)
           
 void setAlpha(float a)
           
 void setAlphaComposite(java.lang.Object a)
           
 void setColor(ChartColor color)
           
 void setFont(ChartFont font)
           
 void setLineStyle(int style)
           
 void setLineWidth(int w)
           
 
Methods inherited from class net.comrom.chart.gc.ChartGraphics
drawLineWithStyle, drawRoundedRect, fillRoundRect, getFontHeight, getFontWidth, setTexture
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartSwtGraphics

public ChartSwtGraphics(java.lang.Object g)
Method Detail

setColor

public void setColor(ChartColor color)
Overrides:
setColor in class ChartGraphics

setFont

public void setFont(ChartFont font)
Overrides:
setFont in class ChartGraphics

getColor

public ChartColor getColor()
Overrides:
getColor in class ChartGraphics

getFont

public ChartFont getFont()
Overrides:
getFont in class ChartGraphics

drawArc

public void drawArc(int x,
                    int y,
                    int w,
                    int h,
                    int a1,
                    int a2)
Overrides:
drawArc in class ChartGraphics
Parameters:
x -
y -
w -
h -
a1 -

drawLine

public void drawLine(int x1,
                     int y1,
                     int x2,
                     int y2)
Overrides:
drawLine in class ChartGraphics
Parameters:
x1 -
y1 -
x2 -

getFontHeight

public int getFontHeight(ChartFont font)
Overrides:
getFontHeight in class ChartGraphics

getFontWidth

public int getFontWidth(ChartFont font,
                        java.lang.String s)
Overrides:
getFontWidth in class ChartGraphics

drawRotatedText

public boolean drawRotatedText(ChartFont descFont,
                               ChartColor descColor,
                               java.lang.String txt,
                               int angle,
                               int x,
                               int y,
                               boolean b)
Overrides:
drawRotatedText in class ChartGraphics

paintRotatedImage

public void paintRotatedImage(ChartImage srcImage,
                              int angle,
                              int x,
                              int y,
                              int alignment)
Overrides:
paintRotatedImage in class ChartGraphics

drawString

public void drawString(java.lang.String s,
                       int x,
                       int y)
Overrides:
drawString in class ChartGraphics
Parameters:
s -
x -
y -
draw string at position x,y

drawImage

public void drawImage(ChartImage image,
                      int x,
                      int y)
Overrides:
drawImage in class ChartGraphics
Parameters:
image -
x -

drawImage

public void drawImage(ChartImage image,
                      int x1Dest,
                      int y1Dest,
                      int x2Dest,
                      int y2Dest,
                      int x1Source,
                      int y1Source,
                      int x2Source,
                      int y2Source)
Overrides:
drawImage in class ChartGraphics
Parameters:
image -
x1Dest -
y1Dest -
x2Dest -
y2Dest -
x1Source -
y1Source -
x2Source -

fillPolygon

public void fillPolygon(int[] x1,
                        int[] y1,
                        int count)
Overrides:
fillPolygon in class ChartGraphics

fillRect

public void fillRect(int x1,
                     int y1,
                     int w,
                     int h)
Overrides:
fillRect in class ChartGraphics

drawPolygon

public void drawPolygon(int[] x1,
                        int[] y1,
                        int count)
Overrides:
drawPolygon in class ChartGraphics
Parameters:
x1 -
y1 -

drawRect

public void drawRect(int x1,
                     int y1,
                     int w,
                     int h)
Overrides:
drawRect in class ChartGraphics
Parameters:
x1 -
y1 -
w -
h -
draw rectangle

createFadeArea

public void createFadeArea(ChartColor colorFrom,
                           ChartColor colorUntil,
                           int x,
                           int y,
                           int w,
                           int h,
                           boolean vertical,
                           boolean cyclic)
Overrides:
createFadeArea in class ChartGraphics
Parameters:
colorFrom -
colorUntil -
x -
y -
w -
h -
vertical -

fillArc

public void fillArc(int x,
                    int y,
                    int w,
                    int h,
                    int a1,
                    int a2)
Overrides:
fillArc in class ChartGraphics

setAlpha

public void setAlpha(float a)
Overrides:
setAlpha in class ChartGraphics

setAlphaComposite

public void setAlphaComposite(java.lang.Object a)
Overrides:
setAlphaComposite in class ChartGraphics

getAlphaComposite

public java.lang.Object getAlphaComposite()
Overrides:
getAlphaComposite in class ChartGraphics

dispose

public void dispose()
Description copied from class: ChartGraphics
dispose graphic context.

Overrides:
dispose in class ChartGraphics

setLineStyle

public void setLineStyle(int style)
Overrides:
setLineStyle in class ChartGraphics

setLineWidth

public void setLineWidth(int w)
Overrides:
setLineWidth in class ChartGraphics