|
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
BarGraph class implements the 2 dimensional and 3 dimensional Horizontal and Vertical bar graph with drilldown and mouse over effect
| Field Summary | |
protected static int |
BAR_CHANGE
Specifies the constant for refreshing graph |
protected static int |
BAR_COLOR_CHANGE
Specifies the constant for refreshing graph |
protected static int |
BAR_TYPE_CHANGE
Specifies the constant for refreshing graph |
protected int |
m_BarType
|
protected int |
m_ColItemIndex
|
java.util.Vector |
m_DataMatrix
contains graph data. |
GraphBarDetail |
m_GraphBarDetail
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. |
java.util.Vector |
m_ZLabelList
contains list of label at z axis. |
| 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 | |
BarGraph()
Creates the Graph with default settings |
|
BarGraph(boolean bInit)
Creates the Graph with default settings |
|
| Method Summary | |
com.elegantj.editors.AWTBorder |
getBarBorder()
Using this method you can 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()
You can adjust the Bar Border to be Visible/hidden |
int |
getBarBorderWidth()
Using this method you can get bar border width |
java.awt.Color |
getBarColor(int inIndex)
The Bar Color for specified index can be selected using this method |
java.awt.Color |
getBarColor(java.lang.String inLabel)
Bar Color can be assigned for the specified label using this function |
java.util.Vector |
getBarColors()
The colors of the bar can be retrieved using this method |
int |
getBarGapInPercent()
Get Gap between two Bar Group in Percentage using this method |
int |
getBarGradientAngle()
Bar Gradient Painter angle can be adjusted with this method |
int |
getBarGradientExtent()
Default Extent For drawing Gradient can be obtained with this method |
int |
getBarGradientMode()
Using this method Bar Gradient Painter mode can be adjusted |
boolean |
getBarGradientVisible()
Using this method Bar Gradient can be adjusted to be Visible/hidden |
GraphBarDetail |
getBarProperties()
The GraphBarDetail Object for bar properties can be called using this method |
java.lang.String |
getBarTooltipText()
Tooltip Text for the bar can be retrieved with this method. |
int |
getBarTransperancyInPercent()
This method can be used to retrieve the transparency value of color of the bar |
int |
getBarType()
The type of bar to be used in the graph can be obtained using this method |
int |
getBarWidth()
Bar width can be adjusted using this method |
DrillDownDetail |
getDrillDownDetail(GraphicsEx gEx,
int click_x,
int click_y)
Return DrillDownDetail object for given point Co-ordinate. |
java.awt.Polygon |
getGraphAreaPolygon()
This is an Overriden method to return graph area polygon |
java.awt.Dimension |
getPreferredSize()
The preferred dimension of the bar graph can be adjusted using this method |
java.lang.String |
getTooltipText()
|
protected java.awt.Rectangle |
getVisibleGraphRect()
The Visible rectangle of the component is returned using this method |
protected int |
indexOf(java.util.Vector vector,
java.lang.String text)
Using this method,you can return the index of the specified text into given vector |
void |
init()
Initialize graph variables using this method |
void |
paintComponent(java.awt.Graphics g)
This method paints graph according to properties and data of graph. |
boolean |
populateGraph()
This method Populates 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 |
setBarColor(int inIndex,
java.awt.Color inColor)
the Bar Color for specified index can be saved using this method |
void |
setBarColor(java.lang.String inLabel,
java.awt.Color inColor)
the Bar Color for specified label can be saved using this method |
void |
setBarColors(java.util.Vector invalue)
Set Bar Properties |
void |
setBarGapInPercent(int gapInPercent)
Set Gap between two Bar group in Percentage |
void |
setBarGradientAngle(int angle)
set Bar Gradient Painter angle |
void |
setBarGradientExtent(int inExtent)
set Default Extent for drawing Gradient |
void |
setBarGradientMode(int mode)
set Bar Gradient Painter mode |
void |
setBarGradientVisible(boolean visible)
Set Bar Gradient Visible/Hide |
void |
setBarProperties(GraphBarDetail inGraphBarDetail)
the Bar Color for specified label can be saved using this method |
void |
setBarTooltipText(java.lang.String tooltip)
set Bar Tooltip text |
void |
setBarTransperancyInPercent(int transperancyInPercent)
Set Transperancy in Bar color |
void |
setBarType(int itype)
this method saves the bar type for the graph. |
void |
setBarWidth(int width)
Set Bar Width |
protected void |
setGraphBarType(int type)
This method saves the selected Bar Graph Type |
void |
setGraphType(int kGraph)
To set graph 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 static final int BAR_COLOR_CHANGE
protected static final int BAR_CHANGE
protected static final int BAR_TYPE_CHANGE
protected boolean m_Initialized
public java.util.Vector m_GraphFormTable
public GraphBarDetail m_GraphBarDetail
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
protected int m_BarType
| Constructor Detail |
public BarGraph(boolean bInit)
public BarGraph()
| Method Detail |
public void init()
public void setBarColor(java.lang.String inLabel,
java.awt.Color inColor)
inLabel - label whose color is to be returninColor - Color object to be setpublic java.awt.Color getBarColor(java.lang.String inLabel)
inLabel - Label whose color is to be return
public void setBarColor(int inIndex,
java.awt.Color inColor)
inIndex - index of label whose color is to be changedinColor - Color to be setpublic java.awt.Color getBarColor(int inIndex)
inIndex - index of label whose color is to be return
public void setBarProperties(GraphBarDetail inGraphBarDetail)
inGraphBarDetail - Object specifying Bar Propertiespublic GraphBarDetail getBarProperties()
protected int indexOf(java.util.Vector vector,
java.lang.String text)
public void setGraphType(int kGraph)
setGraphType in class GraphPanelkGraph - one of the constants :
VBAR_GRAPH, HBAR_GRAPHpublic void setBarType(int itype)
itype - public int getBarType()
protected void refreshProperties(int nFor)
refreshProperties in class GraphPanelnFor - the changed property constantprotected void setGraphBarType(int type)
type - public void paintComponent(java.awt.Graphics g)
paintComponent in class GraphPanelpublic void update(java.awt.Graphics g)
update in class javax.swing.JComponentpublic void reDraw()
reDraw in class GraphPanelprotected java.awt.Rectangle getVisibleGraphRect()
getVisibleGraphRect in class GraphPanelpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Polygon getGraphAreaPolygon()
getGraphAreaPolygon in class GraphPanelpublic java.lang.String getTooltipText()
getTooltipText in class GraphPanel
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
public boolean populateGraph()
populateGraph in class GraphPanel
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 setBarGapInPercent(int gapInPercent)
gapInPercent - Percentage of gap between two Bar Grouppublic int getBarGapInPercent()
public void setBarWidth(int width)
width - Bar widthpublic int getBarWidth()
public void setBarColors(java.util.Vector invalue)
invalue - Vector of Bar propertiespublic java.util.Vector getBarColors()
public void setBarTransperancyInPercent(int transperancyInPercent)
transperancyInPercent - Percentage of trancparency in colorpublic int getBarTransperancyInPercent()
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 setBarGradientVisible(boolean visible)
visible - if true then Bar Gradient is visible otherwize notpublic boolean getBarGradientVisible()
public void setBarGradientExtent(int inExtent)
inExtent - Gradient Default Extentpublic int getBarGradientExtent()
public void setBarGradientMode(int mode)
mode - Bar Gradient Painter modepublic int getBarGradientMode()
public void setBarGradientAngle(int angle)
angle - Bar Gradient Painter anglepublic int getBarGradientAngle()
public void setBarTooltipText(java.lang.String tooltip)
tooltip - String representing Bar tooltip textpublic java.lang.String getBarTooltipText()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||