ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.line
Class PercentageLineGraph

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.line.LineGraphTypeObject
              |
              +--com.elegantj.graphx.line.StackedLineGraph
                    |
                    +--com.elegantj.graphx.line.PercentageLineGraph
All Implemented Interfaces:
java.io.Serializable

public class PercentageLineGraph
extends StackedLineGraph

PercentageLineGraph class provides the basic functionality to render the Graphs line

See Also:
Serialized Form

Field Summary
protected  java.util.Vector m_PercentageDataMatrix
           
 
Fields inherited from class com.elegantj.graphx.line.StackedLineGraph
m_SBDataMatrix
 
Fields inherited from class com.elegantj.graphx.line.LineGraphTypeObject
EXPLAN_HOFFSET, H_SPACE, m_3DHOffset, m_3DVOffset, m_ExplanAreaAlign, m_ExplanAreaHeight, m_ExplanAreaPosition, m_ExplanAreaWidth, m_fDebug, m_FontHeight, m_GraphAreaWidth, m_GraphLabel, m_GraphLineDetail, m_GraphRectangle, m_GraphTitleDetail, m_GraphXAxisDetail, m_GraphXAxisRectangle, m_GraphYAxisDetail, m_GraphYAxisRectangle, m_GraphZAxisDetail, m_GraphZAxisRectangle, m_Height, m_HOffset, m_Is3DGraph, m_IsPointSet, m_LineGraph, m_LineGraphExplanNotes, m_LinePosition, m_LineWidth, m_MinusYClipLabels, m_MinusYClipLength, m_MouseOverTextRect, m_OldMODetail, m_PlusYClipLabels, m_PlusYClipLength, m_PolXLabelList, m_PolYLabelList, m_TextAlign, m_TitleFont, m_TitleFontHeight, m_TitleHeight, m_TitleRectangle, m_VOffset, m_Width, m_XAxisHeight, m_XAxisLabelFont, m_XAxisWidth, m_XGradLength, m_XLabels, m_XLabelVSteps, m_XLength, m_YAbsGradLabel, m_YAxisHeight, m_YAxisLabelFont, m_YAxisPosition, m_YAxisWidth, m_YClipLabels, m_YClipLength, m_YGradLength, m_YLabelVSteps, m_YMaxLabelValue, m_YMaxLabelWidth, m_YMinLabelValue, m_ZGradLength, m_ZLabels, theLeftGap, zoomedRect
 
Fields inherited from class com.elegantj.graphx.GraphTypeObject
m_GraphicsEx
 
Constructor Summary
PercentageLineGraph(LineGraph inGraphMain)
          Creates the LineGraphTypeObject with specified LineGraph object
 
Method Summary
protected  java.util.Vector calcLinePoints()
          This method calculate points to draw lne graph
 boolean drawMouseOverEffect(GraphicsEx inGraphicsEx, DrillDownDetail inDDD, boolean isMOEDraw, boolean isMOTDraw, boolean isRestore)
          This method returns true If any shape is drawn on given graphics Object otherwize false
 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)
 void initFields()
          Initialization of the fields
protected  void setDataMatrix()
          Numeric data queue is set
protected  java.util.Vector setPercentageDataMatrix()
          This method returns the percentage data matrix Original Data Matrix --------------------------------------------- |L1 | L2 | L3 | L1 | L2 | L3 | L1 | L2 | L3 | --------------------------------------------- X1 | X2 | X3 --------------------------------------------- Precentage Data Matrix ------------------------------------------------------------------------- | (L1/(L1+ L2+ L3)* 100 | (L2/(L1+ L2+ L3)* 100 | (L3/(L1+ L2+ L3)* 100 | ------------------------------------------------------------------------- X1 -------------------------------------------------------------------------
 
Methods inherited from class com.elegantj.graphx.line.StackedLineGraph
drawStaticMouseOverText
 
Methods inherited from class com.elegantj.graphx.line.LineGraphTypeObject
computeSplineSlopePoints, DraeDataPointShape, drawExplanNotes, drawGraph, drawGraph, drawGraphAreaBackground, DrawLineGraph, DrawLineGraphShadow, drawMouseOverText, DrawPointGraph, DrawStripGraph, DrawStyledGraphLine, drawTitle, drawXAxisGridAndTick, drawXAxisLabels, drawXAxisLine, drawYAxisGridAndTick, drawYAxisLabels, drawYAxisLine, getClickedXAxisLabel, getClickedYAxisLabel, getDrillDownDetail, getDrillDownDetail, getGraphAreaPolygon, getPolygon, getPolygon, getPreferredSize, getSeriesIndex, getTickAt, getTickHeight, init, initTitle, reDrawing, setMouseOverPoint, ZoomIn_DataPointShape
 
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

m_PercentageDataMatrix

protected java.util.Vector m_PercentageDataMatrix
Constructor Detail

PercentageLineGraph

public PercentageLineGraph(LineGraph inGraphMain)
                    throws GraphException
Creates the LineGraphTypeObject with specified LineGraph object

Method Detail

initFields

public void initFields()
                throws GraphException
Initialization of the fields

Overrides:
initFields in class StackedLineGraph
GraphException

setDataMatrix

protected void setDataMatrix()
Numeric data queue is set

Overrides:
setDataMatrix in class StackedLineGraph

setPercentageDataMatrix

protected java.util.Vector setPercentageDataMatrix()
This method returns the percentage data matrix Original Data Matrix --------------------------------------------- |L1 | L2 | L3 | L1 | L2 | L3 | L1 | L2 | L3 | --------------------------------------------- X1 | X2 | X3 --------------------------------------------- Precentage Data Matrix ------------------------------------------------------------------------- | (L1/(L1+ L2+ L3)* 100 | (L2/(L1+ L2+ L3)* 100 | (L3/(L1+ L2+ L3)* 100 | ------------------------------------------------------------------------- X1 -------------------------------------------------------------------------


calcLinePoints

protected java.util.Vector calcLinePoints()
This method calculate points to draw lne graph

Overrides:
calcLinePoints in class StackedLineGraph
Returns:
vector Containing the point cordinates for graph

getDrillDetail

public 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)

Overrides:
getDrillDetail in class StackedLineGraph
Parameters:
click_x - x point on graph
click_y - y point on graph

drawMouseOverEffect

public boolean drawMouseOverEffect(GraphicsEx inGraphicsEx,
                                   DrillDownDetail inDDD,
                                   boolean isMOEDraw,
                                   boolean isMOTDraw,
                                   boolean isRestore)
This method returns true If any shape is drawn on given graphics Object otherwize false

Overrides:
drawMouseOverEffect in class StackedLineGraph
Parameters:
inGraphicsEx - GraphicsEx Object
inDDD - DrillDownDetail Object
isMOEDraw - true - to draw mouse over effect
isMOTDraw - true - to draw mouse over Text
isRestore - true - to draw mouse over effect or mouse over text, false - to remove mouse over effect or mouse over text
Returns:
boolean true If any shape is drawn on given graphics Object otherwize false

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.