ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.scatter
Class XYScatterGraphTypeObject

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.line.LineGraphTypeObject
              |
              +--com.elegantj.graphx.scatter.XYScatterGraphTypeObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BubbleGraphTypeObject, StackedXYScatterGraph

public class XYScatterGraphTypeObject
extends LineGraphTypeObject
implements java.io.Serializable

XYScatterGraphTypeObject class provides the basic functionality to render the Graphs line

See Also:
Serialized Form

Field Summary
protected  int m_MinusXClipLabels
          Specifies the total number of x-axis minimum labels
protected  int m_PlusXClipLabels
          Specifies the total number of x-axis maximum labels
protected  double m_XAbsGradLabel
          Specifies the x-axis gradient absolute label size
protected  int m_XClipLabels
          Specifies the total number of x-axis labels
protected  double m_XMaxLabelValue
          Specifies the x-axis maximum value
protected  double m_XMinLabelValue
          Specifies the x-axis minimum value
protected  XYScatterGraph m_XYScatterGraph
          Specifies XYScatterGraph Object
 
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
XYScatterGraphTypeObject(XYScatterGraph inGraphMain)
          Creates the XYScatterGraphTypeObject with specified XYScatterGraph object
 
Method Summary
protected  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 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
 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
 DrillDownDetail getDrillDownDetail(int click_x, int click_y)
          If Given Point on Graph then it will Return Drilldowndetail Object Otherwise Return null
 java.awt.Polygon getGraphAreaPolygon()
          Get Polygon for Graph Area excluding title space, x-Axis space, y-Axis space and Legend space
 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
 DrillDownDetail setMouseOverPoint(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
 
Methods inherited from class com.elegantj.graphx.line.LineGraphTypeObject
calcLinePoints, computeSplineSlopePoints, DraeDataPointShape, drawExplanNotes, 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_XClipLabels

protected int m_XClipLabels
Specifies the total number of x-axis labels


m_PlusXClipLabels

protected int m_PlusXClipLabels
Specifies the total number of x-axis maximum labels


m_MinusXClipLabels

protected int m_MinusXClipLabels
Specifies the total number of x-axis minimum labels


m_XAbsGradLabel

protected double m_XAbsGradLabel
Specifies the x-axis gradient absolute label size


m_XMaxLabelValue

protected double m_XMaxLabelValue
Specifies the x-axis maximum value


m_XMinLabelValue

protected double m_XMinLabelValue
Specifies the x-axis minimum value


m_XYScatterGraph

protected XYScatterGraph m_XYScatterGraph
Specifies XYScatterGraph Object

Constructor Detail

XYScatterGraphTypeObject

public XYScatterGraphTypeObject(XYScatterGraph inGraphMain)
                         throws GraphException
Creates the XYScatterGraphTypeObject with specified XYScatterGraph object

Method Detail

init

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

Overrides:
init in class LineGraphTypeObject
GraphException

initFields

public void initFields()
                throws GraphException
Initialization of the fields

Overrides:
initFields in class LineGraphTypeObject
GraphException

drawXAxisLine

protected void drawXAxisLine()
Draws The X-Axis Line

Overrides:
drawXAxisLine in class LineGraphTypeObject

drawXAxisLabels

protected void drawXAxisLabels()
Draws The X-Axis Labels

Overrides:
drawXAxisLabels in class LineGraphTypeObject

drawXAxisGridAndTick

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

Overrides:
drawXAxisGridAndTick in class LineGraphTypeObject

drawGraph

protected void drawGraph()
Draws the Graph

Overrides:
drawGraph in class LineGraphTypeObject

drawStaticMouseOverText

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

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

getSeriesIndex

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

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

setMouseOverPoint

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

getDrillDownDetail

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

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

getGraphAreaPolygon

public java.awt.Polygon getGraphAreaPolygon()
Get Polygon for Graph Area excluding title space, x-Axis space, y-Axis space and Legend space

Overrides:
getGraphAreaPolygon in class LineGraphTypeObject
Returns:
Polygon Polygon object of graph area

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.