|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--khartzToolz.KhartzBaseChart
|
+--khartzToolz.KhartzPie
|
+--khartzToolz.Khartz3DPie
| Field Summary | |
khartzToolz.PieSegment[] |
pieSegments
|
| Constructor Summary | |
Khartz3DPie(double[] v,
java.lang.String[] l,
java.util.Date[] date,
java.awt.Rectangle size,
java.lang.String title,
java.awt.Color[] colorArray)
|
|
| Method Summary | |
void |
addSegment(int i,
int angleCurrent,
int ang)
|
boolean |
contains(java.awt.Point p)
Scans the available segments within the chart in sequence, to see if the Point p is contained within the area of one of those segments. |
java.awt.Font |
getFont()
Returns the current chart font |
java.lang.String |
getLabel(int i)
Fetches a text label from the the array of labels held by the chart |
double |
getRelativeTextSize()
Gets the current text size setting for the chart. |
java.awt.Dimension |
getSize()
Deprecated. Now replaced by getArea() |
void |
mouseMoved(java.awt.event.MouseEvent e)
Called by the host application when the mouse is moved within the chart. |
void |
mouseReleased(java.awt.event.MouseEvent e)
An action that is performed by the chart when the mouse button is released within the applet window. |
void |
moveTo(java.awt.Point p)
|
void |
paint(java.awt.Graphics g)
Draws the current chart to the Graphics object g. |
void |
setColorArray(java.awt.Color[] colorArray)
Sets the current range of values associated with the segments in the Chart |
void |
setFont(java.awt.Font f)
Sets the font for the current chart |
void |
setRelativeTextSize(double size)
Sets the relative size of the text to be displayed on the chart. |
void |
sortSegments()
Sorts the segments into a drawing order. |
java.lang.String |
toString()
Returns a String representation of the current pie chart object. |
| Methods inherited from class khartzToolz.KhartzBaseChart |
getBottomMargin, getChartMargin, getChartSize, getChartTitle, getColorArray, getLabels, getLeftMargin, getMaxValue, getMinValue, getRightMargin, getTextFont, getTopMargin, getValue, getValues, getVersionMessage, setBottomMargin, setChartMargin, setChartSize, setChartTitle, setLabels, setLeftMargin, setRightMargin, setTextFont, setTopMargin, setValues, setVersionMessage |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface khartzToolz.KhartzChart |
getChartSize, getValue |
| Field Detail |
public khartzToolz.PieSegment[] pieSegments
| Constructor Detail |
public Khartz3DPie(double[] v,
java.lang.String[] l,
java.util.Date[] date,
java.awt.Rectangle size,
java.lang.String title,
java.awt.Color[] colorArray)
v[] - l[] - date[] - size - title - colorArray[] - | Method Detail |
public void paint(java.awt.Graphics g)
khartzToolz.KhartzPiepaint in class khartzToolz.KhartzPieg -
public void addSegment(int i,
int angleCurrent,
int ang)
addSegment in class khartzToolz.KhartzPiei - angleCurrent - ang - public void mouseMoved(java.awt.event.MouseEvent e)
khartzToolz.KhartzPiemouseMoved in class khartzToolz.KhartzPiee - public void moveTo(java.awt.Point p)
p - The new location to move a chart segment to.public boolean contains(java.awt.Point p)
KhartzChartcontains in interface KhartzChartp - An x,y coordinate on the screen area.public java.lang.String toString()
toString in interface KhartzCharttoString in class java.lang.Objectpublic java.awt.Dimension getSize()
getSize in interface KhartzChartpublic void mouseReleased(java.awt.event.MouseEvent e)
KhartzChartmouseReleased in interface KhartzCharte - public void setRelativeTextSize(double size)
setRelativeTextSize in interface KhartzChartsize - Sets the relative text size to be displayed on the chart. 1
represents 100% and 0.5 and 2 would be 50% and 200% reprectively.public double getRelativeTextSize()
KhartzChartgetRelativeTextSize in interface KhartzChartpublic void sortSegments()
public java.lang.String getLabel(int i)
KhartzChartgetLabel in interface KhartzChartgetLabel in class KhartzBaseCharti - public java.awt.Font getFont()
KhartzChartgetFont in interface KhartzChartpublic void setFont(java.awt.Font f)
KhartzChartsetFont in interface KhartzChartf - public void setColorArray(java.awt.Color[] colorArray)
KhartzChartsetColorArray in interface KhartzChartsetColorArray in class KhartzBaseChartcolorArray[] -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||