|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rchart.gc.ChartGraphics
com.java4less.rchart.gc.android.ChartAndroidGraphics
public class ChartAndroidGraphics
Field Summary |
---|
Fields inherited from class com.java4less.rchart.gc.ChartGraphics |
---|
ROTATE_CENTER, ROTATE_LEFTTOP, STROKE_DASHED, STROKE_DOTTED, STROKE_NORMAL |
Constructor Summary | |
---|---|
ChartAndroidGraphics(java.lang.Object g)
|
Method Summary | |
---|---|
void |
createFadeArea(ChartColor colorFrom,
ChartColor colorUntil,
int x,
int y,
int w,
int h,
boolean vertical,
boolean cyclic)
creates a gradient filling |
void |
drawArc(int x,
int y,
int w,
int h,
int a1,
int a2)
paint an arc |
void |
drawImage(ChartImage image,
int x,
int y)
paint image at given position |
void |
drawImage(ChartImage image,
int x1Dest,
int y1Dest,
int x2Dest,
int y2Dest,
int x1Source,
int y1Source,
int x2Source,
int y2Source)
paint image from source position to destination position |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
paint a line |
void |
drawPolygon(int[] x1,
int[] y1,
int count)
draw polygon |
void |
drawRect(int x1,
int y1,
int w,
int h)
draw rectangle |
boolean |
drawRotatedText(ChartFont descFont,
ChartColor descColor,
java.lang.String txt,
int angle,
int x,
int y,
boolean b)
paint vertical text |
void |
drawString(java.lang.String s,
int x,
int y)
draw string at position x,y |
void |
fillArc(int x,
int y,
int w,
int h,
int a1,
int a2)
Fills an arc |
void |
fillPolygon(int[] x1,
int[] y1,
int count)
fill polygon |
void |
fillRect(int x1,
int y1,
int w,
int h)
fill rectangle |
java.lang.Object |
getAlphaComposite()
get transparency value |
ChartColor |
getColor()
get current color in context |
ChartFont |
getFont()
get current font in context |
int |
getFontHeight(ChartFont font)
get the height of the current font |
int |
getFontWidth(ChartFont font,
java.lang.String s)
get the width of a string using the current font |
void |
paintRotatedImage(ChartImage srcImage,
int angle,
int x,
int y,
int alignment)
rotate image and paint it |
void |
setAlpha(float a)
set transparency value |
void |
setAlphaComposite(java.lang.Object a)
set transparency value |
void |
setColor(ChartColor color)
set current color in context |
void |
setFont(ChartFont font)
set current font in context |
void |
setLineStyle(int style)
sets style of line |
void |
setLineWidth(int w)
sets style of line |
Methods inherited from class com.java4less.rchart.gc.ChartGraphics |
---|
dispose, drawLineWithStyle, drawRoundedRect, fillRoundRect, getFontHeight, getFontWidth, setTexture |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartAndroidGraphics(java.lang.Object g)
Method Detail |
---|
public void setColor(ChartColor color)
setColor
in class ChartGraphics
color
- public void setFont(ChartFont font)
setFont
in class ChartGraphics
f
- public ChartColor getColor()
getColor
in class ChartGraphics
public ChartFont getFont()
getFont
in class ChartGraphics
public void drawArc(int x, int y, int w, int h, int a1, int a2)
drawArc
in class ChartGraphics
x
- y
- w
- h
- a1
- a2
- public void drawLine(int x1, int y1, int x2, int y2)
drawLine
in class ChartGraphics
x1
- y1
- x2
- y2
- public int getFontHeight(ChartFont font)
getFontHeight
in class ChartGraphics
public int getFontWidth(ChartFont font, java.lang.String s)
getFontWidth
in class ChartGraphics
public boolean drawRotatedText(ChartFont descFont, ChartColor descColor, java.lang.String txt, int angle, int x, int y, boolean b)
drawRotatedText
in class ChartGraphics
g
- DescFont
- DescColor
- txt
- x
- y
- b
- public void paintRotatedImage(ChartImage srcImage, int angle, int x, int y, int alignment)
paintRotatedImage
in class ChartGraphics
srcImage
- source image (must be a square, width=height)angle
- anglex
- position where image must be paintedy
- position where image must be paintedpublic void drawString(java.lang.String s, int x, int y)
drawString
in class ChartGraphics
s
- x
- y
- public void drawImage(ChartImage image, int x, int y)
drawImage
in class ChartGraphics
image
- x
- y
- public void drawImage(ChartImage image, int x1Dest, int y1Dest, int x2Dest, int y2Dest, int x1Source, int y1Source, int x2Source, int y2Source)
drawImage
in class ChartGraphics
image
- x1Dest
- y1Dest
- x2Dest
- y2Dest
- x1Source
- y1Source
- x2Source
- y2Source
- public void fillPolygon(int[] x1, int[] y1, int count)
fillPolygon
in class ChartGraphics
x1
- y1
- count
- public void fillRect(int x1, int y1, int w, int h)
fillRect
in class ChartGraphics
x1
- y1
- w
- h
- public void drawPolygon(int[] x1, int[] y1, int count)
drawPolygon
in class ChartGraphics
x1
- y1
- count
- public void drawRect(int x1, int y1, int w, int h)
drawRect
in class ChartGraphics
x1
- y1
- w
- h
- public void createFadeArea(ChartColor colorFrom, ChartColor colorUntil, int x, int y, int w, int h, boolean vertical, boolean cyclic)
ChartGraphics
createFadeArea
in class ChartGraphics
x
- top left corner positiony
- top left corner positionw
- with of rectangleh
- height of rectanglevertical
- vertical gradient?public void fillArc(int x, int y, int w, int h, int a1, int a2)
ChartGraphics
fillArc
in class ChartGraphics
x
- top left corner of the rectangley
- top left corner of the rectanglew
- width of the rectngleh
- height of the rectanglea1
- start arca2
- end arcpublic void setAlpha(float a)
setAlpha
in class ChartGraphics
alpha
- public void setAlphaComposite(java.lang.Object a)
setAlphaComposite
in class ChartGraphics
alpha
- public java.lang.Object getAlphaComposite()
getAlphaComposite
in class ChartGraphics
public void setLineStyle(int style)
setLineStyle
in class ChartGraphics
style
- public void setLineWidth(int w)
setLineWidth
in class ChartGraphics
style
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |