|
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.bar.BarGraph
|
+--com.elegantj.graphx.histogram.HistogramGraph
BarGraph class implements the 2 dimensional and 3 dimensional Horizontal and Vertical bar graph with drilldown and mouse over effect
| 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 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 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 double m_StartOfSection
protected double m_EndOfSection
protected double m_WidthOfSection
protected java.util.Vector m_HistogramDataMatrix
protected java.util.Vector m_HistogramXLabelList
| Constructor Detail |
public HistogramGraph()
| Method Detail |
public boolean populateGraph()
populateGraph in class BarGraphprotected void refreshProperties(int nFor)
refreshProperties in class BarGraphnFor - the changed property constantpublic java.util.Vector generateXLabelList()
public java.util.Vector generateHistogramDataMatrix()
throws GraphException
GraphException
public int calculateFrequency(double startRange,
double endRange,
int theRowIndex)
startRange - Start of RangeendRange - End of RangetheRowIndex - the legand for which values to be matched
public int calculateFrequency(double startRange,
double endRange)
startRange - Start of RangeendRange - End of Rangepublic void setStartOfSection(double inValue)
inValue - Start of Section valuepublic void setEndOfSection(double inValue)
inValue - End of Section valuepublic double getStartOfSection()
public double getEndOfSection()
public void setWidthOfSection(double inValue)
inValue - Start of Section valuepublic double getWidthOfSection()
public double getMinValue()
public double getMaxValue()
public double getRoundedValue(double inValue)
inValue - value to be rounded using scaling
public int getGraphType()
getGraphType in class GraphPanelpublic void setMouseOverEffectEnable(boolean visible)
setMouseOverEffectEnable in class GraphPanelvisible - true - Graph Mouse Over Effect is Visible otherwise falsepublic void setXAxisProperties(GraphXAxisDetail inGraphXAxisDetail)
setXAxisProperties in class GraphPanelinGraphXAxisDetail - Object specifying X-Axis properties (text,color,font,boreder,etc...)public void setYAxisProperties(GraphYAxisDetail inGraphYAxisDetail)
setYAxisProperties in class GraphPanelinGraphYAxisDetail - Object specifying Y-Axis properties (text,color,font,boreder,etc...)public void setZAxisProperties(GraphZAxisDetail inGraphZAxisDetail)
setZAxisProperties in class GraphPanelinGraphZAxisDetail - Object specifying Z-Axis properties (text,color,font,boreder,etc...)public void paintComponent(java.awt.Graphics g)
paintComponent in class BarGraphprotected java.awt.Rectangle getVisibleGraphRect()
getVisibleGraphRect in class BarGraphpublic void setBarProperties(GraphBarDetail inGraphBarDetail)
setBarProperties in class BarGraphinGraphBarDetail - Object specifying Bar Properties
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class BarGraphjava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class BarGraphjava.io.IOExceptionpublic java.awt.Dimension getPreferredSize()
BarGraph
getPreferredSize in class BarGraphpublic void setDefault()
public DrillDownDetail getDrillDownDetail(GraphicsEx gEx,
int click_x,
int click_y)
getDrillDownDetail in class BarGraphclick_x - X coordinate of Pointclick_y - Y coordinate of Point
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||