|
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.pie.PieGraph
PieGraph class implements the 3 dimensional series charting that allows the data to be displayed in a line, Pie, pie, area and radar shape.
| Field Summary | |
java.util.Vector |
m_DataMatrix
contains graph data. |
java.util.Vector |
m_GraphFormTable
contains setting of different graph formats. |
GraphPieDetail |
m_GraphPieDetail
Specifies the Area Properties of Graph |
protected int |
m_Height
Specifies the total height |
protected boolean |
m_Initialized
Specifies whether the Graph has been initialized or not |
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. |
protected static int |
PIE_CHANGE
Specifies the constant for refreshing graph |
protected static int |
PIE_COLOR_CHANGE
Specifies the constant for refreshing graph |
int |
swaped
|
| 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 | |
PieGraph()
Creates the Graph with default settings |
|
| Method Summary | |
static double |
divide(double inValue1,
double inValue2)
Divides the value1 by value2 and returns the rounded result |
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)
|
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 |
com.elegantj.editors.AWTBorder |
getPieBorder()
get Pie Border Object |
java.awt.Color |
getPieBorderColor()
get Pie Border Color |
int |
getPieBorderStyle()
get Pie Border Style |
boolean |
getPieBorderVisible()
get Pie Border Visible/hide |
int |
getPieBorderWidth()
get Pie Border Width |
int |
getPieCol()
Get Pie col nos. |
java.awt.Color |
getPieColor(int inIndex)
Get the Pie Color for specified index |
java.awt.Color |
getPieColor(java.lang.String inLabel)
Get the Pie Color for specified label |
java.util.Vector |
getPieColors()
Get Pie Properties |
int |
getPieDepth()
Get Pie width |
int |
getPieGap()
Get Pie Gap. |
int |
getPieGradientAngle()
get Pie Gradient Painter angle |
int |
getPieGradientExtent()
get Default Extent For drawing Gradient |
int |
getPieGradientMode()
get Pie Gradient Painter mode |
boolean |
getPieGradientVisible()
get Pie Gradient Visible/hide |
int |
getPieHeight()
Get Pie height |
GraphPieDetail |
getPieProperties()
Get GraphPieDetail Object for Pie properties |
int |
getPieRow()
Get Pie row nos. |
int |
getPieStartAngle()
Get Pie Start Angle |
java.lang.String |
getPieTooltipText()
get Pie Tooltip Text |
int |
getPieTransperancyInPercent()
get transperancy value of color |
int |
getPieWidth()
Get Pie width |
java.awt.Dimension |
getPreferredSize()
|
java.lang.String |
getTooltipText()
return Tooltip text |
protected java.awt.Rectangle |
getVisibleGraphRect()
Returns the Visible rectangle of the component |
protected int |
indexOf(java.util.Vector vector,
java.lang.String text)
|
void |
init()
Initialize graph variables |
void |
paintComponent(java.awt.Graphics g)
paints graph according to properties and data of graph. |
boolean |
populateGraph()
Populates the Graph |
void |
readExternal(java.io.ObjectInput in)
Retrieves the state of the bean |
void |
reDraw()
|
protected void |
refreshProperties(int nFor)
Refreshes the Graph followed by the given changed property |
void |
setPieBorder(com.elegantj.editors.AWTBorder newBorder)
set Pie Border Object |
void |
setPieBorderColor(java.awt.Color newBorderColor)
set Pie Border Color |
void |
setPieBorderStyle(int newBorderStyle)
set Pie Border Style |
void |
setPieBorderVisible(boolean visible)
set Pie Border Visible/Hide |
void |
setPieBorderWidth(int newBorderWidth)
set Pie Border Width |
void |
setPieCol(int col)
Set Pie col nos. |
void |
setPieColor(int inIndex,
java.awt.Color inColor)
Set the Pie Color for specified index |
void |
setPieColor(java.lang.String inLabel,
java.awt.Color inColor)
Set the Area Color for specified label |
void |
setPieColors(java.util.Vector invalue)
Set Pie Properties |
void |
setPieDepth(int depth)
Set Pie depth |
void |
setPieGap(int gap)
Set Pie Gap. |
void |
setPieGradientAngle(int angle)
set Pie Gradient Painter angle |
void |
setPieGradientExtent(int inExtent)
set Default Extent for drawing Gradient |
void |
setPieGradientMode(int mode)
set Pie Gradient Painter mode |
void |
setPieGradientVisible(boolean visible)
set Pie Gradient Visible/Hide |
void |
setPieHeight(int height)
Set Pie Height |
void |
setPieProperties(GraphPieDetail inGraphPieDetail)
Set GraphPieDetail Object Specifying Pie properties |
void |
setPieRow(int row)
Set Pie row nos. |
void |
setPieStartAngle(int Angle)
Set Pie Start Angle |
void |
setPieTooltipText(java.lang.String tooltip)
set Pie Tooltip text |
void |
setPieTransperancyInPercent(int transperancyInPercent)
set Transperancy in Pie color |
void |
setPieWidth(int width)
Set Pie Width |
void |
update(java.awt.Graphics g)
|
void |
writeExternal(java.io.ObjectOutput out)
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 PIE_COLOR_CHANGE
protected static final int PIE_CHANGE
protected java.awt.Rectangle m_OriginalClipRect
protected int m_Width
protected int m_Height
protected boolean m_Initialized
public java.util.Vector m_GraphFormTable
public GraphPieDetail m_GraphPieDetail
public transient java.util.Vector m_XLabelList
public transient java.util.Vector m_ZLabelList
public transient java.util.Vector m_DataMatrix
public int swaped
| Constructor Detail |
public PieGraph()
| Method Detail |
public void init()
public void setPieColor(java.lang.String inLabel,
java.awt.Color inColor)
inLabel - label whose color is to be returninColor - Color object to be setpublic java.awt.Color getPieColor(java.lang.String inLabel)
inLabel - Label whose color is to be return
public void setPieColor(int inIndex,
java.awt.Color inColor)
inIndex - index of label whose color is to be changedinColor - Color to be setpublic java.awt.Color getPieColor(int inIndex)
inIndex - index of label whose color is to be return
public void setPieProperties(GraphPieDetail inGraphPieDetail)
inGraphPieDetail - Object specifying Pie Propertiespublic GraphPieDetail getPieProperties()
protected int indexOf(java.util.Vector vector,
java.lang.String text)
protected void refreshProperties(int nFor)
refreshProperties in class GraphPanelnFor - the changed property constant
public static double divide(double inValue1,
double inValue2)
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 Pointpublic boolean populateGraph()
GraphPanel
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 setPieColors(java.util.Vector invalue)
invalue - Vector of Pie propertiespublic java.util.Vector getPieColors()
public void setPieTransperancyInPercent(int transperancyInPercent)
transperancyInPercent - Percentage of trancparency in colorpublic int getPieTransperancyInPercent()
public void setPieBorderVisible(boolean visible)
visible - if true then Pie border is visible otherwize notpublic boolean getPieBorderVisible()
public void setPieBorder(com.elegantj.editors.AWTBorder newBorder)
newBorder - border Object specifying border propertiespublic com.elegantj.editors.AWTBorder getPieBorder()
public void setPieBorderStyle(int newBorderStyle)
newBorderStyle - public int getPieBorderStyle()
public void setPieBorderWidth(int newBorderWidth)
newBorderWidth - public int getPieBorderWidth()
public void setPieBorderColor(java.awt.Color newBorderColor)
newBorderColor - public java.awt.Color getPieBorderColor()
public void setPieGradientVisible(boolean visible)
visible - if true then Pie Gradient is visible otherwize notpublic boolean getPieGradientVisible()
public void setPieGradientExtent(int inExtent)
inExtent - Gradient Default Extentpublic int getPieGradientExtent()
public void setPieGradientMode(int mode)
mode - Pie Gradient Painter modepublic int getPieGradientMode()
public void setPieGradientAngle(int angle)
angle - Pie Gradient Painter anglepublic int getPieGradientAngle()
public void setPieTooltipText(java.lang.String tooltip)
tooltip - String representing Pie tooltip textpublic java.lang.String getPieTooltipText()
public void setPieStartAngle(int Angle)
public int getPieStartAngle()
public void setPieWidth(int width)
width - Pie widthpublic int getPieWidth()
public void setPieHeight(int height)
public int getPieHeight()
public void setPieDepth(int depth)
public int getPieDepth()
public void setPieRow(int row)
public int getPieRow()
public void setPieCol(int col)
public int getPieCol()
public void setPieGap(int gap)
public int getPieGap()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||