ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.mix
Class CombinedGraphTypeObject

java.lang.Object
  |
  +--com.elegantj.graphx.GraphTypeObject
        |
        +--com.elegantj.graphx.mix.CombinedGraphTypeObject
All Implemented Interfaces:
java.io.Serializable

public class CombinedGraphTypeObject
extends GraphTypeObject
implements java.io.Serializable

CombinedGraphTypeObject class provides the basic functionality to render the Graphs line

See Also:
Serialized Form

Field Summary
protected static int EXPLAN_HOFFSET
          Specifies the constant for explanation notes horizontal offset
protected static int H_SPACE
           
protected  int m_3DHOffset
          Specifies the Horizontal Deviation for Display 3D effect
protected  int m_3DVOffset
          Specifies the Vertical Deviation for Display 3D effect
protected  BarGraphExplanNotes m_BarGraphExplanNotes
          Specifies the graph explanation notes
protected  int m_BarWidth
          Specifies the bar width
protected  CombinedGraph m_CombinedGraph
          Specifies CombinedGraph Object
protected  int m_ExplanArea1_Height
          Specifies the explanation area height
protected  int m_ExplanArea1_Width
          Specifies the explanation area 1 width
protected  int m_ExplanArea2_Height
          Specifies the explanation area height
protected  int m_ExplanArea2_Width
          Specifies the explanation area 2 width
protected  int m_ExplanAreaAlign
          Specifies the Explanation area Alignment(LEFT/CENTER/RIGHT OR TOP/CENTER/BOTTOM)
protected  int m_ExplanAreaAlign2
          Specifies the Explanation area Alignment For LineGraph(LEFT/CENTER/RIGHT OR TOP/CENTER/BOTTOM)
protected  int m_ExplanAreaPosition
          Specifies the explanation area position(LEFT/RIGHT/TOP/BOTTOM/CENTER)
protected  int m_ExplanAreaPosition2
          Specifies the explanation area position For LineGraph(LEFT/RIGHT/TOP/BOTTOM/CENTER)
protected  int m_FontHeight
          Specifies the font height
protected  ValueFormat m_Formatter
          Specifies the Value formatting Object
protected  GraphZAxisDetail m_Graph1_ZAxisDetail
          Specifies the Z-Axis (Legends) Detail for Graph
protected  java.awt.Rectangle m_Graph1_ZAxisRectangle
          Specifies Actual Z-Axis Label Area Rectangle for graph 1
protected  GraphYAxisDetail m_Graph2_YAxisDetail
          Specifies the Y-Axis Detail for Graph2
protected  GraphZAxisDetail m_Graph2_ZAxisDetail
          Specifies the Z-Axis (Legends) Detail for Graph
protected  java.awt.Rectangle m_Graph2_ZAxisRectangle
          Specifies Actual Z-Axis Label Area Rectangle for graph 2
protected  int m_GraphAreaWidth
          Specifies the graph width
protected  GraphBarDetail m_GraphBarDetail
          Specifies the Bar Properties of Graph
protected  GraphLabel m_GraphLabel
          Specifies the combinedgraph label
protected  GraphLabel m_GraphLabel2
          Specifies the combinedgraph label
protected  GraphLineDetail m_GraphLineDetail
          Specifies the Line Properties of Graph
protected  java.awt.Polygon m_GraphRectangle
          Specifies Actual Graph Area Rectangle
protected  GraphTitleDetail m_GraphTitleDetail
          Specifies the Title Detail for Graph
protected  GraphXAxisDetail m_GraphXAxisDetail
          Specifies the X-Axis Detail for Graph
protected  java.awt.Rectangle m_GraphXAxisRectangle
          Specifies Actual X-Axis label Area Rectangle
protected  java.awt.Rectangle m_GraphYAxis2Rectangle
          Specifies Actual Y-Axis 2 Label Area Rectangle
protected  GraphYAxisDetail m_GraphYAxisDetail
          Specifies the Y-Axis Detail for Graph1
protected  java.awt.Rectangle m_GraphYAxisRectangle
          Specifies Actual Y-Axis Label Area Rectangle
protected  int m_Height
          Specifies the total height
protected  int m_HOffset
          Specifies the horizontal offset
protected  boolean m_Is3DGraph
          Specifies 3D effect is Enable or Disable
protected  boolean m_IsPointSet_Graph1
          Specifies the Mouse Over effect is drawn then this flag is false
protected  boolean m_IsPointSet_Graph2
          Specifies the Mouse Over effect is drawn then this flag is false
protected  LineGraphExplanNotes m_LineGraphExplanNotes
           
protected  int m_LineWidth
          Specifies the line width
protected  int m_MinusYClipLabels
          Specifies the total number of y-axis minimum labels
protected  int m_MinusYClipLabels2
          Specifies the total number of y-axis minimum labels
protected  int m_MinusYClipLength
          Specifies the y-axis minimum extra length
protected  int m_MinusYClipLength2
          Specifies the y-axis 2 minimum extra length
protected  java.awt.Rectangle m_MouseOverTextRect_Graph1
          Specifies Mouse Over text Area Rectangle
protected  java.awt.Rectangle m_MouseOverTextRect_Graph2
          Specifies Mouse Over text Area Rectangle
protected  DrillDownDetail m_OldMODetail_Graph1
          Specifies old Mouse Over Object (DrillDownDetail)
protected  DrillDownDetail m_OldMODetail_Graph2
          Specifies old Mouse Over Object (DrillDownDetail)
protected  int m_PlusYClipLabels
          Specifies the total number of y-axis maximum labels
protected  int m_PlusYClipLabels2
          Specifies the total number of y-axis maximum labels
protected  int m_PlusYClipLength
          Specifies the y-axis maximum extra length
protected  int m_PlusYClipLength2
          Specifies the y-axis 2 maximum extra length
protected  java.awt.Polygon[] m_PolXLabelList
          contain bound polygon of X axis labels
protected  java.awt.Polygon[] m_PolY2LabelList
           
protected  java.awt.Polygon[] m_PolYLabelList
          contain bound polygon of Y axis labels
protected  TextAlign m_TextAlign
          Specifies the text alignment
protected  java.awt.Font m_TitleFont
          Specifies Title Font
protected  int m_TitleFontHeight
          Specifies Graph Title Font Height
protected  int m_TitleHeight
          Specifies Graph Title Height
protected  java.awt.Rectangle m_TitleRectangle
          Specifies Title Rectangle
protected  int m_VOffset
          Specifies the vertical offset
protected  int m_Width
          Specifies the total width
protected  int m_XAxisHeight
          Specifies X-Axis Label Height
protected  java.awt.Font m_XAxisLabelFont
          Specifies X-Axis Font
protected  int m_XAxisWidth
          Specifies X-Axis Label Width
protected  int m_XGradLength
          Specifies the x-axis gradient length
protected  int m_XLabels
          Specifies the total number of x-axis labels
protected  int m_XLabelVSteps
          Specifies the total number of x-axis labels vertical steps
protected  int m_XLength
          Specifies the x-axis length
protected  double m_YAbsGradLabel
          Specifies the y-axis gradient absolute label size
protected  double m_YAbsGradLabel2
          Specifies the y-axis gradient absolute label size
protected  int m_YAxisHeight
          Specifies Y-Axis Label Height
protected  java.awt.Font m_YAxisLabelFont
          Specifies Y-Axis Font
protected  java.awt.Font m_YAxisLabelFont2
          Specifies Y-Axis Font for another y axis
protected  int m_YAxisWidth
          Specifies Y-Axis Label Width
protected  int m_YAxisWidth2
          Specifies Y-Axis 2 Label Width
protected  int m_YClipLabels
          Specifies the total number of y-axis labels
protected  int m_YClipLabels2
          Specifies the total number of y-axis labels
protected  int m_YClipLength
          Specifies the y-axis length
protected  int m_YClipLength2
          Specifies the y-axis 2 length
protected  int m_YGradLength
          Specifies the y-axis gradient length
protected  int m_YGradLength2
          Specifies the y-axis2 gradient length
protected  int m_YLabelVSteps
          Specifies the number of Y-axis labels skip steps
protected  double m_YMaxLabelValue
          Specifies the y-axis maximum value
protected  double m_YMaxLabelValue2
          Specifies the y-axis maximum value
protected  double m_YMinLabelValue
          Specifies the y-axis minimum value
protected  double m_YMinLabelValue2
          Specifies the y-axis minimum value
protected  int m_Z1Labels
          Specifies the total number of z-axis labels
protected  int m_Z2Labels
          Specifies the total number of z-axis labels
protected  int m_ZGradLength
          Specifies the z-axis gradient length
 
Fields inherited from class com.elegantj.graphx.GraphTypeObject
m_GraphicsEx
 
Constructor Summary
CombinedGraphTypeObject(CombinedGraph inGraphMain)
          Creates the CombinedGraphTypeObject with specified CombinedGraph object
 
Method Summary
 java.util.Vector calcLinePoints()
          This method calculates the point cordinates for graph
 void calculateExpNotesArea()
          This method performs calculation for Legand area
 void calculateLabels()
          This method performs the calculation for labels
 void draw2DBarGraph()
          This method draw 2D Bar Graph
 void draw2DGraph()
           
 void draw3DGraph()
          This method accept array of cordinates of all the points on a line and a object of LineGraphRowInfo type that contains the all info about that line.
protected  void drawExplanNotes()
          This method draw Legands [ExplanNotes] for Combined Graph
protected  void drawExplanNotes1()
          Draws the explanation notes for graph 1 [Legnds of BarGraph]
protected  void drawExplanNotes2()
          Draws the explanation notes for graph 2 [Legnds of LineGraph]
 void drawGraph()
          Draws the Graph
protected  void drawGraphAreaBackground(GraphicsEx inGraphicsEx)
          Draws Backgound of Actual graph Area
 void DrawLineGraph()
          This method draw the line graph
 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
 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, boolean isBarGraph)
          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
 java.awt.Rectangle drawStaticMouseOverTextBar(GraphicsEx inGraphicsEx)
          This method draws Static mouse over Text for bar graph
 java.awt.Rectangle drawStaticMouseOverTextLine(GraphicsEx inGraphicsEx)
          This method draws Static mouse over Text for line graph
protected  void drawTitle()
          Draws the title
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 drawYAxis2GridAndTick()
          Draws The Y-Axis 2 Grid and Tick lines
protected  void drawYAxisGridAndTick()
          Draws The Y-Axis Grid and Tick lines
protected  void drawYAxisLabels()
          Draws The Y-Axis Labels
protected  void drawYAxisLabels2()
          Draws The Y-Axis 2 Labels
protected  void drawYAxisLine()
          Draws The Y-Axis
protected  void drawYAxisLine2()
           
 DrillDownDetail getBarGraphDrillDetail(int click_x, int click_y)
          If Given Point on Bar Graph then it will Return Drilldowndetail Object Otherwise Return null (Common function for 2D and 3D 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 getClickedYAxis2Label(int click_x, int click_y)
          If Given Point on Y axis 2 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  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
 DrillDownDetail getLineGraphDrillDetail(int click_x, int click_y)
          If Given Point on Line Graph then it will Return Drilldowndetail Object Otherwise Return null (Common function for 2D and 3D Graph)
protected  java.awt.Polygon getPolygon(int xStart, int yStart, int Width, int Height)
          Return polygon(surface) for 3D effect
protected  java.awt.Polygon getPolygon(int xStart, int yStart, int Width, int Height, int hOffset, int vOffset)
          Return polygon(surface) for 3D effect
static java.awt.Dimension getPreferredSize(CombinedGraph theGraph, GraphicsEx inGraphicsEx, int inWidth, int inHeight)
          This method returns the detail for clicked on legands label of line graph
 int getSeriesIndex(int click_x)
          Return Series Index near to given horizontal distance
static int getTickAt(AxisDetail inAxisDetail)
          This methods return the tickheight when y axis in on right side
static int getTickHeight(AxisDetail inAxisDetail)
          Return preferred Dimenssion of Graph for given width and height of graph area.
protected  void init(GraphPanel inGraphPanel)
          Initialization of Graph
 void initFields()
          Initialization of the fields
 void initTitle()
          Calculation for Title Of Graph
 void reDrawing(GraphicsEx inGraphicsEx)
          This method accept array of cordinates of all the points on a line and a object of LineGraphRowInfo type that contains the all info about that line.
 DrillDownDetail setMouseOverPoint_BarGraph(GraphicsEx inGraphicsEx, int click_x, int click_y, DrillDownDetail theInDetail)
          If Given Point on bar Graph then it will Return Drilldowndetail Object and draw mouse over effect and mouse over text Otherwise Return null
 DrillDownDetail setMouseOverPoint_LineGraph(GraphicsEx inGraphicsEx, int click_x, int click_y, DrillDownDetail theInDetail)
          If Given Point on line Graph then it will Return Drilldowndetail Object and draw mouse over effect and mouse over text Otherwise Return null
 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.GraphTypeObject
initDrawing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_IsPointSet_Graph1

protected boolean m_IsPointSet_Graph1
Specifies the Mouse Over effect is drawn then this flag is false


m_IsPointSet_Graph2

protected boolean m_IsPointSet_Graph2
Specifies the Mouse Over effect is drawn then this flag is false


EXPLAN_HOFFSET

protected static final int EXPLAN_HOFFSET
Specifies the constant for explanation notes horizontal offset

See Also:
Constant Field Values

H_SPACE

protected static final int H_SPACE
See Also:
Constant Field Values

m_Width

protected int m_Width
Specifies the total width


m_Height

protected int m_Height
Specifies the total height


m_GraphAreaWidth

protected int m_GraphAreaWidth
Specifies the graph width


m_ExplanArea1_Width

protected int m_ExplanArea1_Width
Specifies the explanation area 1 width


m_ExplanArea2_Width

protected int m_ExplanArea2_Width
Specifies the explanation area 2 width


m_ExplanArea1_Height

protected int m_ExplanArea1_Height
Specifies the explanation area height


m_ExplanArea2_Height

protected int m_ExplanArea2_Height
Specifies the explanation area height


m_HOffset

protected int m_HOffset
Specifies the horizontal offset


m_VOffset

protected int m_VOffset
Specifies the vertical offset


m_XLength

protected int m_XLength
Specifies the x-axis length


m_XLabels

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


m_XGradLength

protected int m_XGradLength
Specifies the x-axis gradient length


m_XLabelVSteps

protected int m_XLabelVSteps
Specifies the total number of x-axis labels vertical steps


m_YClipLength

protected int m_YClipLength
Specifies the y-axis length


m_PlusYClipLength

protected int m_PlusYClipLength
Specifies the y-axis maximum extra length


m_MinusYClipLength

protected int m_MinusYClipLength
Specifies the y-axis minimum extra length


m_YClipLength2

protected int m_YClipLength2
Specifies the y-axis 2 length


m_PlusYClipLength2

protected int m_PlusYClipLength2
Specifies the y-axis 2 maximum extra length


m_MinusYClipLength2

protected int m_MinusYClipLength2
Specifies the y-axis 2 minimum extra length


m_YGradLength

protected int m_YGradLength
Specifies the y-axis gradient length


m_YGradLength2

protected int m_YGradLength2
Specifies the y-axis2 gradient length


m_YClipLabels

protected int m_YClipLabels
Specifies the total number of y-axis labels


m_PlusYClipLabels

protected int m_PlusYClipLabels
Specifies the total number of y-axis maximum labels


m_MinusYClipLabels

protected int m_MinusYClipLabels
Specifies the total number of y-axis minimum labels


m_YAbsGradLabel

protected double m_YAbsGradLabel
Specifies the y-axis gradient absolute label size


m_YMaxLabelValue

protected double m_YMaxLabelValue
Specifies the y-axis maximum value


m_YMinLabelValue

protected double m_YMinLabelValue
Specifies the y-axis minimum value


m_YClipLabels2

protected int m_YClipLabels2
Specifies the total number of y-axis labels


m_PlusYClipLabels2

protected int m_PlusYClipLabels2
Specifies the total number of y-axis maximum labels


m_MinusYClipLabels2

protected int m_MinusYClipLabels2
Specifies the total number of y-axis minimum labels


m_YAbsGradLabel2

protected double m_YAbsGradLabel2
Specifies the y-axis gradient absolute label size


m_YMaxLabelValue2

protected double m_YMaxLabelValue2
Specifies the y-axis maximum value


m_YMinLabelValue2

protected double m_YMinLabelValue2
Specifies the y-axis minimum value


m_Z1Labels

protected int m_Z1Labels
Specifies the total number of z-axis labels


m_Z2Labels

protected int m_Z2Labels
Specifies the total number of z-axis labels


m_ZGradLength

protected int m_ZGradLength
Specifies the z-axis gradient length


m_FontHeight

protected int m_FontHeight
Specifies the font height


m_LineWidth

protected int m_LineWidth
Specifies the line width


m_GraphLabel

protected GraphLabel m_GraphLabel
Specifies the combinedgraph label


m_GraphLabel2

protected GraphLabel m_GraphLabel2
Specifies the combinedgraph label


m_BarGraphExplanNotes

protected BarGraphExplanNotes m_BarGraphExplanNotes
Specifies the graph explanation notes


m_LineGraphExplanNotes

protected LineGraphExplanNotes m_LineGraphExplanNotes

m_TextAlign

protected TextAlign m_TextAlign
Specifies the text alignment


m_GraphTitleDetail

protected GraphTitleDetail m_GraphTitleDetail
Specifies the Title Detail for Graph


m_GraphXAxisDetail

protected GraphXAxisDetail m_GraphXAxisDetail
Specifies the X-Axis Detail for Graph


m_GraphYAxisDetail

protected GraphYAxisDetail m_GraphYAxisDetail
Specifies the Y-Axis Detail for Graph1


m_Graph2_YAxisDetail

protected GraphYAxisDetail m_Graph2_YAxisDetail
Specifies the Y-Axis Detail for Graph2


m_Graph1_ZAxisDetail

protected GraphZAxisDetail m_Graph1_ZAxisDetail
Specifies the Z-Axis (Legends) Detail for Graph


m_Graph2_ZAxisDetail

protected GraphZAxisDetail m_Graph2_ZAxisDetail
Specifies the Z-Axis (Legends) Detail for Graph


m_GraphLineDetail

protected GraphLineDetail m_GraphLineDetail
Specifies the Line Properties of Graph


m_GraphBarDetail

protected GraphBarDetail m_GraphBarDetail
Specifies the Bar Properties of Graph


m_BarWidth

protected int m_BarWidth
Specifies the bar width


m_TitleFont

protected java.awt.Font m_TitleFont
Specifies Title Font


m_TitleFontHeight

protected int m_TitleFontHeight
Specifies Graph Title Font Height


m_XAxisLabelFont

protected java.awt.Font m_XAxisLabelFont
Specifies X-Axis Font


m_YAxisLabelFont

protected java.awt.Font m_YAxisLabelFont
Specifies Y-Axis Font


m_YAxisLabelFont2

protected java.awt.Font m_YAxisLabelFont2
Specifies Y-Axis Font for another y axis


m_TitleHeight

protected int m_TitleHeight
Specifies Graph Title Height


m_XAxisHeight

protected int m_XAxisHeight
Specifies X-Axis Label Height


m_XAxisWidth

protected int m_XAxisWidth
Specifies X-Axis Label Width


m_YAxisHeight

protected int m_YAxisHeight
Specifies Y-Axis Label Height


m_YAxisWidth

protected int m_YAxisWidth
Specifies Y-Axis Label Width


m_YAxisWidth2

protected int m_YAxisWidth2
Specifies Y-Axis 2 Label Width


m_Is3DGraph

protected boolean m_Is3DGraph
Specifies 3D effect is Enable or Disable


m_3DHOffset

protected int m_3DHOffset
Specifies the Horizontal Deviation for Display 3D effect


m_3DVOffset

protected int m_3DVOffset
Specifies the Vertical Deviation for Display 3D effect


m_CombinedGraph

protected CombinedGraph m_CombinedGraph
Specifies CombinedGraph Object


m_ExplanAreaPosition

protected int m_ExplanAreaPosition
Specifies the explanation area position(LEFT/RIGHT/TOP/BOTTOM/CENTER)


m_ExplanAreaPosition2

protected int m_ExplanAreaPosition2
Specifies the explanation area position For LineGraph(LEFT/RIGHT/TOP/BOTTOM/CENTER)


m_ExplanAreaAlign

protected int m_ExplanAreaAlign
Specifies the Explanation area Alignment(LEFT/CENTER/RIGHT OR TOP/CENTER/BOTTOM)


m_ExplanAreaAlign2

protected int m_ExplanAreaAlign2
Specifies the Explanation area Alignment For LineGraph(LEFT/CENTER/RIGHT OR TOP/CENTER/BOTTOM)


m_GraphRectangle

protected java.awt.Polygon m_GraphRectangle
Specifies Actual Graph Area Rectangle


m_GraphXAxisRectangle

protected java.awt.Rectangle m_GraphXAxisRectangle
Specifies Actual X-Axis label Area Rectangle


m_GraphYAxisRectangle

protected java.awt.Rectangle m_GraphYAxisRectangle
Specifies Actual Y-Axis Label Area Rectangle


m_GraphYAxis2Rectangle

protected java.awt.Rectangle m_GraphYAxis2Rectangle
Specifies Actual Y-Axis 2 Label Area Rectangle


m_Graph1_ZAxisRectangle

protected java.awt.Rectangle m_Graph1_ZAxisRectangle
Specifies Actual Z-Axis Label Area Rectangle for graph 1


m_Graph2_ZAxisRectangle

protected java.awt.Rectangle m_Graph2_ZAxisRectangle
Specifies Actual Z-Axis Label Area Rectangle for graph 2


m_TitleRectangle

protected java.awt.Rectangle m_TitleRectangle
Specifies Title Rectangle


m_MouseOverTextRect_Graph1

protected java.awt.Rectangle m_MouseOverTextRect_Graph1
Specifies Mouse Over text Area Rectangle


m_MouseOverTextRect_Graph2

protected java.awt.Rectangle m_MouseOverTextRect_Graph2
Specifies Mouse Over text Area Rectangle


m_OldMODetail_Graph1

protected DrillDownDetail m_OldMODetail_Graph1
Specifies old Mouse Over Object (DrillDownDetail)


m_OldMODetail_Graph2

protected DrillDownDetail m_OldMODetail_Graph2
Specifies old Mouse Over Object (DrillDownDetail)


m_Formatter

protected ValueFormat m_Formatter
Specifies the Value formatting Object


m_PolXLabelList

protected java.awt.Polygon[] m_PolXLabelList
contain bound polygon of X axis labels


m_PolYLabelList

protected java.awt.Polygon[] m_PolYLabelList
contain bound polygon of Y axis labels


m_PolY2LabelList

protected java.awt.Polygon[] m_PolY2LabelList

m_YLabelVSteps

protected int m_YLabelVSteps
Specifies the number of Y-axis labels skip steps

Constructor Detail

CombinedGraphTypeObject

public CombinedGraphTypeObject(CombinedGraph inGraphMain)
                        throws GraphException
Creates the CombinedGraphTypeObject with specified CombinedGraph object

Method Detail

init

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

Overrides:
init in class GraphTypeObject
GraphException

initFields

public void initFields()
                throws GraphException
Initialization of the fields

GraphException

calculateLabels

public void calculateLabels()
                     throws GraphException
This method performs the calculation for labels

GraphException

reDrawing

public void reDrawing(GraphicsEx inGraphicsEx)
               throws GraphException
This method accept array of cordinates of all the points on a line and a object of LineGraphRowInfo type that contains the all info about that line. Draw the LINE GRAPH

Overrides:
reDrawing in class GraphTypeObject
Throws:
GraphException

initTitle

public void initTitle()
Calculation for Title Of Graph


drawGraphAreaBackground

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

Overrides:
drawGraphAreaBackground in class GraphTypeObject

drawXAxisLine

protected void drawXAxisLine()
Draws The X-Axis Line

Overrides:
drawXAxisLine in class GraphTypeObject

drawXAxisLabels

protected void drawXAxisLabels()
Draws The X-Axis Labels

Overrides:
drawXAxisLabels in class GraphTypeObject

drawXAxisGridAndTick

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

Overrides:
drawXAxisGridAndTick in class GraphTypeObject

drawYAxisLine

protected void drawYAxisLine()
Draws The Y-Axis

Overrides:
drawYAxisLine in class GraphTypeObject

drawYAxisLine2

protected void drawYAxisLine2()

drawYAxisLabels

protected void drawYAxisLabels()
Draws The Y-Axis Labels

Overrides:
drawYAxisLabels in class GraphTypeObject

drawYAxisLabels2

protected void drawYAxisLabels2()
Draws The Y-Axis 2 Labels


drawYAxis2GridAndTick

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


drawYAxisGridAndTick

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

Overrides:
drawYAxisGridAndTick in class GraphTypeObject

drawGraph

public void drawGraph()
Draws the Graph

Overrides:
drawGraph in class GraphTypeObject

calcLinePoints

public java.util.Vector calcLinePoints()
This method calculates the point cordinates for graph

Returns:
Vector Vector containing the point cordinates for graph

draw3DGraph

public void draw3DGraph()
This method accept array of cordinates of all the points on a line and a object of LineGraphRowInfo type that contains the all info about that line. Draw the styled line on graph along with specified shapes on data points


draw2DGraph

public void draw2DGraph()

DrawLineGraph

public void DrawLineGraph()
This method draw the line graph


draw2DBarGraph

public void draw2DBarGraph()
This method draw 2D Bar Graph


drawExplanNotes

protected void drawExplanNotes()
This method draw Legands [ExplanNotes] for Combined Graph

Overrides:
drawExplanNotes in class GraphTypeObject

drawExplanNotes1

protected void drawExplanNotes1()
Draws the explanation notes for graph 1 [Legnds of BarGraph]


drawExplanNotes2

protected void drawExplanNotes2()
Draws the explanation notes for graph 2 [Legnds of LineGraph]


drawTitle

protected void drawTitle()
Draws the title

Overrides:
drawTitle in class GraphTypeObject

drawStaticMouseOverTextBar

public java.awt.Rectangle drawStaticMouseOverTextBar(GraphicsEx inGraphicsEx)
This method draws Static mouse over Text for bar graph

Parameters:
inGraphicsEx - GraphicsEx Object

drawStaticMouseOverTextLine

public java.awt.Rectangle drawStaticMouseOverTextLine(GraphicsEx inGraphicsEx)
This method draws Static mouse over Text for line graph

Parameters:
inGraphicsEx - GraphicsEx Object

drawStaticMouseOverText

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

Parameters:
inGraphicsEx - GraphicsEx Object

drawMouseOverText

public java.awt.Rectangle drawMouseOverText(GraphicsEx inGraphicsEx,
                                            DrillDownDetail inDDD,
                                            int inH,
                                            int inV,
                                            int inWidth,
                                            int inHeight,
                                            boolean isBarGraph)
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
isBarGraph - draws mouse over Text over bargraph or linegraph
Returns:
Rectangle Rectangle area where mouse over text is drawn

getSeriesIndex

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

Parameters:
click_x - Horizontal Distance
Returns:
int

getPolygon

protected java.awt.Polygon getPolygon(int xStart,
                                      int yStart,
                                      int Width,
                                      int Height)
Return polygon(surface) for 3D effect


getPolygon

protected java.awt.Polygon getPolygon(int xStart,
                                      int yStart,
                                      int Width,
                                      int Height,
                                      int hOffset,
                                      int vOffset)
Return polygon(surface) for 3D effect


setMouseOverPoint_BarGraph

public DrillDownDetail setMouseOverPoint_BarGraph(GraphicsEx inGraphicsEx,
                                                  int click_x,
                                                  int click_y,
                                                  DrillDownDetail theInDetail)
If Given Point on bar Graph then it will Return Drilldowndetail Object and draw mouse over effect and mouse over text Otherwise Return null

Parameters:
inGraphicsEx - GraphicsEx Object
click_x - x point on graph
click_y - y point on graph

setMouseOverPoint_LineGraph

public DrillDownDetail setMouseOverPoint_LineGraph(GraphicsEx inGraphicsEx,
                                                   int click_x,
                                                   int click_y,
                                                   DrillDownDetail theInDetail)
If Given Point on line Graph then it will Return Drilldowndetail Object and draw mouse over effect and mouse over text Otherwise Return null

Parameters:
inGraphicsEx - GraphicsEx Object
click_x - x point on graph
click_y - y point on graph

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

Parameters:
inGraphicsEx - GraphicsEx Object
click_x - x point on graph
click_y - y point on graph

getLineGraphDrillDetail

public DrillDownDetail getLineGraphDrillDetail(int click_x,
                                               int click_y)
If Given Point on Line Graph then it will Return Drilldowndetail Object Otherwise Return null (Common function for 2D and 3D Graph)

Parameters:
click_x - x point on graph
click_y - y point on graph

getBarGraphDrillDetail

public DrillDownDetail getBarGraphDrillDetail(int click_x,
                                              int click_y)
If Given Point on Bar Graph then it will Return Drilldowndetail Object Otherwise Return null (Common function for 2D and 3D Graph)

Parameters:
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)

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

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

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


getDrillDownDetail

protected 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

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


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


getClickedYAxis2Label

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


getTickHeight

public static int getTickHeight(AxisDetail inAxisDetail)
Return preferred Dimenssion of Graph for given width and height of graph area. inCombinedGraph CombinedGraph object inGraphicsEx Graphics object inWidth actural width of graph inHeight actual height of graph prefWidth minimum width for graph area prefHeight minimum height for graph area


getTickAt

public static int getTickAt(AxisDetail inAxisDetail)
This methods return the tickheight when y axis in on right side


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

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

calculateExpNotesArea

public void calculateExpNotesArea()
This method performs calculation for Legand area


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

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

getPreferredSize

public static java.awt.Dimension getPreferredSize(CombinedGraph theGraph,
                                                  GraphicsEx inGraphicsEx,
                                                  int inWidth,
                                                  int inHeight)
                                           throws GraphException
This method returns the detail for clicked on legands label of line graph

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.