ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.histogram
Class HistogramGraphTypeObject

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.bar.BarGraphTypeObject
              |
              +--com.elegantj.graphx.bar.VBarGraph
                    |
                    +--com.elegantj.graphx.histogram.HistogramGraphTypeObject
All Implemented Interfaces:
java.io.Serializable

public class HistogramGraphTypeObject
extends VBarGraph
implements java.io.Serializable

HistogramGraphTypeObject is used to render Vertical Bar Graph

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.elegantj.graphx.bar.BarGraphTypeObject
EXPLAN_HOFFSET, H_SPACE, m_3DHOffset, m_3DVOffset, m_BarGraph, m_BarGraphExplanNotes, m_BarWidth, m_ExplanAreaAlign, m_ExplanAreaHeight, m_ExplanAreaPosition, m_ExplanAreaWidth, m_fDebug, m_FontHeight, m_GraphAreaWidth, m_GraphBarDetail, 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_OldMODetail, m_PlusYClipLabels, m_PlusYClipLength, m_PolXLabelList, m_PolYLabelList, m_SBDataMatrix, 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_YAxisWidth, m_YClipLabels, m_YClipLength, m_YGradLength, m_YLabelVSteps, m_YMaxLabelValue, m_YMaxLabelWidth, m_YMinLabelValue, m_ZGradLength, m_ZLabels
 
Fields inherited from class com.elegantj.graphx.GraphTypeObject
m_GraphicsEx
 
Constructor Summary
HistogramGraphTypeObject(BarGraph inGraphMain)
          Creates the HistogramGraphTypeObject with specified BarGraph object
 
Method Summary
 void draw2DGraph()
          Draws the 2D Graph
 void draw3DGraph()
          Draw 3D Bar Graph
 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)
 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
protected  DrillDownDetail getDrillDownDetail(int click_x, int click_y)
          If Given Point on Graph then it will Return Drilldowndetail Object Otherwise Return null
static int getPreferredWidth(BarGraph inBarGraph, GraphicsEx inGraphicsEx, int inWidth, int inHeight, int inBarWidth)
          Return preferred width of Graph for given bar width.
protected  void initFields()
          Initialization of the fields
 DrillDownDetail setMouseOverPoint(GraphicsEx inGraphicsEx, 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)
 
Methods inherited from class com.elegantj.graphx.bar.BarGraphTypeObject
drawExplanNotes, drawGraph, drawGraphAreaBackground, drawMouseOverEffect, drawMouseOverText, drawPolygon, drawStaticMouseOverText, drawTitle, drawXAxisGridAndTick, drawXAxisLabels, drawXAxisLine, drawYAxisGridAndTick, drawYAxisLabels, drawYAxisLine, getGraphAreaPolygon, getPolygon, getSeriesIndex, getTickHeight, init, initTitle, reDrawing
 
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

HistogramGraphTypeObject

public HistogramGraphTypeObject(BarGraph inGraphMain)
                         throws GraphException
Creates the HistogramGraphTypeObject with specified BarGraph object

Method Detail

initFields

protected void initFields()
                   throws GraphException
Initialization of the fields

Overrides:
initFields in class VBarGraph
GraphException

draw3DGraph

public void draw3DGraph()
Draw 3D Bar Graph

Overrides:
draw3DGraph in class VBarGraph

draw2DGraph

public void draw2DGraph()
Draws the 2D Graph

Overrides:
draw2DGraph in class VBarGraph

getPreferredWidth

public static int getPreferredWidth(BarGraph inBarGraph,
                                    GraphicsEx inGraphicsEx,
                                    int inWidth,
                                    int inHeight,
                                    int inBarWidth)
                             throws GraphException
Description copied from class: BarGraphTypeObject
Return preferred width of Graph for given bar width. This method is used for fixed bar width.

GraphException

setMouseOverPoint

public DrillDownDetail setMouseOverPoint(GraphicsEx inGraphicsEx,
                                         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:
setMouseOverPoint in class BarGraphTypeObject
Parameters:
click_x - x point on graph
click_y - y point on graph
inGraphicsEx - GraphicsEx Object

getDrillDetail

public DrillDownDetail getDrillDetail(int click_x,
                                      int click_y)
Description copied from class: BarGraphTypeObject
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 BarGraphTypeObject
Parameters:
click_x - x point on graph
click_y - y point on graph

getDrillDownDetail

protected DrillDownDetail getDrillDownDetail(int click_x,
                                             int click_y)
If Given Point on Graph then it will Return Drilldowndetail Object Otherwise Return null

Overrides:
getDrillDownDetail in class BarGraphTypeObject

getDrillDownDetail

public 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

Overrides:
getDrillDownDetail in class BarGraphTypeObject
Parameters:
inGraphicsEx - GraphicsEx Object
click_x - x point on graph
click_y - y point on graph

getClickedXAxisLabel

public DrillDownDetail getClickedXAxisLabel(int click_x,
                                            int click_y)
If Given Point on X axis Label then it will Return Drilldowndetail Object Otherwise Return null

Overrides:
getClickedXAxisLabel in class VBarGraph
Parameters:
click_x - x coordinate of mouse over point
click_y - y coordinate of mouse over point
Returns:
DrillDownDetail object of DrillDownDetail

getClickedYAxisLabel

public DrillDownDetail getClickedYAxisLabel(int click_x,
                                            int click_y)
If Given Point on Y axis Label then it will Return Drilldowndetail Object Otherwise Return null

Overrides:
getClickedYAxisLabel in class VBarGraph
Parameters:
click_x - x coordinate of mouse over point
click_y - y coordinate of mouse over point
Returns:
DrillDownDetail object of DrillDownDetail

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.