|
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
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.elegantj.graphx.GraphPanel
|
+--com.elegantj.graphx.candle.CandleGraph
BarGraph class implements the 2 dimensional and 3 dimensional Candle Graph and HighLowOpenClose Graph with drilldown and mouse over effect
| 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 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 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 |
protected boolean m_Initialized
public java.util.Vector m_GraphFormTable
public GraphCandleDetail m_GraphCandleDetail
public java.awt.Rectangle m_OriginalClipRect
protected int m_Width
protected int m_Height
public transient java.util.Vector m_XLabelList
public transient java.util.Vector m_ZLabelList
public transient java.util.Vector m_DataMatrix
protected boolean m_IsRepaint
protected int m_ColItemIndex
public static final int TIME_SERIES_HOURLY
public static final int TIME_SERIES_DAILY
public static final int TIME_SERIES_WEEKLY
public static final int TIME_SERIES_MONTHLY
public static final int TIME_SERIES_QUARTERLY
public static final int TIME_SERIES_YEARLY
protected java.util.Vector m_CandleDataVect
protected int m_XLabelType
protected static final boolean m_fDebug
protected static final int CANDLE_CHANGE
| Constructor Detail |
public CandleGraph()
| Method Detail |
public void init()
public void setCurrentTimeSeries(int inCurrentTimeSeries)
inCurrentTimeSeries - Current Time Series Typepublic int getCurrentTimeSeries()
public java.lang.Object getSessionStart()
public void setSessionStart(java.lang.Object inSessionStart)
public void setSessionEnd(java.lang.Object inSessionEnd)
public java.lang.Object getSessionEnd()
public int getXLabelType()
getXLabelType in class GraphPanelpublic void setXLabelType(int inXLabelType)
inXLabelType - current x label typepublic int getTimeSeriesInterval()
public void setTimeSeriesInterval(int inValue)
inValue - interval value for X Axis labelspublic void setDefaultTimeRange(boolean inValue)
inValue - true for default calculation [depending on X axis Labels ]
false for userdefined calculation [depending on User defined values for SessionStart and SessionEnd]public boolean isDefaultTimeRange()
public boolean populateGraph()
populateGraph in class GraphPanelpublic void paintComponent(java.awt.Graphics g)
paintComponent in class GraphPanelpublic void CreateGraphTypeObject()
public java.lang.Object getGraphTypeObject()
protected java.awt.Rectangle getVisibleGraphRect()
getVisibleGraphRect in class GraphPanelpublic java.awt.Polygon getGraphAreaPolygon()
GraphPanel
getGraphAreaPolygon in class GraphPanelpublic java.lang.String getTooltipText()
getTooltipText in class GraphPanelpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponent
public DrillDownDetail getDrillDownDetail(GraphicsEx gEx,
int click_x,
int click_y)
getDrillDownDetail in class GraphPanelclick_x - X coordinate of Pointclick_y - Y coordinate of Point
protected int indexOf(java.util.Vector vector,
java.lang.String text)
public java.lang.String getStringFromMacro(java.lang.String inMacroString,
DrillDownDetail inDrillDownDetail)
getStringFromMacro in class GraphPanelinMacroString - String containing MacrosinDrillDownDetail - DrillDownDetail object
public java.lang.String getFormattedText(double inValue)
public void setComputationType(int type)
GraphPanel
setComputationType in class GraphPaneltype - one of the constants :
NONE_COMPUTATION, SUM_COMPUTATION,
COUNT_COMPUTATION, VALID_COUNT_COMPUTATION,
AVERAGE_COMPUTATION, VALID_AVERAGE_COMPUTATION,
MAXIMUM_COMPUTATION, MINIMUM_COMPUTATIONpublic void update(java.awt.Graphics g)
update in class javax.swing.JComponentpublic void reDraw()
reDraw in class GraphPanelprotected void refreshProperties(int nFor)
refreshProperties in class GraphPanelnFor - the changed property constantpublic void setCandleProperties(GraphCandleDetail inGraphCandleDetail)
inGraphCandleDetail - Object specifying Bar Propertiespublic GraphCandleDetail getCandleProperties()
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class GraphPaneljava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class GraphPaneljava.io.IOException
public void writeGraphAttributes(XMLWriter xmlwriter)
throws org.xml.sax.SAXException
writeGraphAttributes in class GraphPanelorg.xml.sax.SAXExceptionpublic void setCandleTransperancyInPercent(int transperancyInPercent)
transperancyInPercent - Percentage of trancparency in colorpublic int getCandleTransperancyInPercent()
public void setBarBorderVisible(boolean visible)
visible - if true then Bar border is visible otherwize notpublic boolean getBarBorderVisible()
public void setBarBorder(com.elegantj.editors.AWTBorder newBorder)
newBorder - border Object specifying border propertiespublic com.elegantj.editors.AWTBorder getBarBorder()
public void setBarBorderStyle(int newBorderStyle)
newBorderStyle - public int getBarBorderStyle()
public void setBarBorderWidth(int newBorderWidth)
newBorderWidth - public int getBarBorderWidth()
public void setBarBorderColor(java.awt.Color newBorderColor)
newBorderColor - public java.awt.Color getBarBorderColor()
public void setCandleTooltipText(java.lang.String tooltip)
tooltip - String representing Bar tooltip textpublic java.lang.String getCandleTooltipText()
public void setShadowLineColor(java.awt.Color inShadowLineColor)
inShadowLineColor - the Shadow Line Color representing the High and Low valuepublic java.awt.Color getShadowLineColor()
public void setFilledBodyColor(java.awt.Color inColor)
public java.awt.Color getFilledBodyColor()
public void setEmptyBodyColor(java.awt.Color inColor)
public java.awt.Color getEmptyBodyColor()
public void setRealBodyWidth(int inRealBodyWidth)
inRealBodyWidth - the Real body Widthpublic int getRealBodyWidth()
public void setShadowLineWidth(int inShadowLineWidth)
inShadowLineWidth - the Shadow Line Widthpublic int getShadowLineWidth()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||