ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.histogram
Class HistogramGraph

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

public class HistogramGraph
extends BarGraph

BarGraph class implements the 2 dimensional and 3 dimensional Horizontal and Vertical bar graph with drilldown and mouse over effect

See Also:
Serialized Form

Field Summary
protected  double m_EndOfSection
           
protected  java.util.Vector m_HistogramDataMatrix
           
protected  java.util.Vector m_HistogramXLabelList
           
protected  double m_StartOfSection
           
protected  double m_WidthOfSection
           
 
Fields inherited from class com.elegantj.graphx.bar.BarGraph
BAR_CHANGE, BAR_COLOR_CHANGE, BAR_TYPE_CHANGE, m_BarType, m_ColItemIndex, m_DataMatrix, m_GraphBarDetail, m_GraphFormTable, m_Height, m_Initialized, m_IsRepaint, m_OriginalClipRect, m_Width, m_XLabelList, m_ZLabelList
 
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
HistogramGraph()
          Specifies the constant for refreshing graph
 
Method Summary
 int calculateFrequency(double startRange, double endRange)
          Ths method returns the count of data values in the range between startRange and endRange
 int calculateFrequency(double startRange, double endRange, int theRowIndex)
          Ths method returns the count of data values in the range between startRange and endRange
 java.util.Vector generateHistogramDataMatrix()
          This method generate the new histogram data matrix using the original data matrix
 java.util.Vector generateXLabelList()
          This method generate the new X Labels
 DrillDownDetail getDrillDownDetail(GraphicsEx gEx, int click_x, int click_y)
          Return DrillDownDetail object for given point Cordinate.
 double getEndOfSection()
          Ths method returns the Value of End of Section for Histogram
 int getGraphType()
          returns graph type
 double getMaxValue()
          Ths method returns the Maximum value of data values in data matrix
 double getMinValue()
          Ths method returns the Minimum value of data values in data matrix
 java.awt.Dimension getPreferredSize()
          The preferred dimension of the bar graph can be adjusted using this method
 double getRoundedValue(double inValue)
          Ths method returns the rounded value
 double getStartOfSection()
          Ths method returns the Value of Start of Section for Histogram
protected  java.awt.Rectangle getVisibleGraphRect()
          Returns the Visible rectangle of the component
 double getWidthOfSection()
          Ths method returns the Value of Width of Section for Histogram
 void paintComponent(java.awt.Graphics g)
          This method paints graph according to properties and data of graph.
 boolean populateGraph()
          Populates the Graph
 void readExternal(java.io.ObjectInput in)
          This method retrieves the state of the bean
protected  void refreshProperties(int nFor)
          This method refreshes the Graph followed by the given changed property
 void setBarProperties(GraphBarDetail inGraphBarDetail)
          Set GraphBarDetail Object Specifying Bar properties
 void setDefault()
           
 void setEndOfSection(double inValue)
          Ths method sets the Value of End of Section for Histogram
 void setMouseOverEffectEnable(boolean visible)
          set Drill Down
 void setStartOfSection(double inValue)
          Ths method sets the Value of Start of Section for Histogram
 void setWidthOfSection(double inValue)
          Ths method sets the Value of Start of Section for Histogram
 void setXAxisProperties(GraphXAxisDetail inGraphXAxisDetail)
          Set GraphXAxisDetail Object
 void setYAxisProperties(GraphYAxisDetail inGraphYAxisDetail)
          Set GraphYAxisDetail Object
 void setZAxisProperties(GraphZAxisDetail inGraphZAxisDetail)
          Set GraphZAxisDetail Object
 void writeExternal(java.io.ObjectOutput out)
          This method saves the state of the bean
 
Methods inherited from class com.elegantj.graphx.bar.BarGraph
getBarBorder, getBarBorderColor, getBarBorderStyle, getBarBorderVisible, getBarBorderWidth, getBarColor, getBarColor, getBarColors, getBarGapInPercent, getBarGradientAngle, getBarGradientExtent, getBarGradientMode, getBarGradientVisible, getBarProperties, getBarTooltipText, getBarTransperancyInPercent, getBarType, getBarWidth, getGraphAreaPolygon, getTooltipText, indexOf, init, reDraw, setBarBorder, setBarBorderColor, setBarBorderStyle, setBarBorderVisible, setBarBorderWidth, setBarColor, setBarColor, setBarColors, setBarGapInPercent, setBarGradientAngle, setBarGradientExtent, setBarGradientMode, setBarGradientVisible, setBarTooltipText, setBarTransperancyInPercent, setBarType, setBarWidth, setGraphBarType, setGraphType, update, writeGraphAttributes
 
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, 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, getStringFromMacro, 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, getXLabelType, 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, setComputationType, 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, setInternalLicenseKey, setItemAxisLabel, setLicenseKey, setLightweight, setMaxZoomFactor, 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, 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, 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, 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_StartOfSection

protected double m_StartOfSection

m_EndOfSection

protected double m_EndOfSection

m_WidthOfSection

protected double m_WidthOfSection

m_HistogramDataMatrix

protected java.util.Vector m_HistogramDataMatrix

m_HistogramXLabelList

protected java.util.Vector m_HistogramXLabelList
Constructor Detail

HistogramGraph

public HistogramGraph()
Specifies the constant for refreshing graph

Method Detail

populateGraph

public boolean populateGraph()
Populates the Graph

Overrides:
populateGraph in class BarGraph
Returns:
boolean true - if Graph is successfully populated otherwize false

refreshProperties

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

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

generateXLabelList

public java.util.Vector generateXLabelList()
This method generate the new X Labels

Returns:
Vector the X Axis Labels for histogram

generateHistogramDataMatrix

public java.util.Vector generateHistogramDataMatrix()
                                             throws GraphException
This method generate the new histogram data matrix using the original data matrix

Returns:
Vector the data matrix for histogram
GraphException

calculateFrequency

public int calculateFrequency(double startRange,
                              double endRange,
                              int theRowIndex)
Ths method returns the count of data values in the range between startRange and endRange

Parameters:
startRange - Start of Range
endRange - End of Range
theRowIndex - the legand for which values to be matched

calculateFrequency

public int calculateFrequency(double startRange,
                              double endRange)
Ths method returns the count of data values in the range between startRange and endRange

Parameters:
startRange - Start of Range
endRange - End of Range

setStartOfSection

public void setStartOfSection(double inValue)
Ths method sets the Value of Start of Section for Histogram

Parameters:
inValue - Start of Section value

setEndOfSection

public void setEndOfSection(double inValue)
Ths method sets the Value of End of Section for Histogram

Parameters:
inValue - End of Section value

getStartOfSection

public double getStartOfSection()
Ths method returns the Value of Start of Section for Histogram

Returns:
double Start of Section value

getEndOfSection

public double getEndOfSection()
Ths method returns the Value of End of Section for Histogram

Returns:
double End of Section value

setWidthOfSection

public void setWidthOfSection(double inValue)
Ths method sets the Value of Start of Section for Histogram

Parameters:
inValue - Start of Section value

getWidthOfSection

public double getWidthOfSection()
Ths method returns the Value of Width of Section for Histogram

Returns:
double Width of Section value

getMinValue

public double getMinValue()
Ths method returns the Minimum value of data values in data matrix

Returns:
double Minimum value

getMaxValue

public double getMaxValue()
Ths method returns the Maximum value of data values in data matrix

Returns:
double Maximum value

getRoundedValue

public double getRoundedValue(double inValue)
Ths method returns the rounded value

Parameters:
inValue - value to be rounded using scaling
Returns:
double rounded value

getGraphType

public int getGraphType()
returns graph type

Overrides:
getGraphType in class GraphPanel
Returns:
type of graph

setMouseOverEffectEnable

public void setMouseOverEffectEnable(boolean visible)
set Drill Down

Overrides:
setMouseOverEffectEnable in class GraphPanel
Parameters:
visible - true - Graph Mouse Over Effect is Visible otherwise false

setXAxisProperties

public void setXAxisProperties(GraphXAxisDetail inGraphXAxisDetail)
Set GraphXAxisDetail Object

Overrides:
setXAxisProperties in class GraphPanel
Parameters:
inGraphXAxisDetail - Object specifying X-Axis properties (text,color,font,boreder,etc...)

setYAxisProperties

public void setYAxisProperties(GraphYAxisDetail inGraphYAxisDetail)
Set GraphYAxisDetail Object

Overrides:
setYAxisProperties in class GraphPanel
Parameters:
inGraphYAxisDetail - Object specifying Y-Axis properties (text,color,font,boreder,etc...)

setZAxisProperties

public void setZAxisProperties(GraphZAxisDetail inGraphZAxisDetail)
Set GraphZAxisDetail Object

Overrides:
setZAxisProperties in class GraphPanel
Parameters:
inGraphZAxisDetail - Object specifying Z-Axis properties (text,color,font,boreder,etc...)

paintComponent

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

Overrides:
paintComponent in class BarGraph

getVisibleGraphRect

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

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

setBarProperties

public void setBarProperties(GraphBarDetail inGraphBarDetail)
Set GraphBarDetail Object Specifying Bar properties

Overrides:
setBarProperties in class BarGraph
Parameters:
inGraphBarDetail - Object specifying Bar Properties

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 BarGraph
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 BarGraph
java.io.IOException

getPreferredSize

public java.awt.Dimension getPreferredSize()
Description copied from class: BarGraph
The preferred dimension of the bar graph can be adjusted using this method

Overrides:
getPreferredSize in class BarGraph
Returns:
Dimension

setDefault

public void setDefault()

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 BarGraph
Parameters:
click_x - X coordinate of Point
click_y - Y coordinate of Point
Returns:
DrillDownDetail DrillDownDetail Object for given coordinate

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.