ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.surface
Class AreaDepthGraph

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.surface.AreaGraphTypeObject
              |
              +--com.elegantj.graphx.surface.AreaDepthGraph
All Implemented Interfaces:
java.io.Serializable

public class AreaDepthGraph
extends AreaGraphTypeObject
implements java.io.Serializable

AreaDepthGraph is used to render Area Graph

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.elegantj.graphx.surface.AreaGraphTypeObject
dataPointRect, EXPLAN_HOFFSET, H_SPACE, m_3DHOffset, m_3DVOffset, m_AreaGraph, m_AreaGraphExplanNotes, m_AreaPolygon, m_AreaWidth, m_AsDataMatrix, m_ExplanAreaAlign, m_ExplanAreaHeight, m_ExplanAreaPosition, m_ExplanAreaWidth, m_fDebug, m_FontHeight, m_GraphAreaDetail, m_GraphAreaWidth, m_GraphLabel, 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_MinusYClipLabels, m_MinusYClipLength, m_MouseOverTextRect, m_NegValRep, m_OldMODetail, m_PlusYClipLabels, m_PlusYClipLength, m_PolXLabelList, m_PolYLabelList, m_TextAlign, m_ThiTa, 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_YAxisWidth, m_YClipLabels, m_YClipLength, m_YGradLength, m_YLabelVSteps, m_YMaxLabelValue, m_YMaxLabelWidth, m_YMinLabelValue, m_ZGradLength, m_ZLabels, m_ZLength, m_zX, m_zY
 
Fields inherited from class com.elegantj.graphx.GraphTypeObject
m_GraphicsEx
 
Constructor Summary
AreaDepthGraph(AreaGraph inGraphMain)
          Creates the StackedAreaGraph with specified AreaGraph object
 
Method Summary
 void draw3DGraph()
          draw Area graph
 void draw3DViewOfSurface(java.util.Vector hc, java.util.Vector vc, java.util.Vector clipIndex, java.awt.Color theColor, java.awt.Color theGradientColor, java.awt.Color bordercolor, int theDepthX, int theDepthY)
          draw the Shadow of surface and store area and shadow polygon
 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
 java.awt.Rectangle drawStaticMouseOverText(GraphicsEx inGraphicsEx)
          This method draws Static mouse over Text
 void fillColorGradientAndDrawBorder(java.awt.Polygon pol, java.awt.Color theColor, java.awt.Color theGradientColor, java.awt.Color bordercolor)
          This function fill polygon by color or gradient and draw border
 int getClipXPoint(int theV, int preV, int theJ, int tempShadowX)
          get clip x point
 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)
static int getPreferredWidth(AreaGraph inAreaGraph, GraphicsEx inGraphicsEx, int inWidth, int inHeight, int inAreaWidth, int prefWidth, int prefHeight)
          Return preferred Dimenssion of Graph for given width and height of graph area.
 int getSeriesIndex(int click_x)
          Return Series Index near to given horizontal distance
protected  void initFields()
          Initialization of the fields
 
Methods inherited from class com.elegantj.graphx.surface.AreaGraphTypeObject
drawDataPointCircle, drawExplanNotes, drawGraph, drawGraphAreaBackground, drawMouseOverText, drawPolygon, drawTitle, drawXAxisGridAndTick, drawXAxisLabels, drawXAxisLine, drawYAxisGridAndTick, drawYAxisLabels, drawYAxisLine, getClickedXAxisLabel, getClickedYAxisLabel, getDrillDownDetail, getDrillDownDetail, getGraphAreaPolygon, getNegValRepString, getPolygon, getTickHeight, init, 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
 

Constructor Detail

AreaDepthGraph

public AreaDepthGraph(AreaGraph inGraphMain)
               throws GraphException
Creates the StackedAreaGraph with specified AreaGraph object

Method Detail

initFields

protected void initFields()
                   throws GraphException
Initialization of the fields

Overrides:
initFields in class AreaGraphTypeObject
GraphException

draw3DGraph

public void draw3DGraph()
draw Area graph

Overrides:
draw3DGraph in class AreaGraphTypeObject

getClipXPoint

public int getClipXPoint(int theV,
                         int preV,
                         int theJ,
                         int tempShadowX)
get clip x point

Parameters:
preV - previous vertical point
tempShadowX - shadow space return x

draw3DViewOfSurface

public void draw3DViewOfSurface(java.util.Vector hc,
                                java.util.Vector vc,
                                java.util.Vector clipIndex,
                                java.awt.Color theColor,
                                java.awt.Color theGradientColor,
                                java.awt.Color bordercolor,
                                int theDepthX,
                                int theDepthY)
draw the Shadow of surface and store area and shadow polygon

Parameters:
hc - vector conatin x cordinates of surface
vc - vector conatin y cordinates of surface
theColor - fill color

fillColorGradientAndDrawBorder

public void fillColorGradientAndDrawBorder(java.awt.Polygon pol,
                                           java.awt.Color theColor,
                                           java.awt.Color theGradientColor,
                                           java.awt.Color bordercolor)
This function fill polygon by color or gradient and draw border

Parameters:
pol - area polygon
theGradientColor - area gradient color

getSeriesIndex

public int getSeriesIndex(int click_x)
Return Series Index near to given horizontal distance

Parameters:
click_x - Horizontal Distance
Returns:
SeriesIndex

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 AreaGraphTypeObject
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 AreaGraphTypeObject
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

drawStaticMouseOverText

public java.awt.Rectangle drawStaticMouseOverText(GraphicsEx inGraphicsEx)
This method draws Static mouse over Text

Overrides:
drawStaticMouseOverText in class AreaGraphTypeObject
Parameters:
inGraphicsEx - GraphicsEx Object

getPreferredWidth

public static int getPreferredWidth(AreaGraph inAreaGraph,
                                    GraphicsEx inGraphicsEx,
                                    int inWidth,
                                    int inHeight,
                                    int inAreaWidth,
                                    int prefWidth,
                                    int prefHeight)
                             throws GraphException
Return preferred Dimenssion of Graph for given width and height of graph area. inAreaGraph AreaGraph object inGraphicsEx Graphics object inWidth actural width of graph inHeight actual height of graph inAreaWidth actual width of area prefWidth minimum width of graph area prefHeight minimum height of graph area

GraphException

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.