ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.bar
Class HorizontalBarGraphTypeObject

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.bar.BarGraphTypeObject
              |
              +--com.elegantj.graphx.bar.HorizontalBarGraphTypeObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HBarGraph, StackedHBarGraph

public class HorizontalBarGraphTypeObject
extends BarGraphTypeObject
implements java.io.Serializable

HorizontalBarGraphTypeObject is used to render Horizontal Bar Graph

See Also:
Serialized Form

Field Summary
protected  int m_XMaxLabelWidth
           
protected  int m_YLabelVSteps
           
protected  int m_YMaxLabelWidth
           
 
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_YMaxLabelValue, m_YMinLabelValue, m_ZGradLength, m_ZLabels
 
Fields inherited from class com.elegantj.graphx.GraphTypeObject
m_GraphicsEx
 
Constructor Summary
HorizontalBarGraphTypeObject(BarGraph inGraphMain)
          Creates the GraphBarGraphTypeObject with specified BarGraph object
 
Method Summary
protected  void drawGraphAreaBackground(GraphicsEx inGraphicsEx)
          Draws Backgound of Actual graph Area
 boolean drawMouseOverEffect(GraphicsEx inGraphicsEx, DrillDownDetail inDDD, boolean isMOEDraw, com.elegantj.editors.AWTBorder inBorder, boolean isMOTDraw, boolean isRestore)
          This method returns true If any shape is drawn on given graphics Object otherwize false
 java.awt.Rectangle drawMouseOverText(GraphicsEx inGraphicsEx, DrillDownDetail inDDD, int inH, int inV, int inWidth, int inHeight)
          This method draws mouse over Text
protected  void drawPolygon(GraphicsEx inGraphicsEx, java.awt.Polygon inPolygon, int inBrStyle, int inBrWidth, java.awt.Color inBrColor, boolean isHorizontal)
          This method draw border to polygon
 java.awt.Rectangle drawStaticMouseOverText(GraphicsEx inGraphicsEx)
          This method draws Static mouse over Text
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 drawYAxisGridAndTick()
          Draws The Y-Axis Grid and Tick lines
protected  void drawYAxisLabels()
          Draws The Y-Axis Labels
protected  void drawYAxisLine()
          Draws The Y-Axis Line
 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  void initFields()
           
 
Methods inherited from class com.elegantj.graphx.bar.BarGraphTypeObject
draw2DGraph, draw3DGraph, drawExplanNotes, drawGraph, drawTitle, getDrillDownDetail, getDrillDownDetail, getGraphAreaPolygon, getPolygon, getPreferredWidth, getSeriesIndex, 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
 

Field Detail

m_XMaxLabelWidth

protected int m_XMaxLabelWidth

m_YLabelVSteps

protected int m_YLabelVSteps

m_YMaxLabelWidth

protected int m_YMaxLabelWidth
Constructor Detail

HorizontalBarGraphTypeObject

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

Method Detail

initFields

protected void initFields()
                   throws GraphException
Overrides:
initFields in class BarGraphTypeObject
GraphException

drawGraphAreaBackground

protected void drawGraphAreaBackground(GraphicsEx inGraphicsEx)
Draws Backgound of Actual graph Area

Overrides:
drawGraphAreaBackground in class BarGraphTypeObject
Parameters:
inGraphicsEx -

drawXAxisLine

protected void drawXAxisLine()
Draws The X-Axis Line

Overrides:
drawXAxisLine in class BarGraphTypeObject

drawXAxisLabels

protected void drawXAxisLabels()
Draws The X-Axis Labels

Overrides:
drawXAxisLabels in class BarGraphTypeObject

drawXAxisGridAndTick

protected void drawXAxisGridAndTick()
Draws The X-Axis Grid and Tick lines

Overrides:
drawXAxisGridAndTick in class BarGraphTypeObject

drawYAxisLine

protected void drawYAxisLine()
Draws The Y-Axis Line

Overrides:
drawYAxisLine in class BarGraphTypeObject

drawYAxisLabels

protected void drawYAxisLabels()
Draws The Y-Axis Labels

Overrides:
drawYAxisLabels in class BarGraphTypeObject

drawYAxisGridAndTick

protected void drawYAxisGridAndTick()
Draws The Y-Axis Grid and Tick lines

Overrides:
drawYAxisGridAndTick in class BarGraphTypeObject

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 BarGraphTypeObject
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 BarGraphTypeObject
Parameters:
click_x - x coordinate of mouse over point
click_y - y coordinate of mouse over point
Returns:
DrillDownDetail object of DrillDownDetail

drawPolygon

protected void drawPolygon(GraphicsEx inGraphicsEx,
                           java.awt.Polygon inPolygon,
                           int inBrStyle,
                           int inBrWidth,
                           java.awt.Color inBrColor,
                           boolean isHorizontal)
This method draw border to polygon

Overrides:
drawPolygon in class BarGraphTypeObject
Parameters:
inGraphicsEx - GraphicsEx Object
inPolygon - Polygon Object
inBrWidth - border width
inBrColor - border color
inBrStyle - border style
isHorizontal - whether width is higher then height or not

drawMouseOverEffect

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

Overrides:
drawMouseOverEffect in class BarGraphTypeObject
Parameters:
inGraphicsEx - GraphicsEx Object
inDDD - DrillDownDetail Object
isMOEDraw - true - to draw mouse over effect
inBorder - AWTBorder Object
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

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 BarGraphTypeObject
Parameters:
click_x -
click_y -
Returns:
DrillDownDetail

drawStaticMouseOverText

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

Overrides:
drawStaticMouseOverText in class BarGraphTypeObject
Parameters:
inGraphicsEx -
Returns:
Rectangle

drawMouseOverText

public java.awt.Rectangle drawMouseOverText(GraphicsEx inGraphicsEx,
                                            DrillDownDetail inDDD,
                                            int inH,
                                            int inV,
                                            int inWidth,
                                            int inHeight)
This method draws mouse over Text

Overrides:
drawMouseOverText in class BarGraphTypeObject
Parameters:
inGraphicsEx - GraphicsEx Object
inDDD - DrillDownDetail Object
inH - x point
inV - y point
inWidth - Bar Width
inHeight - Bar Height
Returns:
Rectangle Rectangle area where mouse over text is drawn

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.