ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.bubble
Class BubbleGraphTypeObject

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.line.LineGraphTypeObject
              |
              +--com.elegantj.graphx.scatter.XYScatterGraphTypeObject
                    |
                    +--com.elegantj.graphx.bubble.BubbleGraphTypeObject
All Implemented Interfaces:
java.io.Serializable

public class BubbleGraphTypeObject
extends XYScatterGraphTypeObject
implements java.io.Serializable

BubbleGraphTypeObject class provides the basic functionality to render the Graphs line

See Also:
Serialized Form

Field Summary
protected  BubbleGraph m_BubbleGraph
          Specifies BubbleGraph Object
protected  BubbleGraphExplanNotes m_BubbleGraphExplanNotes
          Specifies the graph explanation notes
protected  double m_BubbleMaxSizeValue
          Specifies the Bubble Max Size Value
protected  double m_BubbleMinSizeValue
          Specifies the Bubble Min Size Value
protected  java.awt.Rectangle m_BubbleRectangle
          Specifies Bubble Rectangle
protected  java.awt.Rectangle m_ClipRectangle
          Specifies GraphFrontRectangle
protected  GraphBubbleDetail m_GraphBubbleDetail
          Specifies GraphBubbleDetail Object
protected  java.util.Vector m_VBubbleSet
          contain all Bubble
 
Fields inherited from class com.elegantj.graphx.scatter.XYScatterGraphTypeObject
m_MinusXClipLabels, m_PlusXClipLabels, m_XAbsGradLabel, m_XClipLabels, m_XMaxLabelValue, m_XMinLabelValue, m_XYScatterGraph
 
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
BubbleGraphTypeObject(BubbleGraph inGraphMain)
          Creates the BubbleGraphTypeObject with specified BubbleGraph object
 
Method Summary
 java.awt.Rectangle drawBubble(GraphicsEx m_gx, int left, int top, int width, int height, int lineWidth, java.awt.Color theColor, java.awt.Color theGradientColor, java.awt.Color theBorderColor, boolean IsBorder, boolean IsGradient)
          Draw Bubble with 2d/3dEffect/Border & fill with color/GradientColor
protected  void drawExplanNotes()
          Draws the explanation notes
 void drawGraph()
          Draws the 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
 java.awt.Rectangle drawMouseOverText(GraphicsEx inGraphicsEx, DrillDownDetail inDDD, int inH, int inV, int inWidth, int inHeight)
          This method draws mouse over Text
 java.awt.Rectangle drawStaticMouseOverText(GraphicsEx inGraphicsEx)
          This method draws Static mouse over Text
 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 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
 int getSeriesIndex(int click_x)
          Return Series Index near to given horizontal distance
protected  void init(GraphPanel inGraphPanel)
          Initialization of Graph
 void initFields()
          Initialization of the fields
 void setBubbleMaxSizeValue()
          set Bubble Maximum size Value
 void setBubbleMinSizeValue()
          set Bubble Minimum size Value
 
Methods inherited from class com.elegantj.graphx.scatter.XYScatterGraphTypeObject
drawXAxisGridAndTick, drawXAxisLabels, drawXAxisLine, getDrillDownDetail, getGraphAreaPolygon, setMouseOverPoint
 
Methods inherited from class com.elegantj.graphx.line.LineGraphTypeObject
calcLinePoints, computeSplineSlopePoints, DraeDataPointShape, drawGraph, drawGraphAreaBackground, DrawLineGraph, DrawLineGraphShadow, drawMouseOverText, DrawPointGraph, DrawStripGraph, DrawStyledGraphLine, drawTitle, drawYAxisGridAndTick, drawYAxisLabels, drawYAxisLine, getClickedYAxisLabel, getPolygon, getPolygon, getPreferredSize, getTickAt, getTickHeight, initTitle, reDrawing, 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_BubbleGraph

protected BubbleGraph m_BubbleGraph
Specifies BubbleGraph Object


m_GraphBubbleDetail

protected GraphBubbleDetail m_GraphBubbleDetail
Specifies GraphBubbleDetail Object


m_BubbleGraphExplanNotes

protected BubbleGraphExplanNotes m_BubbleGraphExplanNotes
Specifies the graph explanation notes


m_BubbleMaxSizeValue

protected double m_BubbleMaxSizeValue
Specifies the Bubble Max Size Value


m_BubbleMinSizeValue

protected double m_BubbleMinSizeValue
Specifies the Bubble Min Size Value


m_ClipRectangle

protected java.awt.Rectangle m_ClipRectangle
Specifies GraphFrontRectangle


m_VBubbleSet

protected java.util.Vector m_VBubbleSet
contain all Bubble


m_BubbleRectangle

protected java.awt.Rectangle m_BubbleRectangle
Specifies Bubble Rectangle

Constructor Detail

BubbleGraphTypeObject

public BubbleGraphTypeObject(BubbleGraph inGraphMain)
                      throws GraphException
Creates the BubbleGraphTypeObject with specified BubbleGraph object

Method Detail

init

protected void init(GraphPanel inGraphPanel)
             throws GraphException
Initialization of Graph

Overrides:
init in class XYScatterGraphTypeObject
GraphException

initFields

public void initFields()
                throws GraphException
Initialization of the fields

Overrides:
initFields in class XYScatterGraphTypeObject
GraphException

setBubbleMaxSizeValue

public void setBubbleMaxSizeValue()
set Bubble Maximum size Value


setBubbleMinSizeValue

public void setBubbleMinSizeValue()
set Bubble Minimum size Value


drawGraph

public void drawGraph()
Draws the Graph

Overrides:
drawGraph in class XYScatterGraphTypeObject

drawBubble

public java.awt.Rectangle drawBubble(GraphicsEx m_gx,
                                     int left,
                                     int top,
                                     int width,
                                     int height,
                                     int lineWidth,
                                     java.awt.Color theColor,
                                     java.awt.Color theGradientColor,
                                     java.awt.Color theBorderColor,
                                     boolean IsBorder,
                                     boolean IsGradient)
Draw Bubble with 2d/3dEffect/Border & fill with color/GradientColor

Parameters:
m_gx - instance of GraphicsEx
left - left corner point of oval
lineWidth - border Width of the bubble
theColor - bubble fill with thecolor
theGradientColor - gradient color
theBorderColor - bordercolor
IsBorder - Border is Visible/hide
IsGradient - Gradient is Visible/hide

drawExplanNotes

protected void drawExplanNotes()
Draws the explanation notes

Overrides:
drawExplanNotes in class LineGraphTypeObject

drawStaticMouseOverText

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

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

getSeriesIndex

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

Overrides:
getSeriesIndex in class XYScatterGraphTypeObject
Parameters:
click_x - Horizontal Distance
Returns:
int

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

drawMouseOverText

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

Parameters:
inGraphicsEx - GraphicsEx Object
inDDD - DrillDownDetail Object
inH - x point
inV - y point
inWidth - Line Width
inHeight - Line Height
Returns:
Rectangle Rectangle area where mouse over text is drawn

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

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.