ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.candle
Class CandleGraph

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.elegantj.graphx.GraphPanel
                                |
                                +--com.elegantj.graphx.candle.CandleGraph
All Implemented Interfaces:
javax.accessibility.Accessible, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class CandleGraph
extends GraphPanel
implements java.io.Externalizable

BarGraph class implements the 2 dimensional and 3 dimensional Candle Graph and HighLowOpenClose Graph with drilldown and mouse over effect

See Also:
Serialized Form

Field Summary
protected static int CANDLE_CHANGE
          Specifies the constant for refreshing graph
protected  java.util.Vector m_CandleDataVect
           
protected  int m_ColItemIndex
           
 java.util.Vector m_DataMatrix
          contains graph data.
protected static boolean m_fDebug
          Specifies the execution mode
 GraphCandleDetail m_GraphCandleDetail
          Specifies the Bar Properties of Graph
 java.util.Vector m_GraphFormTable
          contains setting of different graph formats.
protected  int m_Height
          Specifies the total height
protected  boolean m_Initialized
          Specifies whether the Graph has been initialized or not
protected  boolean m_IsRepaint
          This flag false then block paint() mathod
 java.awt.Rectangle m_OriginalClipRect
          Specifies the original clipping rectangle
protected  int m_Width
          Specifies the total width
 java.util.Vector m_XLabelList
          contains list of label at x axis.
protected  int m_XLabelType
           
 java.util.Vector m_ZLabelList
          contains list of label at z axis.
static int TIME_SERIES_DAILY
           
static int TIME_SERIES_HOURLY
           
static int TIME_SERIES_MONTHLY
           
static int TIME_SERIES_QUARTERLY
           
static int TIME_SERIES_WEEKLY
           
static int TIME_SERIES_YEARLY
           
 
Fields inherited from class com.elegantj.graphx.GraphPanel
c11, click_x, click_y, COMPUTATION_TYPE, DRILL_DOWN_REFRESH, EXPLAIN_NOTES_STR_LEN, EXPLAN_NOTES_STR_LEN_DEFAULT, GRAPH_DATA_SORT, GRAPH_PROPERTY_CHANGE, GRAPH_TYPE, INITIALIZE, ITEM_AXIS_LABEL, m_3DEffectEnable, m_3DHorizontalOffset, m_3DVerticalOffset, m_bFitToSize, m_bIsGraphDataPreserved, m_ComputationType, m_DataProvider, m_DefaultTooltipText, m_drillDownEnable, m_DrillDownListener, m_Driver, m_ExplainNotesStrLen, m_GraphAreaBackground, m_GraphAreaBackgroundVisible, m_GraphAreaGradientAngle, m_GraphAreaGradientColor, m_GraphAreaGradientExtent, m_GraphAreaGradientMode, m_GraphAreaGradientVisible, m_GraphData, m_Graphics, m_GraphicsEx, m_GraphNotes, m_GraphNotesBackground, m_GraphNotesBorderColor, m_GraphNotesBorderStyle, m_GraphNotesBorderWidth, m_GraphNotesEnable, m_GraphNotesFont, m_GraphNotesForeground, m_GraphNotesShadowColor, m_GraphNotesShadowStyle, m_GraphNotesShadowWidth, m_GraphNotesShowInterval, m_GraphNotesVisibleInterval, m_GraphObj, m_GraphSize, m_GraphTitleDetail, m_GraphTooltip, m_GraphXAxisDetail, m_GraphYAxisDetail, m_GraphZAxisDetail, m_iBottomOffset, m_iLeftOffset, m_iRightOffset, m_IsHandCursor, m_IsMouseOver, m_ItemAxisLabel, m_iTopOffset, m_kGraph, m_MouseOverEffectEnable, m_MouseOverStaticTextEnable, m_MouseOverText, m_MouseOverTextAlign, m_MouseOverTextBackground, m_MouseOverTextBackgroundVisible, m_MouseOverTextBorderColor, m_MouseOverTextBorderStyle, m_MouseOverTextBorderWidth, m_MouseOverTextEnable, m_MouseOverTextFont, m_MouseOverTextForeground, m_MouseOverTextMaxLen, m_MouseOverTextShadowColor, m_MouseOverTextShadowStyle, m_MouseOverTextShadowWidth, m_NumericalAxisLabel, m_oldPointItemIndex, m_oldPointSeriesIndex, m_Parent, m_Password, m_PopupMenu, m_Query, m_reDraw, m_ResultSet, m_SerialAxisLabel, m_SortEnable, m_sum, m_TooltipBackground, m_TooltipBorderColor, m_TooltipBorderStyle, m_TooltipBorderWidth, m_TooltipEnable, m_TooltipFont, m_TooltipForeground, m_TooltipShowInterval, m_TooltipText, m_TooltipVisibleInterval, m_URL, m_userName, m_YAxisDivisionValue, m_YAxisMaxLabelValue, m_YAxisMinLabelValue, m_YAxisUnitLabel, m_ZoomEnable, m_ZoomListener, m_ZoomSelectionEnabled, MOUSE_OVER_CHANGE, NUMERICAL_AXIS_LABEL, RESOURCE_BUNDLE, SERIAL_AXIS_LABEL, TOOL_TIP_CHANGE, Y_AXIS_COMMA_FORMAT, Y_AXIS_DIVISION_VALUE, Y_AXIS_MAX_LABEL_VALUE, Y_AXIS_MIN_LABEL_VALUE, Y_AXIS_UNIT_LABEL
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CandleGraph()
          Constructor
 
Method Summary
 void CreateGraphTypeObject()
          create CandleGraphTypeObject
 com.elegantj.editors.AWTBorder getBarBorder()
          get Bar Border Object
 java.awt.Color getBarBorderColor()
          U can get Bar Border Color using this method
 int getBarBorderStyle()
          Using this metod you can get bar border style
 boolean getBarBorderVisible()
          get Bar Border Visible/hide
 int getBarBorderWidth()
          Using this method you can get bar border width
 GraphCandleDetail getCandleProperties()
          Get GraphCandleDetail Object for bar properties
 java.lang.String getCandleTooltipText()
          get Bar Tooltip Text
 int getCandleTransperancyInPercent()
          get transperancy value of color
 int getCurrentTimeSeries()
          This method returns Current Time Series Type
 DrillDownDetail getDrillDownDetail(GraphicsEx gEx, int click_x, int click_y)
          Return DrillDownDetail object for given point Cordinate.
 java.awt.Color getEmptyBodyColor()
          This method returns the Real body Color [Empty: Open < close ]
 java.awt.Color getFilledBodyColor()
          This method returns the Real body Color [Filled: Open > close ]
 java.lang.String getFormattedText(double inValue)
           
 java.awt.Polygon getGraphAreaPolygon()
          Subclass have to override this method for ZoomIn/ZoomOut
 java.lang.Object getGraphTypeObject()
           
 java.awt.Dimension getPreferredSize()
           
 int getRealBodyWidth()
          This method returns the Real body Width
 java.lang.Object getSessionEnd()
          This method returns value of Session end
 java.lang.Object getSessionStart()
          This method returns value of Session start
 java.awt.Color getShadowLineColor()
          This method returns the Shadow Line Color
 int getShadowLineWidth()
          This method returns the Shadow Line Width
 java.lang.String getStringFromMacro(java.lang.String inMacroString, DrillDownDetail inDrillDownDetail)
          This function returns New string after replacing actual values in place of Macro string
 int getTimeSeriesInterval()
          This method returns interval value for X Axis [TimeSeries] labels
 java.lang.String getTooltipText()
          return Tooltip text
protected  java.awt.Rectangle getVisibleGraphRect()
          Returns the Visible rectangle of the component
 int getXLabelType()
          This method returns the current x label type
protected  int indexOf(java.util.Vector vector, java.lang.String text)
          Returns the index of the specified text into given vector
 void init()
          Initialize graph variables
 boolean isDefaultTimeRange()
          This method returns the mode for calculation of Timeseries[X Axis] range
 void paintComponent(java.awt.Graphics g)
          This method paints graph according to properties and data of graph.
 boolean populateGraph()
          This method populate the graph
 void readExternal(java.io.ObjectInput in)
          This method retrieves the state of the bean
 void reDraw()
           
protected  void refreshProperties(int nFor)
          This method refreshes the Graph followed by the given changed property
 void setBarBorder(com.elegantj.editors.AWTBorder newBorder)
          set Bar Border Object
 void setBarBorderColor(java.awt.Color newBorderColor)
          Set Bar Border Color
 void setBarBorderStyle(int newBorderStyle)
          Set Bar Border Style
 void setBarBorderVisible(boolean visible)
          set Bar Border Visible/Hide
 void setBarBorderWidth(int newBorderWidth)
          Set Bar Border Width
 void setCandleProperties(GraphCandleDetail inGraphCandleDetail)
          Set GraphCandleDetail Object Specifying Bar properties
 void setCandleTooltipText(java.lang.String tooltip)
          set Bar Tooltip text
 void setCandleTransperancyInPercent(int transperancyInPercent)
          set Transperancy in Bar color
 void setComputationType(int type)
          Sets the Computation Type
 void setCurrentTimeSeries(int inCurrentTimeSeries)
          This method sets Current Time Series Type
 void setDefaultTimeRange(boolean inValue)
          This method sets the mode for calculation of Timeseries[X Axis] range
 void setEmptyBodyColor(java.awt.Color inColor)
          This method sets the Real body Color [Empty: Open < close ]
 void setFilledBodyColor(java.awt.Color inColor)
          This method sets the Real body Color [Filled: Open > close ]
 void setRealBodyWidth(int inRealBodyWidth)
          This method sets the Real body Width
 void setSessionEnd(java.lang.Object inSessionEnd)
          This method sets value of Session end
 void setSessionStart(java.lang.Object inSessionStart)
          This method sets value of Session start
 void setShadowLineColor(java.awt.Color inShadowLineColor)
          This method sets the Shadow Line Color
 void setShadowLineWidth(int inShadowLineWidth)
          This method sets the Shadow Line Width
 void setTimeSeriesInterval(int inValue)
          This method sets interval value for X Axis [TimeSeries] labels
 void setXLabelType(int inXLabelType)
          This method sets the current x label type
 void update(java.awt.Graphics g)
           
 void writeExternal(java.io.ObjectOutput out)
          This method saves the state of the bean
 void writeGraphAttributes(XMLWriter xmlwriter)
          Write Properties to the xml File
 
Methods inherited from class com.elegantj.graphx.GraphPanel
addDrillDownListener, addGraphNote, addPropertyChangeListener, addValues, addZoomListener, checkZoomFactor, clearZoomStepStack, divide, doZoom, drawBackgroundImage, drawGradient, drawGraphBorder, firePropertyChange, fireZoomEvent, generateColorString, getAxisGridAttributes, getAxisLabelAttributes, getAxisLineAttributes, getAxisNameAttributes, getBackgroundAttributes, getBackgroundImage, getBgImageDisplay, getBgImageEmbedded, getBgImageFlipType, getBgImageFromPath, getBgImageSourcePath, getBgImageVisible, getColomnLabelsAttributes, getCommonAttributes, getComputationType, getCurZoomFactor, getDefaultTooltipText, getDrillDownEnable, getExplainNotesStrLen, getExtension, getFixedArea, getFlipedImage, getGradientAngle, getGradientColor, getGradientExtent, getGradientMode, getGradientVisible, getGraph3DEffect, getGraph3DHorizontalOffset, getGraph3DVerticalOffset, getGraphAreaAttributes, getGraphAreaBackground, getGraphAreaBackgroundVisible, getGraphAreaDrillDownEnable, getGraphAreaGradientAngle, getGraphAreaGradientColor, getGraphAreaGradientExtent, getGraphAreaGradientMode, getGraphAreaGradientVisible, getGraphBorderColor, getGraphBorderStyle, getGraphBorderWidth, getGraphColors, getGraphData, getGraphDataProvider, getGraphDataResultSet, getGraphics, getGraphNote, getGraphNoteIndex, getGraphNotes, getGraphNotesBackground, getGraphNotesBorderColor, getGraphNotesBorderStyle, getGraphNotesBorderWidth, getGraphNotesFont, getGraphNotesForeground, getGraphNotesShadowColor, getGraphNotesShadowStyle, getGraphNotesShadowWidth, getGraphNotesShowInterval, getGraphNotesVisible, getGraphNotesVisibleInterval, getGraphSize, getGraphTitle, getGraphTitleAlign, getGraphTitleBackground, getGraphTitleBackgroundVisible, getGraphTitleBorderColor, getGraphTitleBorderStyle, getGraphTitleBorderWidth, getGraphTitleFont, getGraphTitleForeground, getGraphTitleMaxLine, getGraphTitleShadowColor, getGraphTitleShadowStyle, getGraphTitleShadowWidth, getGraphTitleVisible, getGraphType, getGraphTypeAttributes, getItemAxisLabel, getLicenseKey, getMaxZoomFactor, getMouseOverAttributes, getMouseOverEffectEnable, getMouseOverStaticTextEnable, getMouseOverText, getMouseOverTextAlignment, getMouseOverTextBackground, getMouseOverTextBackgroundVisible, getMouseOverTextBorderColor, getMouseOverTextBorderStyle, getMouseOverTextBorderWidth, getMouseOverTextEnable, getMouseOverTextFont, getMouseOverTextForeground, getMouseOverTextMaxLen, getMouseOverTextShadowColor, getMouseOverTextShadowStyle, getMouseOverTextShadowWidth, getNumericalAxisLabel, getOverLapXAxisLabelEnable, getOverLapYAxisLabelEnable, getScrollPane, getSelectedRect, getSerialAxisLabel, getSortDataEnable, getTestData, getTitleAttributes, getTitleProperties, getToolTipAttributes, getTooltipBackground, getTooltipBorderColor, getTooltipBorderStyle, getTooltipBorderWidth, getTooltipFont, getTooltipForeground, getTooltipShowInterval, getTooltipVisible, getTooltipVisibleInterval, getXAxisGridLineColor, getXAxisGridLineStyle, getXAxisGridLineVisible, getXAxisGridLineWidth, getXAxisGridStripColor, getXAxisGridStripVisible, getXAxisLabelAlign, getXAxisLabelAlignAngle, getXAxisLabelBackground, getXAxisLabelBackgroundVisible, getXAxisLabelDrillDownEnable, getXAxisLabelFont, getXAxisLabelForeground, getXAxisLabelFormat, getXAxisLabelGap, getXAxisLabelTooltipText, getXAxisLabelVisible, getXAxisLineColor, getXAxisLineWidth, getXAxisMaxLabelValue, getXAxisMinLabelValue, getXAxisName, getXAxisNameAlign, getXAxisNameBackground, getXAxisNameBackgroundVisible, getXAxisNameBorderColor, getXAxisNameBorderStyle, getXAxisNameBorderWidth, getXAxisNameFont, getXAxisNameForeground, getXAxisNameMaxLine, getXAxisNameShadowColor, getXAxisNameShadowStyle, getXAxisNameShadowWidth, getXAxisNameVisible, getXAxisProperties, getXAxisTickLineColor, getXAxisTickLineHeight, getXAxisTickLinePosition, getXAxisTickLineVisible, getXAxisTickLineWidth, getXDivisionValue, getXZeroGridLineColor, getXZeroGridLineStyle, getXZeroGridLineWidth, getYAxisDivisionValue, getYAxisGridLineColor, getYAxisGridLineStyle, getYAxisGridLineVisible, getYAxisGridLineWidth, getYAxisGridStripColor, getYAxisGridStripVisible, getYAxisLabelAlign, getYAxisLabelAlignAngle, getYAxisLabelBackground, getYAxisLabelBackgroundVisible, getYAxisLabelDrillDownEnable, getYAxisLabelFont, getYAxisLabelForeground, getYAxisLabelFormat, getYAxisLabelTooltipText, getYAxisLabelVisible, getYAxisLineColor, getYAxisLineWidth, getYAxisMaxLabelValue, getYAxisMinLabelValue, getYAxisName, getYAxisNameAlign, getYAxisNameBackground, getYAxisNameBackgroundVisible, getYAxisNameBorderColor, getYAxisNameBorderStyle, getYAxisNameBorderWidth, getYAxisNameFont, getYAxisNameForeground, getYAxisNameMaxLine, getYAxisNameShadowColor, getYAxisNameShadowStyle, getYAxisNameShadowWidth, getYAxisNameVisible, getYAxisPosition, getYAxisProperties, getYAxisTickLineColor, getYAxisTickLineHeight, getYAxisTickLinePosition, getYAxisTickLineVisible, getYAxisTickLineWidth, getYAxisUnitLabel, getYDivisionValue, getYZeroGridLineColor, getYZeroGridLineStyle, getYZeroGridLineWidth, getZAxisAlignment, getZAxisBackground, getZAxisBackgroundVisible, getZAxisBorderColor, getZAxisBorderStyle, getZAxisBorderWidth, getZAxisLabelAlign, getZAxisLabelBackground, getZAxisLabelBackgroundVisible, getZAxisLabelDrillDownEnable, getZAxisLabelFont, getZAxisLabelForeground, getZAxisLabelFormat, getZAxisLabelShowOrder, getZAxisLabelTooltipText, getZAxisLabelVisible, getZAxisName, getZAxisNameAlign, getZAxisNameBackground, getZAxisNameBackgroundVisible, getZAxisNameBorderColor, getZAxisNameBorderStyle, getZAxisNameBorderWidth, getZAxisNameFont, getZAxisNameForeground, getZAxisNameMaxLine, getZAxisNameShadowColor, getZAxisNameShadowStyle, getZAxisNameShadowWidth, getZAxisNameVisible, getZAxisPosition, getZAxisProperties, getZAxisShadowColor, getZAxisShadowStyle, getZAxisShadowWidth, getZAxisVisible, getZoomAffectedSize, getZoomEnable, getZoomInCount, initGraphTest, isGraphDataEmbeded, isGraphFitToSize, isLicenseKeyValid, isLightweight, isPopulateFlag, isPrinting, isZoomSelectionEnabled, loadFromXML, loadFromXML, paint, parseValue, processComponentEvent, processMouseEvent, processMouseMotionEvent, removeDrillDownListener, removeGraphNote, removePropertyChangeListener, removeZoomListener, repaintChildren, resetSelectedZoomRect, saveAsImageBMP, saveAsImageJPEG, setBackground, setBackgroundImage, setBgImageDisplay, setBgImageEmbedded, setBgImageFlipType, setBgImageFromPath, setBgImageSourcePath, setBgImageVisible, setDefaultProperties, setDefaultTooltipText, setDrillDownEnable, setExplainNotesStrLen, setFont, setForeground, setGradientAngle, setGradientColor, setGradientExtent, setGradientMode, setGradientVisible, setGraph3DEffect, setGraph3DHorizontalOffset, setGraph3DVerticalOffset, setGraphAreaBackground, setGraphAreaBackgroundVisible, setGraphAreaDrillDownEnable, setGraphAreaGradientAngle, setGraphAreaGradientColor, setGraphAreaGradientExtent, setGraphAreaGradientMode, setGraphAreaGradientVisible, setGraphBorderColor, setGraphBorderStyle, setGraphBorderWidth, setGraphColors, setGraphData, setGraphData, setGraphDataEmbeded, setGraphDataProvider, setGraphDataResultSet, setGraphDataURL, setGraphFitToSize, setGraphics, setGraphNotes, setGraphNotesBackground, setGraphNotesBorderColor, setGraphNotesBorderStyle, setGraphNotesBorderWidth, setGraphNotesFont, setGraphNotesForeground, setGraphNotesShadowColor, setGraphNotesShadowStyle, setGraphNotesShadowWidth, setGraphNotesShowInterval, setGraphNotesVisible, setGraphNotesVisibleInterval, setGraphSize, setGraphTitle, setGraphTitleAlign, setGraphTitleBackground, setGraphTitleBackgroundVisible, setGraphTitleBorderColor, setGraphTitleBorderStyle, setGraphTitleBorderWidth, setGraphTitleFont, setGraphTitleForeground, setGraphTitleMaxLine, setGraphTitleShadowColor, setGraphTitleShadowStyle, setGraphTitleShadowWidth, setGraphTitleVisible, setGraphType, setInternalLicenseKey, setItemAxisLabel, setLicenseKey, setLightweight, setMaxZoomFactor, setMouseOverEffectEnable, setMouseOverStaticTextEnable, setMouseOverText, setMouseOverTextAlignment, setMouseOverTextBackground, setMouseOverTextBackgroundVisible, setMouseOverTextBorderColor, setMouseOverTextBorderStyle, setMouseOverTextBorderWidth, setMouseOverTextEnable, setMouseOverTextFont, setMouseOverTextForeground, setMouseOverTextMaxLen, setMouseOverTextShadowColor, setMouseOverTextShadowStyle, setMouseOverTextShadowWidth, setNumericalAxisLabel, setOverLapXAxisLabelEnable, setOverLapYAxisLabelEnable, setPopulateFlag, setPrinting, setSerialAxisLabel, setSortDataEnable, setTitleProperties, setTooltipBackground, setTooltipBorderColor, setTooltipBorderStyle, setTooltipBorderWidth, setTooltipFont, setTooltipForeground, setTooltipShowInterval, setTooltipVisible, setTooltipVisibleInterval, setXAxisGridLineColor, setXAxisGridLineStyle, setXAxisGridLineVisible, setXAxisGridLineWidth, setXAxisGridStripColor, setXAxisGridStripVisible, setXAxisLabelAlign, setXAxisLabelAlignAngle, setXAxisLabelBackground, setXAxisLabelBackgroundVisible, setXAxisLabelDrillDownEnable, setXAxisLabelFont, setXAxisLabelForeground, setXAxisLabelFormat, setXAxisLabelGap, setXAxisLabelTooltipText, setXAxisLabelVisible, setXAxisLineColor, setXAxisLineWidth, setXAxisMaxLabelValue, setXAxisMinLabelValue, setXAxisName, setXAxisNameAlign, setXAxisNameBackground, setXAxisNameBackgroundVisible, setXAxisNameBorderColor, setXAxisNameBorderStyle, setXAxisNameBorderWidth, setXAxisNameFont, setXAxisNameForeground, setXAxisNameMaxLine, setXAxisNameShadowColor, setXAxisNameShadowStyle, setXAxisNameShadowWidth, setXAxisNameVisible, setXAxisProperties, setXAxisTickLineColor, setXAxisTickLineHeight, setXAxisTickLinePosition, setXAxisTickLineVisible, setXAxisTickLineWidth, setXDivisionValue, setXZeroGridLineColor, setXZeroGridLineStyle, setXZeroGridLineWidth, setYAxisDivisionValue, setYAxisGridLineColor, setYAxisGridLineStyle, setYAxisGridLineVisible, setYAxisGridLineWidth, setYAxisGridStripColor, setYAxisGridStripVisible, setYAxisLabelAlign, setYAxisLabelAlignAngle, setYAxisLabelBackground, setYAxisLabelBackgroundVisible, setYAxisLabelDrillDownEnable, setYAxisLabelFont, setYAxisLabelForeground, setYAxisLabelFormat, setYAxisLabelTooltipText, setYAxisLabelVisible, setYAxisLineColor, setYAxisLineWidth, setYAxisMaxLabelValue, setYAxisMinLabelValue, setYAxisName, setYAxisNameAlign, setYAxisNameBackground, setYAxisNameBackgroundVisible, setYAxisNameBorderColor, setYAxisNameBorderStyle, setYAxisNameBorderWidth, setYAxisNameFont, setYAxisNameForeground, setYAxisNameMaxLine, setYAxisNameShadowColor, setYAxisNameShadowStyle, setYAxisNameShadowWidth, setYAxisNameVisible, setYAxisPosition, setYAxisProperties, setYAxisTickLineColor, setYAxisTickLineHeight, setYAxisTickLinePosition, setYAxisTickLineVisible, setYAxisTickLineWidth, setYAxisUnitLabel, setYDivisionValue, setYZeroGridLineColor, setYZeroGridLineStyle, setYZeroGridLineWidth, setZAxisAlignment, setZAxisBackground, setZAxisBackgroundVisible, setZAxisBorderColor, setZAxisBorderStyle, setZAxisBorderWidth, setZAxisLabelAlign, setZAxisLabelBackground, setZAxisLabelBackgroundVisible, setZAxisLabelDrillDownEnable, setZAxisLabelFont, setZAxisLabelForeground, setZAxisLabelFormat, setZAxisLabelShowOrder, setZAxisLabelTooltipText, setZAxisLabelVisible, setZAxisName, setZAxisNameAlign, setZAxisNameBackground, setZAxisNameBackgroundVisible, setZAxisNameBorderColor, setZAxisNameBorderStyle, setZAxisNameBorderWidth, setZAxisNameFont, setZAxisNameForeground, setZAxisNameMaxLine, setZAxisNameShadowColor, setZAxisNameShadowStyle, setZAxisNameShadowWidth, setZAxisNameVisible, setZAxisPosition, setZAxisProperties, setZAxisShadowColor, setZAxisShadowStyle, setZAxisShadowWidth, setZAxisVisible, setZoom, setZoomEnable, setZoomSelectionEnabled, showPopupMenu, updateZoomStepStack, validateGraph, writeAttributes, writeElement, writeGraphData, writeGraphDataAttributes, writeToXML, writeToXML, writeXAxisAttributes, writeYAxisAttributes, writeZAxisAttributes, zoomRect
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Initialized

protected boolean m_Initialized
Specifies whether the Graph has been initialized or not


m_GraphFormTable

public java.util.Vector m_GraphFormTable
contains setting of different graph formats.


m_GraphCandleDetail

public GraphCandleDetail m_GraphCandleDetail
Specifies the Bar Properties of Graph


m_OriginalClipRect

public java.awt.Rectangle m_OriginalClipRect
Specifies the original clipping rectangle


m_Width

protected int m_Width
Specifies the total width


m_Height

protected int m_Height
Specifies the total height


m_XLabelList

public transient java.util.Vector m_XLabelList
contains list of label at x axis.


m_ZLabelList

public transient java.util.Vector m_ZLabelList
contains list of label at z axis.


m_DataMatrix

public transient java.util.Vector m_DataMatrix
contains graph data.


m_IsRepaint

protected boolean m_IsRepaint
This flag false then block paint() mathod


m_ColItemIndex

protected int m_ColItemIndex

TIME_SERIES_HOURLY

public static final int TIME_SERIES_HOURLY
See Also:
Constant Field Values

TIME_SERIES_DAILY

public static final int TIME_SERIES_DAILY
See Also:
Constant Field Values

TIME_SERIES_WEEKLY

public static final int TIME_SERIES_WEEKLY
See Also:
Constant Field Values

TIME_SERIES_MONTHLY

public static final int TIME_SERIES_MONTHLY
See Also:
Constant Field Values

TIME_SERIES_QUARTERLY

public static final int TIME_SERIES_QUARTERLY
See Also:
Constant Field Values

TIME_SERIES_YEARLY

public static final int TIME_SERIES_YEARLY
See Also:
Constant Field Values

m_CandleDataVect

protected java.util.Vector m_CandleDataVect

m_XLabelType

protected int m_XLabelType

m_fDebug

protected static final boolean m_fDebug
Specifies the execution mode

See Also:
Constant Field Values

CANDLE_CHANGE

protected static final int CANDLE_CHANGE
Specifies the constant for refreshing graph

See Also:
Constant Field Values
Constructor Detail

CandleGraph

public CandleGraph()
Constructor

Method Detail

init

public void init()
Initialize graph variables


setCurrentTimeSeries

public void setCurrentTimeSeries(int inCurrentTimeSeries)
This method sets Current Time Series Type

Parameters:
inCurrentTimeSeries - Current Time Series Type

getCurrentTimeSeries

public int getCurrentTimeSeries()
This method returns Current Time Series Type

Returns:
int Current Time Series Type

getSessionStart

public java.lang.Object getSessionStart()
This method returns value of Session start

Returns:
Object Session start

setSessionStart

public void setSessionStart(java.lang.Object inSessionStart)
This method sets value of Session start

Returns:
inSessionStart Session start

setSessionEnd

public void setSessionEnd(java.lang.Object inSessionEnd)
This method sets value of Session end

Returns:
inSessionStart Session end

getSessionEnd

public java.lang.Object getSessionEnd()
This method returns value of Session end

Returns:
Object Session end

getXLabelType

public int getXLabelType()
This method returns the current x label type

Overrides:
getXLabelType in class GraphPanel
Returns:
int current x label type

setXLabelType

public void setXLabelType(int inXLabelType)
This method sets the current x label type

Parameters:
inXLabelType - current x label type

getTimeSeriesInterval

public int getTimeSeriesInterval()
This method returns interval value for X Axis [TimeSeries] labels

Returns:
int interval value for X Axis labels

setTimeSeriesInterval

public void setTimeSeriesInterval(int inValue)
This method sets interval value for X Axis [TimeSeries] labels

Parameters:
inValue - interval value for X Axis labels

setDefaultTimeRange

public void setDefaultTimeRange(boolean inValue)
This method sets the mode for calculation of Timeseries[X Axis] range

Parameters:
inValue - true for default calculation [depending on X axis Labels ] false for userdefined calculation [depending on User defined values for SessionStart and SessionEnd]

isDefaultTimeRange

public boolean isDefaultTimeRange()
This method returns the mode for calculation of Timeseries[X Axis] range

Returns:
boolean mode for calculation

populateGraph

public boolean populateGraph()
This method populate the graph

Overrides:
populateGraph in class GraphPanel
Returns:
boolean true if successful otherwise false

paintComponent

public void paintComponent(java.awt.Graphics g)
This method paints graph according to properties and data of graph.

Overrides:
paintComponent in class GraphPanel

CreateGraphTypeObject

public void CreateGraphTypeObject()
create CandleGraphTypeObject


getGraphTypeObject

public java.lang.Object getGraphTypeObject()
Returns:
CandleGraphTypeObject

getVisibleGraphRect

protected java.awt.Rectangle getVisibleGraphRect()
Returns the Visible rectangle of the component

Overrides:
getVisibleGraphRect in class GraphPanel
Returns:
the rectangle contains the paint boundary of the component

getGraphAreaPolygon

public java.awt.Polygon getGraphAreaPolygon()
Description copied from class: GraphPanel
Subclass have to override this method for ZoomIn/ZoomOut

Overrides:
getGraphAreaPolygon in class GraphPanel
Returns:
Polygon Bounding polygon of graph area

getTooltipText

public java.lang.String getTooltipText()
return Tooltip text

Overrides:
getTooltipText in class GraphPanel

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

getDrillDownDetail

public DrillDownDetail getDrillDownDetail(GraphicsEx gEx,
                                          int click_x,
                                          int click_y)
Return DrillDownDetail object for given point Cordinate. If GraphicsEx object is not null then it also draw MouseOverEffect and MouseOverTextEffect

Overrides:
getDrillDownDetail in class GraphPanel
Parameters:
click_x - X coordinate of Point
click_y - Y coordinate of Point

indexOf

protected int indexOf(java.util.Vector vector,
                      java.lang.String text)
Returns the index of the specified text into given vector


getStringFromMacro

public java.lang.String getStringFromMacro(java.lang.String inMacroString,
                                           DrillDownDetail inDrillDownDetail)
This function returns New string after replacing actual values in place of Macro string

Overrides:
getStringFromMacro in class GraphPanel
Parameters:
inMacroString - String containing Macros
inDrillDownDetail - DrillDownDetail object
Returns:
String String with values in place of Macros.

getFormattedText

public java.lang.String getFormattedText(double inValue)

setComputationType

public void setComputationType(int type)
Description copied from class: GraphPanel
Sets the Computation Type

Overrides:
setComputationType in class GraphPanel
Parameters:
type - one of the constants : NONE_COMPUTATION, SUM_COMPUTATION, COUNT_COMPUTATION, VALID_COUNT_COMPUTATION, AVERAGE_COMPUTATION, VALID_AVERAGE_COMPUTATION, MAXIMUM_COMPUTATION, MINIMUM_COMPUTATION

update

public void update(java.awt.Graphics g)
Overrides:
update in class javax.swing.JComponent

reDraw

public void reDraw()
Overrides:
reDraw in class GraphPanel

refreshProperties

protected void refreshProperties(int nFor)
This method refreshes the Graph followed by the given changed property

Overrides:
refreshProperties in class GraphPanel
Parameters:
nFor - the changed property constant

setCandleProperties

public void setCandleProperties(GraphCandleDetail inGraphCandleDetail)
Set GraphCandleDetail Object Specifying Bar properties

Parameters:
inGraphCandleDetail - Object specifying Bar Properties

getCandleProperties

public GraphCandleDetail getCandleProperties()
Get GraphCandleDetail Object for bar properties

Returns:
GraphCandleDetail Specifying the Bar property object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
This method retrieves the state of the bean

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class GraphPanel
java.lang.ClassNotFoundException
java.io.IOException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
This method saves the state of the bean

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class GraphPanel
java.io.IOException

writeGraphAttributes

public void writeGraphAttributes(XMLWriter xmlwriter)
                          throws org.xml.sax.SAXException
Write Properties to the xml File

Overrides:
writeGraphAttributes in class GraphPanel
org.xml.sax.SAXException

setCandleTransperancyInPercent

public void setCandleTransperancyInPercent(int transperancyInPercent)
set Transperancy in Bar color

Parameters:
transperancyInPercent - Percentage of trancparency in color

getCandleTransperancyInPercent

public int getCandleTransperancyInPercent()
get transperancy value of color

Returns:
int Specifying the Percantage of transperancy of color

setBarBorderVisible

public void setBarBorderVisible(boolean visible)
set Bar Border Visible/Hide

Parameters:
visible - if true then Bar border is visible otherwize not

getBarBorderVisible

public boolean getBarBorderVisible()
get Bar Border Visible/hide

Returns:
boolean true - Bar border is visible otherwize not

setBarBorder

public void setBarBorder(com.elegantj.editors.AWTBorder newBorder)
set Bar Border Object

Parameters:
newBorder - border Object specifying border properties

getBarBorder

public com.elegantj.editors.AWTBorder getBarBorder()
get Bar Border Object

Returns:
AWTBorder border Object specifying border properties

setBarBorderStyle

public void setBarBorderStyle(int newBorderStyle)
Set Bar Border Style

Parameters:
newBorderStyle -

getBarBorderStyle

public int getBarBorderStyle()
Using this metod you can get bar border style

Returns:
borderType specified in AWTBorder properties

setBarBorderWidth

public void setBarBorderWidth(int newBorderWidth)
Set Bar Border Width

Parameters:
newBorderWidth -

getBarBorderWidth

public int getBarBorderWidth()
Using this method you can get bar border width

Returns:
borderWidth specified in AWTBorder properties

setBarBorderColor

public void setBarBorderColor(java.awt.Color newBorderColor)
Set Bar Border Color

Parameters:
newBorderColor -

getBarBorderColor

public java.awt.Color getBarBorderColor()
U can get Bar Border Color using this method

Returns:
borderColor specified in AWTBorder properties

setCandleTooltipText

public void setCandleTooltipText(java.lang.String tooltip)
set Bar Tooltip text

Parameters:
tooltip - String representing Bar tooltip text

getCandleTooltipText

public java.lang.String getCandleTooltipText()
get Bar Tooltip Text

Returns:
String String Object representing Bar Tooltip Text

setShadowLineColor

public void setShadowLineColor(java.awt.Color inShadowLineColor)
This method sets the Shadow Line Color

Parameters:
inShadowLineColor - the Shadow Line Color representing the High and Low value

getShadowLineColor

public java.awt.Color getShadowLineColor()
This method returns the Shadow Line Color


setFilledBodyColor

public void setFilledBodyColor(java.awt.Color inColor)
This method sets the Real body Color [Filled: Open > close ]


getFilledBodyColor

public java.awt.Color getFilledBodyColor()
This method returns the Real body Color [Filled: Open > close ]


setEmptyBodyColor

public void setEmptyBodyColor(java.awt.Color inColor)
This method sets the Real body Color [Empty: Open < close ]


getEmptyBodyColor

public java.awt.Color getEmptyBodyColor()
This method returns the Real body Color [Empty: Open < close ]

Returns:
Color the Real body Color representing the Open and Close value

setRealBodyWidth

public void setRealBodyWidth(int inRealBodyWidth)
This method sets the Real body Width

Parameters:
inRealBodyWidth - the Real body Width

getRealBodyWidth

public int getRealBodyWidth()
This method returns the Real body Width


setShadowLineWidth

public void setShadowLineWidth(int inShadowLineWidth)
This method sets the Shadow Line Width

Parameters:
inShadowLineWidth - the Shadow Line Width

getShadowLineWidth

public int getShadowLineWidth()
This method returns the Shadow Line Width


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.