net.comrom.chart.gc
Class ChartGraphics
java.lang.Object
net.comrom.chart.gc.ChartGraphics
- Direct Known Subclasses:
- ChartAwt1Graphics, ChartAwtGraphics, ChartSwtGraphics
- public abstract class ChartGraphics
- extends java.lang.Object
|
Method Summary |
void |
createFadeArea(ChartColor chartcolor,
ChartColor chartcolor1,
int i,
int j,
int k,
int l,
boolean flag,
boolean flag1)
|
void |
dispose()
dispose graphic context. |
void |
drawArc(int i,
int j,
int k,
int l,
int i1,
int j1)
|
void |
drawImage(ChartImage chartimage,
int i,
int j)
|
void |
drawImage(ChartImage chartimage,
int i,
int j,
int k,
int l,
int i1,
int j1,
int k1,
int l1)
|
void |
drawLine(int i,
int j,
int k,
int l)
|
void |
drawLineWithStyle(int x1,
int y1,
int x2,
int y2)
|
void |
drawPolygon(int[] ai,
int[] ai1,
int i)
|
void |
drawRect(int x1,
int y1,
int w,
int h)
|
boolean |
drawRotatedText(ChartFont descFont,
ChartColor descColor,
java.lang.String txt,
int i,
int j,
int k,
boolean flag)
|
void |
drawRoundedRect(int x1,
int y1,
int w,
int h)
|
void |
drawString(java.lang.String s1,
int i,
int j)
|
void |
fillArc(int i,
int j,
int k,
int l,
int i1,
int j1)
|
void |
fillPolygon(int[] ai,
int[] ai1,
int i)
|
void |
fillRect(int i,
int j,
int k,
int l)
|
void |
fillRoundRect(int x1,
int y1,
int w,
int h)
|
java.lang.Object |
getAlphaComposite()
|
ChartColor |
getColor()
|
ChartFont |
getFont()
|
int |
getFontHeight()
|
int |
getFontHeight(ChartFont font)
|
int |
getFontWidth(ChartFont font,
java.lang.String s)
|
int |
getFontWidth(java.lang.String s)
|
void |
paintRotatedImage(ChartImage chartimage,
int i,
int j,
int k,
int l)
|
void |
setAlpha(float f)
|
void |
setAlphaComposite(java.lang.Object obj)
|
void |
setColor(ChartColor chartcolor)
|
void |
setFont(ChartFont chartfont)
|
void |
setLineStyle(int style)
|
void |
setLineWidth(int w)
|
void |
setTexture(ChartImage image)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STROKE_NORMAL
public static int STROKE_NORMAL
STROKE_DOTTED
public static int STROKE_DOTTED
STROKE_DASHED
public static int STROKE_DASHED
ROTATE_CENTER
public static int ROTATE_CENTER
ROTATE_LEFTTOP
public static int ROTATE_LEFTTOP
ChartGraphics
public ChartGraphics()
setColor
public void setColor(ChartColor chartcolor)
setFont
public void setFont(ChartFont chartfont)
getColor
public ChartColor getColor()
getFont
public ChartFont getFont()
setTexture
public void setTexture(ChartImage image)
drawArc
public void drawArc(int i,
int j,
int k,
int l,
int i1,
int j1)
- Parameters:
i - j - k - l - i1 -
drawLine
public void drawLine(int i,
int j,
int k,
int l)
- Parameters:
i - j - k -
getFontHeight
public int getFontHeight()
getFontHeight
public int getFontHeight(ChartFont font)
getFontWidth
public int getFontWidth(ChartFont font,
java.lang.String s)
getFontWidth
public int getFontWidth(java.lang.String s)
drawRotatedText
public boolean drawRotatedText(ChartFont descFont,
ChartColor descColor,
java.lang.String txt,
int i,
int j,
int k,
boolean flag)
drawString
public void drawString(java.lang.String s1,
int i,
int j)
- Parameters:
s1 - i - j -
draw string at position x,y
drawImage
public void drawImage(ChartImage chartimage,
int i,
int j)
- Parameters:
chartimage - i -
drawImage
public void drawImage(ChartImage chartimage,
int i,
int j,
int k,
int l,
int i1,
int j1,
int k1,
int l1)
- Parameters:
chartimage - i - j - k - l - i1 - j1 - k1 -
fillPolygon
public void fillPolygon(int[] ai,
int[] ai1,
int i)
fillRect
public void fillRect(int i,
int j,
int k,
int l)
fillRoundRect
public void fillRoundRect(int x1,
int y1,
int w,
int h)
drawPolygon
public void drawPolygon(int[] ai,
int[] ai1,
int i)
- Parameters:
ai - ai1 -
drawRect
public void drawRect(int x1,
int y1,
int w,
int h)
- Parameters:
x1 - y1 - w - h -
draw rectangle
drawRoundedRect
public void drawRoundedRect(int x1,
int y1,
int w,
int h)
- Parameters:
x1 - y1 - w - h -
paint rotated text
createFadeArea
public void createFadeArea(ChartColor chartcolor,
ChartColor chartcolor1,
int i,
int j,
int k,
int l,
boolean flag,
boolean flag1)
- Parameters:
chartcolor - chartcolor1 - i - j - k - l - flag -
fillArc
public void fillArc(int i,
int j,
int k,
int l,
int i1,
int j1)
setAlpha
public void setAlpha(float f)
setAlphaComposite
public void setAlphaComposite(java.lang.Object obj)
getAlphaComposite
public java.lang.Object getAlphaComposite()
setLineStyle
public void setLineStyle(int style)
setLineWidth
public void setLineWidth(int w)
dispose
public void dispose()
- dispose graphic context.
paintRotatedImage
public void paintRotatedImage(ChartImage chartimage,
int i,
int j,
int k,
int l)
drawLineWithStyle
public void drawLineWithStyle(int x1,
int y1,
int x2,
int y2)