|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.elegantj.graphx.GraphTypeObject
|
+--com.elegantj.graphx.candle.CandleGraphTypeObject
CandleGraphTypeObject is used to render Candle Graph
| Field Summary | |
protected static int |
EXPLAN_HOFFSET
Specifies the constant for explanation notes horizontal offset |
protected static int |
H_SPACE
Specifies the Horizontal offset |
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 int |
m_BarWidth
Specifies the bar width |
protected java.util.Vector |
m_CandleDataVect
|
protected CandleGraph |
m_CandleGraph
Specifies CandleGraph Object |
protected CandleGraphExplanNotes |
m_CandleGraphExplanNotes
Specifies the graph explanation notes |
protected int |
m_ExplanAreaAlign
Specifies the Explanation area Alignment(LEFT/CENTER/RIGHT OR TOP/CENTER/BOTTOM) |
protected int |
m_ExplanAreaHeight
Specifies the Explanation area height |
protected int |
m_ExplanAreaPosition
Specifies the Explanation area Position(NORTH/EAST/SOUTH/WEST) |
protected int |
m_ExplanAreaWidth
Specifies the explanation area width |
protected int |
m_FontHeight
Specifies the font height |
protected int |
m_GraphAreaWidth
Specifies the graph width |
protected GraphCandleDetail |
m_GraphCandleDetail
Specifies the Bar Properties of Graph |
protected GraphLabel |
m_GraphLabel
Specifies the graph label |
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 GraphYAxisDetail |
m_GraphYAxisDetail
Specifies the Y-Axis Detail for Graph |
protected java.awt.Rectangle |
m_GraphYAxisRectangle
Specifies Actual Y-Axis Label Area Rectangle |
protected GraphZAxisDetail |
m_GraphZAxisDetail
Specifies the Z-Axis (Legends) Detail for Graph |
protected java.awt.Rectangle |
m_GraphZAxisRectangle
Specifies Actual Z-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
Specifies the Mouse Over effect is drawn then this flag is false |
protected int |
m_MinusYClipLabels
Specifies the total number of y-axis minimum labels |
protected int |
m_MinusYClipLength
Specifies the y-axis minimum extra length |
protected java.awt.Rectangle |
m_MouseOverTextRect
Specifies Mouse Over text Area Rectangle |
protected DrillDownDetail |
m_OldMODetail
Specifies old Mouse Over Object (DrillDownDetail) |
protected int |
m_PlusYClipLabels
Specifies the total number of y-axis maximum labels |
protected int |
m_PlusYClipLength
Specifies the y-axis maximum extra length |
protected java.awt.Polygon[] |
m_PolXLabelList
contain bound polygon of X axis labels |
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 int |
m_YAxisHeight
Specifies Y-Axis Label Height |
protected java.awt.Font |
m_YAxisLabelFont
Specifies Y-Axis Font |
protected int |
m_YAxisWidth
Specifies Y-Axis Label Width |
protected int |
m_YClipLabels
Specifies the total number of y-axis labels |
protected int |
m_YClipLength
Specifies the y-axis length |
protected int |
m_YGradLength
Specifies the y-axis 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 int |
m_YMaxLabelWidth
Specifies Y-Axis Label Maximum Width |
protected double |
m_YMinLabelValue
Specifies the y-axis minimum value |
protected int |
m_ZGradLength
Specifies the z-axis gradient length |
protected int |
m_ZLabels
Specifies the total number of z-axis labels |
| Fields inherited from class com.elegantj.graphx.GraphTypeObject |
m_GraphicsEx |
| Constructor Summary | |
CandleGraphTypeObject(CandleGraph inGraphMain)
Creates the CandleGraphTypeObject with specified CandleGraph object |
|
| Method Summary | |
void |
Draw2D_Candle_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight)
This method Draw 2D Candle Stick |
void |
Draw2D_HLOC_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight)
This method Draw 2D HLOC Candle |
void |
draw2DGraph()
Draws the 2D Graph |
void |
Draw3D_Candle_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight)
This method Draw the 3D Candle Stick |
void |
Draw3D_HLOC_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight,
int theBorderWidth)
Draw the 3D HLOC Stick |
void |
Draw3DBar(int theH,
int theV,
int theWidth,
int theHeight,
java.awt.Color theBarColor,
boolean drawBorder)
|
void |
draw3DGraph()
Draw 3D Bar Graph |
void |
DrawBarBorder(int theGraphType,
boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight,
com.elegantj.editors.AWTBorder theBarBorder,
GraphicsEx inGraphicsEx)
This method draws border to stick for mouseovereffect |
void |
DrawCylinder(boolean drawCylinder,
int theH,
int theV,
int theBarWidth,
int theBarLength,
java.awt.Color theColor)
|
protected void |
drawExplanNotes()
Draws the explanation notes |
void |
drawGraph()
Draws the Graph |
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 |
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 |
drawYAxisGridAndTick()
Draws The Y-Axis Grid and Tick lines |
protected void |
drawYAxisLabels()
Draws The Y-Axis Labels |
protected void |
drawYAxisLine()
Draws The Y-Axis |
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 |
java.awt.Polygon |
getGraphAreaPolygon()
Get Polygon for Graph Area excluding title space, x-Axis space, y-Axis space and Legend space |
protected java.awt.Polygon |
getPolygon(int xStart,
int yStart,
int Width,
int Height,
int hOffset,
int vOffset)
Return polygon(surface) for 3D effect |
static int |
getPreferredWidth(CandleGraph inCandleGraph,
GraphicsEx inGraphicsEx,
int inWidth,
int inHeight,
int inBarWidth)
|
int |
getSeriesIndex(int click_x)
Return Series Index near to given horizontal distance |
protected static int |
getTickHeight(AxisDetail inAxisDetail)
|
protected void |
init(GraphPanel inGraphPanel)
Initialization of Graph |
protected void |
initFields()
Initialization of the fields |
void |
initTitle()
Calculation for Title Of Graph |
void |
reDrawing(GraphicsEx inGraphicsEx)
Redraw Graph According to Graphics's clipping rectangle th |
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 |
protected boolean m_IsPointSet
protected static final int EXPLAN_HOFFSET
protected static final int H_SPACE
protected int m_Width
protected int m_Height
protected int m_GraphAreaWidth
protected int m_ExplanAreaWidth
protected int m_ExplanAreaHeight
protected int m_HOffset
protected int m_VOffset
protected int m_XLength
protected int m_XLabels
protected int m_XGradLength
protected int m_XLabelVSteps
protected int m_YClipLength
protected int m_PlusYClipLength
protected int m_MinusYClipLength
protected int m_YClipLabels
protected int m_PlusYClipLabels
protected int m_MinusYClipLabels
protected int m_YGradLength
protected double m_YAbsGradLabel
protected double m_YMaxLabelValue
protected double m_YMinLabelValue
protected int m_ZLabels
protected int m_ZGradLength
protected int m_FontHeight
protected int m_BarWidth
protected GraphLabel m_GraphLabel
protected CandleGraphExplanNotes m_CandleGraphExplanNotes
protected TextAlign m_TextAlign
protected GraphTitleDetail m_GraphTitleDetail
protected GraphXAxisDetail m_GraphXAxisDetail
protected GraphYAxisDetail m_GraphYAxisDetail
protected GraphZAxisDetail m_GraphZAxisDetail
protected GraphCandleDetail m_GraphCandleDetail
protected java.awt.Font m_TitleFont
protected int m_TitleFontHeight
protected java.awt.Font m_XAxisLabelFont
protected java.awt.Font m_YAxisLabelFont
protected int m_TitleHeight
protected int m_XAxisHeight
protected int m_XAxisWidth
protected int m_YAxisHeight
protected int m_YAxisWidth
protected int m_YMaxLabelWidth
protected boolean m_Is3DGraph
protected int m_3DHOffset
protected int m_3DVOffset
protected int m_ExplanAreaPosition
protected int m_ExplanAreaAlign
protected java.awt.Polygon m_GraphRectangle
protected java.awt.Rectangle m_GraphXAxisRectangle
protected java.awt.Rectangle m_GraphYAxisRectangle
protected java.awt.Rectangle m_GraphZAxisRectangle
protected java.awt.Rectangle m_TitleRectangle
protected java.awt.Rectangle m_MouseOverTextRect
protected DrillDownDetail m_OldMODetail
protected CandleGraph m_CandleGraph
protected java.util.Vector m_CandleDataVect
protected java.awt.Polygon[] m_PolXLabelList
protected java.awt.Polygon[] m_PolYLabelList
protected int m_YLabelVSteps
| Constructor Detail |
public CandleGraphTypeObject(CandleGraph inGraphMain)
throws GraphException
| Method Detail |
protected void init(GraphPanel inGraphPanel)
throws GraphException
init in class GraphTypeObjectGraphException
protected void initFields()
throws GraphException
GraphExceptionpublic void draw3DGraph()
public DrillDownDetail getDrillDetail(int click_x,
int click_y)
click_x - x point on graphclick_y - y point on graph
public DrillDownDetail getDrillDownDetail(GraphicsEx inGraphicsEx,
int click_x,
int click_y)
inGraphicsEx - GraphicsEx Objectclick_x - x point on graphclick_y - y point on graph
public boolean drawMouseOverEffect(GraphicsEx inGraphicsEx,
DrillDownDetail inDDD,
boolean isMOEDraw,
com.elegantj.editors.AWTBorder inBorder,
boolean isMOTDraw,
boolean isRestore)
inGraphicsEx - GraphicsEx ObjectinDDD - DrillDownDetail ObjectisMOEDraw - true - to draw mouse over effectinBorder - AWTBorder ObjectisMOTDraw - true - to draw mouse over TextisRestore - true - to draw mouse over effect or mouse over text, false - to remove mouse over effect or mouse over text
public void draw2DGraph()
protected java.awt.Polygon getPolygon(int xStart,
int yStart,
int Width,
int Height,
int hOffset,
int vOffset)
protected DrillDownDetail getDrillDownDetail(int click_x,
int click_y)
public java.awt.Rectangle drawStaticMouseOverText(GraphicsEx inGraphicsEx)
inGraphicsEx - GraphicsEx Object
public static int getPreferredWidth(CandleGraph inCandleGraph,
GraphicsEx inGraphicsEx,
int inWidth,
int inHeight,
int inBarWidth)
throws GraphException
GraphException
public void Draw3D_HLOC_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight,
int theBorderWidth)
isFilledBody - Whether or not the Real body is to be filledtheH - X cordinatetheV_H - Y cordinate for High valuetheV_L - Y cordinate for Low valuetheV_O - Y cordinate for Open valuetheV_C - Y cordinate for Close valuetheHeight - Height of real body [difference of Open and Close]theBorderWidth - width of border
public void Draw2D_HLOC_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight)
isFilledBody - Whether or not the Real body is to be filledtheH - X cordinatetheV_H - Y cordinate for High valuetheV_L - Y cordinate for Low valuetheV_O - Y cordinate for Open valuetheV_C - Y cordinate for Close valuetheHeight - Height of real body [difference of Open and Close]public void drawGraph()
drawGraph in class GraphTypeObject
public void reDrawing(GraphicsEx inGraphicsEx)
throws GraphException
GraphTypeObject
reDrawing in class GraphTypeObjectGraphExceptionprotected void drawXAxisLabels()
drawXAxisLabels in class GraphTypeObject
public void DrawCylinder(boolean drawCylinder,
int theH,
int theV,
int theBarWidth,
int theBarLength,
java.awt.Color theColor)
public void Draw3D_Candle_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight)
isFilledBody - Whether or not the Real body is to be filledtheH - X cordinatetheV_H - Y cordinate for High valuetheV_L - Y cordinate for Low valuetheV_O - Y cordinate for Open valuetheV_C - Y cordinate for Close valuetheHeight - Height of real body [difference of Open and Close]
public void Draw2D_Candle_Stick(boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight)
isFilledBody - Whether or not the Real body is to be filledtheH - X cordinatetheV_H - Y cordinate for High valuetheV_L - Y cordinate for Low valuetheV_O - Y cordinate for Open valuetheV_C - Y cordinate for Close valuetheHeight - Height of real body [difference of Open and Close]
public void Draw3DBar(int theH,
int theV,
int theWidth,
int theHeight,
java.awt.Color theBarColor,
boolean drawBorder)
public void DrawBarBorder(int theGraphType,
boolean isFilledBody,
int theH,
int theV_H,
int theV_L,
int theV_O,
int theV_C,
int theHeight,
com.elegantj.editors.AWTBorder theBarBorder,
GraphicsEx inGraphicsEx)
isFilledBody - Whether or not the Real body is to be filledtheH - X cordinatetheV_H - Y cordinate for High valuetheV_L - Y cordinate for Low valuetheV_O - Y cordinate for Open valuetheV_C - Y cordinate for Close valuetheHeight - Height of real body [difference of Open and Close]theBarBorder - Border to be drawninGraphicsEx - Currently set Graphicsprotected void drawGraphAreaBackground(GraphicsEx inGraphicsEx)
drawGraphAreaBackground in class GraphTypeObjectprotected void drawXAxisLine()
drawXAxisLine in class GraphTypeObjectprotected void drawXAxisGridAndTick()
drawXAxisGridAndTick in class GraphTypeObjectprotected void drawYAxisLine()
drawYAxisLine in class GraphTypeObjectprotected void drawYAxisLabels()
drawYAxisLabels in class GraphTypeObjectprotected void drawYAxisGridAndTick()
drawYAxisGridAndTick in class GraphTypeObjectpublic void initTitle()
protected void drawTitle()
drawTitle in class GraphTypeObjectprotected void drawExplanNotes()
drawExplanNotes in class GraphTypeObject
protected void drawPolygon(GraphicsEx inGraphicsEx,
java.awt.Polygon inPolygon,
int inBrStyle,
int inBrWidth,
java.awt.Color inBrColor,
boolean isHorizontal)
inGraphicsEx - GraphicsEx ObjectinPolygon - Polygon ObjectinBrWidth - border widthinBrColor - border colorinBrStyle - border styleisHorizontal - whether width is higher then height or not
public DrillDownDetail setMouseOverPoint(GraphicsEx inGraphicsEx,
int click_x,
int click_y)
inGraphicsEx - GraphicsEx Objectclick_x - x point on graphclick_y - y point on graphpublic int getSeriesIndex(int click_x)
click_x - Horizontal Distance
public java.awt.Rectangle drawMouseOverText(GraphicsEx inGraphicsEx,
DrillDownDetail inDDD,
int inH,
int inV,
int inWidth,
int inHeight)
inGraphicsEx - GraphicsEx ObjectinDDD - DrillDownDetail ObjectinH - x pointinV - y pointinWidth - Bar WidthinHeight - Bar Height
public DrillDownDetail getClickedXAxisLabel(int click_x,
int click_y)
public DrillDownDetail getClickedYAxisLabel(int click_x,
int click_y)
protected static int getTickHeight(AxisDetail inAxisDetail)
public java.awt.Polygon getGraphAreaPolygon()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||