|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.elegantj.graphx.GraphTypeObject
|
+--com.elegantj.graphx.doughnut.DoughnutGraphTypeObject
|
+--com.elegantj.graphx.doughnut.SingleDoughnutGraphTypeObject
DoughnutGraphTyepObject is used to render Doughnut Graph
| Field Summary | |
protected int |
m_TotalOfDataMatrix
|
| Fields inherited from class com.elegantj.graphx.GraphTypeObject |
m_GraphicsEx |
| Constructor Summary | |
SingleDoughnutGraphTypeObject(DoughnutGraph inGraphMain)
Creates the SingleDoughnutGraphTypeObject with specified DoughnutGraph object |
|
| Method Summary | |
void |
calculateTotalofRowData(java.util.Vector theDataMatrix,
int theRowLabels)
|
void |
draw2DGraph()
|
void |
draw3DGraph()
Draw 3D Donut Graph |
protected void |
drawExplanNotes()
Draws the explanation notes |
void |
drawGraph()
Draws Graph this method should be overriden by the subclass |
protected void |
drawGraphAreaBackground(GraphicsEx inGraphicsEx)
Draws Backgound of Actual graph Area |
boolean |
drawMouseOverEffect(GraphicsEx inGraphicsEx,
DrillDownDetail inDDD,
boolean isMOEDraw,
boolean isMOTDraw,
int theH,
int theV,
boolean isRestore)
This method returns true If any shape is drawn on given graphics Object otherwize false |
java.awt.Rectangle |
drawStaticMouseOverText(GraphicsEx inGraphicsEx)
This method draws Static mouse over Text |
protected void |
drawTitle()
Draws the title |
protected void |
drawXAxisGridAndTick()
Draws The X-Axis Grid and Tick lines |
protected void |
drawXAxisLabels()
Draws The X-Axis Labels |
protected void |
drawXAxisLine()
Draws The X-Axis Line |
protected void |
drawYAxisLabels()
Draws The Y-Axis Labels |
DrillDownDetail |
getClickedXAxisLabel(int click_x,
int click_y)
If Given Point on X axis Label then it will Return Drilldowndetail Object Otherwise Return null |
DrillDownDetail |
getClickedYAxisLabel(int click_x,
int click_y)
If Given Point on Y axis Label then it will Return Drilldowndetail Object Otherwise Return null |
DrillDownDetail |
getDrillDetail(int click_x,
int click_y)
If Given Point on Graph then it will Return Drilldowndetail Object Otherwise Return null (Common function for 2D and 3D Graph) |
protected DrillDownDetail |
getDrillDownDetail(GraphicsEx inGraphicsEx,
int click_x,
int click_y)
If Given Point on Graph then it will Return Drilldowndetail Object and draw mouse over effect and mouse over text Otherwise Return null |
java.awt.Polygon |
getGraphAreaPolygon()
Get Polygon for Graph Area excluding title space, x-Axis space, y-Axis space and Legend space |
static java.awt.Dimension |
getPreferredWidth(DoughnutGraph inDoughnutGraph,
GraphicsEx inGraphicsEx,
int inWidth,
int inHeight)
|
int |
getSeriesIndex(int click_x,
int click_y)
Return Series Index near to given horizontal distance |
protected void |
init(GraphPanel inGraphPanel)
Initialization of Graph |
protected void |
initFields()
Initialization of the fields |
| Methods inherited from class com.elegantj.graphx.doughnut.DoughnutGraphTypeObject |
drawDonutBorder, drawDonutTop, drawMouseOverText, drawYAxisGridAndTick, drawYAxisLine, getXMaxLabelWidthString, initTitle, reDrawing, setMouseOverPoint |
| Methods inherited from class com.elegantj.graphx.GraphTypeObject |
initDrawing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int m_TotalOfDataMatrix
| Constructor Detail |
public SingleDoughnutGraphTypeObject(DoughnutGraph inGraphMain)
throws GraphException
| Method Detail |
protected void init(GraphPanel inGraphPanel)
throws GraphException
init in class DoughnutGraphTypeObjectGraphException
protected void initFields()
throws GraphException
initFields in class DoughnutGraphTypeObjectGraphException
public void calculateTotalofRowData(java.util.Vector theDataMatrix,
int theRowLabels)
calculateTotalofRowData in class DoughnutGraphTypeObjectpublic void drawGraph()
GraphTypeObject
drawGraph in class DoughnutGraphTypeObjectpublic void draw3DGraph()
draw3DGraph in class DoughnutGraphTypeObjectpublic void draw2DGraph()
draw2DGraph in class DoughnutGraphTypeObjectprotected void drawGraphAreaBackground(GraphicsEx inGraphicsEx)
drawGraphAreaBackground in class DoughnutGraphTypeObjectprotected void drawXAxisLine()
drawXAxisLine in class DoughnutGraphTypeObjectprotected void drawXAxisLabels()
drawXAxisLabels in class DoughnutGraphTypeObjectprotected void drawXAxisGridAndTick()
drawXAxisGridAndTick in class DoughnutGraphTypeObjectprotected void drawYAxisLabels()
drawYAxisLabels in class DoughnutGraphTypeObjectprotected void drawTitle()
drawTitle in class DoughnutGraphTypeObjectprotected void drawExplanNotes()
drawExplanNotes in class DoughnutGraphTypeObject
protected DrillDownDetail getDrillDownDetail(GraphicsEx inGraphicsEx,
int click_x,
int click_y)
getDrillDownDetail in class DoughnutGraphTypeObjectinGraphicsEx - GraphicsEx Objectclick_x - x point on graphclick_y - y point on graph
public DrillDownDetail getClickedXAxisLabel(int click_x,
int click_y)
getClickedXAxisLabel in class DoughnutGraphTypeObjectclick_x - x coordinate of mouse over pointclick_y - y coordinate of mouse over point
public DrillDownDetail getClickedYAxisLabel(int click_x,
int click_y)
getClickedYAxisLabel in class DoughnutGraphTypeObjectclick_x - x coordinate of mouse over pointclick_y - y coordinate of mouse over point
public int getSeriesIndex(int click_x,
int click_y)
getSeriesIndex in class DoughnutGraphTypeObjectclick_x - Horizontal Distance
public DrillDownDetail getDrillDetail(int click_x,
int click_y)
getDrillDetail in class DoughnutGraphTypeObjectclick_x - x point on graphclick_y - y point on graph
public boolean drawMouseOverEffect(GraphicsEx inGraphicsEx,
DrillDownDetail inDDD,
boolean isMOEDraw,
boolean isMOTDraw,
int theH,
int theV,
boolean isRestore)
drawMouseOverEffect in class DoughnutGraphTypeObjectinGraphicsEx - GraphicsEx ObjectinDDD - DrillDownDetail ObjectisMOEDraw - true - to draw mouse over effectisMOTDraw - true - to draw mouse over TextisRestore - true - to draw mouse over effect or mouse over text, false - to remove mouse over effect or mouse over text
public java.awt.Rectangle drawStaticMouseOverText(GraphicsEx inGraphicsEx)
drawStaticMouseOverText in class DoughnutGraphTypeObjectinGraphicsEx - GraphicsEx Object
public static java.awt.Dimension getPreferredWidth(DoughnutGraph inDoughnutGraph,
GraphicsEx inGraphicsEx,
int inWidth,
int inHeight)
throws GraphException
GraphExceptionpublic java.awt.Polygon getGraphAreaPolygon()
getGraphAreaPolygon in class DoughnutGraphTypeObject
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||