com.infoengine.webject.img
Class PieChart
java.lang.Object
com.infoengine.webject.Webject
com.infoengine.webject.img.IMGWebject
com.infoengine.webject.img.PieChart
- public class PieChart
- extends IMGWebject
Method Summary |
protected void |
append(Element child)
|
protected void |
append(Element parent,
Element child)
|
protected Element |
createCircle(int cx,
int cy,
int r,
Color c,
String stroke)
|
protected Element |
createGraphic(String id)
|
protected Element |
createPath(Color c,
String stroke,
String d)
|
protected Element |
createPolyLine(Color c,
String stroke,
String points)
|
protected Element |
createText(int x,
int y,
String anchor,
String text)
|
protected String |
formatDouble(double d)
|
protected Color |
getColor(String colorDef)
|
protected Color |
getColor(Webject w,
String parm,
Color def)
|
protected void |
getDecimalPlaces(Webject w)
|
protected void |
getDimensions(Webject w)
|
protected double |
getDouble(Webject w,
String parm,
double def)
|
protected void |
getInsets(Webject w)
|
protected int |
getInteger(Webject w,
String parm,
int def)
|
protected String |
getRGBHexString(Color c)
|
Task |
invoke(Task task)
|
protected void |
setTask(Task t)
|
protected void |
startSVG(String rootId)
|
private int |
sum(int[] arr)
|
protected void |
writeJPEG()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
svgNS
protected static final String svgNS
- See Also:
- Constant Field Values
RESOURCE
protected static final String RESOURCE
- See Also:
- Constant Field Values
insetL
protected int insetL
insetR
protected int insetR
insetT
protected int insetT
insetB
protected int insetB
width
protected int width
height
protected int height
decimalPlaces
protected int decimalPlaces
bgColor
protected Color bgColor
txtColor
protected Color txtColor
CHAR_WIDTH
protected static final int CHAR_WIDTH
- See Also:
- Constant Field Values
CHAR_HEIGHT
protected static final int CHAR_HEIGHT
- See Also:
- Constant Field Values
TICK_WIDTH
protected static final int TICK_WIDTH
- See Also:
- Constant Field Values
task
protected Task task
webject
protected Webject webject
svg
protected Document svg
root
protected Element root
mainGraphic
protected Element mainGraphic
PieChart
public PieChart()
invoke
public Task invoke(Task task)
throws IEException
- Specified by:
invoke
in class Webject
- Throws:
IEException
sum
private int sum(int[] arr)
setTask
protected void setTask(Task t)
throws IEException
- Throws:
IEException
getInteger
protected int getInteger(Webject w,
String parm,
int def)
throws IEException
- Throws:
IEException
getDouble
protected double getDouble(Webject w,
String parm,
double def)
throws IEException
- Throws:
IEException
getDimensions
protected void getDimensions(Webject w)
throws IEException
- Throws:
IEException
getInsets
protected void getInsets(Webject w)
throws IEException
- Throws:
IEException
getDecimalPlaces
protected void getDecimalPlaces(Webject w)
throws IEException
- Throws:
IEException
getRGBHexString
protected String getRGBHexString(Color c)
getColor
protected Color getColor(Webject w,
String parm,
Color def)
throws IEException
- Throws:
IEException
getColor
protected Color getColor(String colorDef)
throws IEException
- Throws:
IEException
formatDouble
protected String formatDouble(double d)
writeJPEG
protected void writeJPEG()
throws Exception
- Throws:
Exception
startSVG
protected void startSVG(String rootId)
createGraphic
protected Element createGraphic(String id)
append
protected void append(Element child)
append
protected void append(Element parent,
Element child)
createPath
protected Element createPath(Color c,
String stroke,
String d)
createPolyLine
protected Element createPolyLine(Color c,
String stroke,
String points)
createCircle
protected Element createCircle(int cx,
int cy,
int r,
Color c,
String stroke)
createText
protected Element createText(int x,
int y,
String anchor,
String text)