|
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.doughnut.DoughnutGraph
Donut graph with drilldown and mouse over effect
| Field Summary | |
protected static int |
DONUT_CHANGE
Specifies the constant for refreshing graph |
protected static int |
DONUT_COLOR_CHANGE
Specifies the constant for refreshing graph |
java.util.Vector |
m_DataMatrix
contains graph data. |
GraphDonutDetail |
m_GraphDonutDetail
Specifies the Donut Properties of Graph |
java.util.Vector |
m_GraphFormTable
contains setting of different graph formats. |
protected int |
m_Height
Specifies the total height |
protected 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 | |
DoughnutGraph()
Creates the Graph with default settings |
|
| Method Summary | |
protected org.xml.sax.helpers.AttributesImpl |
getAxisGridAttributes(AxisDetail axisDetail)
|
protected org.xml.sax.helpers.AttributesImpl |
getAxisLabelAttributes(AxisDetail axisDetail)
|
protected org.xml.sax.helpers.AttributesImpl |
getAxisLineAttributes(AxisDetail axisDetail)
|
java.awt.Color |
getBorderColor()
|
boolean |
getBorderVisible()
get Donut Border Visible/hide |
int |
getBorderWidth()
Get Donut border width |
int |
getDepth()
Get Donut Depth |
java.awt.Color |
getDonutColor(int inIndex)
Get the Donut Color for specified index |
java.awt.Color |
getDonutColor(java.lang.String inLabel)
Get the Donut Color for specified label |
java.util.Vector |
getDonutColors()
Get Donut Properties |
int |
getDonutGradientAngle()
get Donut Gradient Painter angle |
int |
getDonutGradientExtent()
get Default Extent For drawing Gradient |
int |
getDonutGradientMode()
get Donut Gradient Painter mode |
boolean |
getDonutGradientVisible()
get Donut Gradient Visible/hide |
GraphDonutDetail |
getDonutProperties()
Get GraphDonutDetail Object for Donut properties |
java.lang.String |
getDonutTooltipText()
get Donut Tooltip Text |
int |
getDonutWidth()
Get Donut width |
DrillDownDetail |
getDrillDownDetail(GraphicsEx gEx,
int click_x,
int click_y)
Return DrillDownDetail object for given point Cordinate. |
protected org.xml.sax.helpers.AttributesImpl |
getGraphAreaAttributes()
|
java.awt.Polygon |
getGraphAreaPolygon()
Overriden method for return graph area polygon |
int |
getHeightInPercent()
Get Donut height in percente of width |
int |
getHoleSizeInPercent()
Get Donut Hole size |
java.awt.Dimension |
getPreferredSize()
|
int |
getStartAngle()
Get Doughnut First slice Start Angle |
java.lang.String |
getTooltipText()
return Tooltip text |
int |
getTransperancyInPercent()
get transperancy value of color |
protected java.awt.Rectangle |
getVisibleGraphRect()
Returns the Visible rectangle of the component |
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 |
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 |
void |
reDraw()
|
protected void |
refreshProperties(int nFor)
This method refreshes the Graph followed by the given changed property |
void |
setBorderColor(java.awt.Color invalue)
set Donut Border Color |
void |
setBorderVisible(boolean visible)
set Donut Border Visible/Hide |
void |
setBorderWidth(int width)
Set Donut border Width |
void |
setDepth(int depth)
Set Donut Depth |
void |
setDonutColor(int inIndex,
java.awt.Color inColor)
Set the Donut Color for specified index |
void |
setDonutColor(java.lang.String inLabel,
java.awt.Color inColor)
Set the Donut Color for specified label |
void |
setDonutColors(java.util.Vector invalue)
Set Donut Properties |
void |
setDonutGradientAngle(int angle)
set Donut Gradient Painter angle |
void |
setDonutGradientExtent(int inExtent)
set Default Extent for drawing Gradient |
void |
setDonutGradientMode(int mode)
set Donut Gradient Painter mode |
void |
setDonutGradientVisible(boolean visible)
set Donut Gradient Visible/Hide |
void |
setDonutProperties(GraphDonutDetail inGraphDonutDetail)
Set GraphDonutDetail Object Specifying Donut properties |
void |
setDonutTooltipText(java.lang.String tooltip)
set Donut Tooltip text |
void |
setDonutWidth(int width)
Set Donut width (major axis width) |
void |
setHeightInPercent(int height)
Set Donut height in percente of width |
void |
setHoleSizeInPercent(int size)
Set Donut Hole size in percent |
void |
setStartAngle(int angle)
Set Doughnut First slice Start Angle |
void |
setTransperancyInPercent(int transperancyInPercent)
set Transperancy in Donut color |
void |
update(java.awt.Graphics g)
|
void |
writeExternal(java.io.ObjectOutput out)
This method saves the state of the bean |
protected 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 DONUT_COLOR_CHANGE
protected static final int DONUT_CHANGE
public java.util.Vector m_GraphFormTable
public GraphDonutDetail m_GraphDonutDetail
protected 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
| Constructor Detail |
public DoughnutGraph()
| Method Detail |
public void init()
public void setDonutColor(java.lang.String inLabel,
java.awt.Color inColor)
inLabel - label whose color is to be returninColor - Color object to be setpublic java.awt.Color getDonutColor(java.lang.String inLabel)
inLabel - Label whose color is to be return
public void setDonutColor(int inIndex,
java.awt.Color inColor)
inIndex - index of label whose color is to be changedinColor - Color to be setpublic java.awt.Color getDonutColor(int inIndex)
inIndex - index of label whose color is to be return
public void setDonutProperties(GraphDonutDetail inGraphDonutDetail)
inGraphDonutDetail - Object specifying Donut Propertiespublic GraphDonutDetail getDonutProperties()
protected int indexOf(java.util.Vector vector,
java.lang.String text)
protected void refreshProperties(int nFor)
refreshProperties in class GraphPanelnFor - the changed property constantpublic 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
protected void writeGraphAttributes(XMLWriter xmlwriter)
throws org.xml.sax.SAXException
writeGraphAttributes in class GraphPanelorg.xml.sax.SAXException
protected org.xml.sax.helpers.AttributesImpl getGraphAreaAttributes()
throws org.xml.sax.SAXException
getGraphAreaAttributes in class GraphPanelorg.xml.sax.SAXException
protected org.xml.sax.helpers.AttributesImpl getAxisLineAttributes(AxisDetail axisDetail)
throws org.xml.sax.SAXException
getAxisLineAttributes in class GraphPanelorg.xml.sax.SAXException
protected org.xml.sax.helpers.AttributesImpl getAxisGridAttributes(AxisDetail axisDetail)
throws org.xml.sax.SAXException
getAxisGridAttributes in class GraphPanelorg.xml.sax.SAXException
protected org.xml.sax.helpers.AttributesImpl getAxisLabelAttributes(AxisDetail axisDetail)
throws org.xml.sax.SAXException
getAxisLabelAttributes in class GraphPanelorg.xml.sax.SAXExceptionpublic void setBorderWidth(int width)
width - public int getBorderWidth()
public void setBorderColor(java.awt.Color invalue)
invalue - border colorpublic java.awt.Color getBorderColor()
public java.util.Vector getDonutColors()
public void setDonutColors(java.util.Vector invalue)
invalue - Vector of Donut propertiespublic void setTransperancyInPercent(int transperancyInPercent)
transperancyInPercent - Percentage of trancparency in colorpublic int getTransperancyInPercent()
public void setBorderVisible(boolean visible)
visible - if true then Donut border is visible otherwize notpublic boolean getBorderVisible()
public void setHoleSizeInPercent(int size)
size - public int getHoleSizeInPercent()
public void setStartAngle(int angle)
public int getStartAngle()
public void setDonutWidth(int width)
width - Donut widthpublic int getDonutWidth()
public void setHeightInPercent(int height)
height - Donut heightpublic int getHeightInPercent()
public void setDepth(int depth)
depth - Donut Depthpublic int getDepth()
public void setDonutGradientVisible(boolean visible)
visible - if true then Donut Gradient is visible otherwize notpublic boolean getDonutGradientVisible()
public void setDonutGradientExtent(int inExtent)
inExtent - Gradient Default Extentpublic int getDonutGradientExtent()
public void setDonutGradientMode(int mode)
mode - Donut Gradient Painter modepublic int getDonutGradientMode()
public void setDonutGradientAngle(int angle)
angle - Donut Gradient Painter anglepublic int getDonutGradientAngle()
public void setDonutTooltipText(java.lang.String tooltip)
tooltip - String representing Donut tooltip textpublic java.lang.String getDonutTooltipText()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||