|
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.line.LineGraph
|
+--com.elegantj.graphx.scatter.XYScatterGraph
|
+--com.elegantj.graphx.bubble.BubbleGraph
BubbleGraph class implements the 2 dimensional and 3 dimensional Bubble graph with drill down and mouse over effect.
| Field Summary | |
protected static int |
BUBBLE_CHANGE
Specifies the constant for refreshing graph |
protected static int |
BUBBLE_COLOR_CHANGE
Specifies the constant for refreshing graph |
protected static int |
BUBBLE_COMPUTATION_TYPE
Specifies the constant for refreshing graph |
protected int |
m_BubbleComputationType
Specifies the computation type |
GraphBubbleDetail |
m_GraphBubbleDetail
Specifies the Bubble Properties of Graph |
protected java.lang.String |
m_SizeAxisLabel
Specifies the Bubble size axis label |
protected int |
m_SizeItemIndex
|
java.util.Vector |
m_SizeMatrix
contains Bubble size data. |
protected static int |
SIZE_AXIS_LABEL
Specifies the constant for refreshing graph |
| Fields inherited from class com.elegantj.graphx.scatter.XYScatterGraph |
m_bIsScatter, m_NumXLabelList, m_PreType, m_XLabelType |
| 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 | |
BubbleGraph()
Creates the Graph with default settings |
|
| Method Summary | |
protected void |
addSizeValues(java.util.Vector dataValues,
java.util.Vector dataMatrix)
|
void |
CreateGraphTypeObject()
create BubbleGraphType Object |
java.awt.Color |
getBorderColor()
|
boolean |
getBorderVisible()
get Bubble Border Visible/hide |
int |
getBorderWidth()
Get Bubble border width |
java.awt.Color |
getBubbleColor(int inIndex)
Get the Bubble Color for specified index |
java.awt.Color |
getBubbleColor(java.lang.String inLabel)
Get the Bubble Color for specified label |
java.util.Vector |
getBubbleColors()
Get Bubble Properties |
int |
getBubbleComputationType()
Gets the Computation Type |
int |
getBubbleGradientAngle()
get Bubble Gradient Painter angle |
int |
getBubbleGradientExtent()
get Default Extent For drawing Gradient |
int |
getBubbleGradientMode()
get Bubble Gradient Painter mode |
boolean |
getBubbleGradientVisible()
get Bubble Gradient Visible/hide |
GraphBubbleDetail |
getBubbleProperties()
Get GraphBubbleDetail Object for Bubble properties |
java.lang.String |
getBubbleTooltipText()
get Bubble Tooltip Text |
boolean |
getCenterVisible()
get Bubble Center Visible/hide |
protected org.xml.sax.helpers.AttributesImpl |
getColomnLabelsAttributes()
|
int |
getGraphType()
returns graph type |
java.lang.Object |
getGraphTypeObject()
|
int |
getPosition()
get Bubble position |
java.awt.Dimension |
getPreferredSize()
|
java.lang.String |
getSizeAxisLabel()
Gets the size Axis Label |
java.lang.String |
getStringFromMacro(java.lang.String inMacroString,
DrillDownDetail inDrillDownDetail)
This function returns New string after replacing actual values in place of Macro string |
java.util.Vector |
getTestData()
|
java.lang.String |
getTooltipText()
return Bubble Tooltip text |
int |
getTransperancyInPercent()
get transperancy value of color |
protected java.awt.Rectangle |
getVisibleGraphRect()
Returns the Visible rectangle of the component |
void |
init()
Initialize graph variables |
void |
initGraphTest()
|
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 |
setBorderColor(java.awt.Color invalue)
set Bubble Border Color |
void |
setBorderVisible(boolean visible)
set Bubble Border Visible/Hide |
void |
setBorderWidth(int width)
Set Bubble border Width |
void |
setBubbleColor(int inIndex,
java.awt.Color inColor)
Set the Bubble Color for specified index |
void |
setBubbleColor(java.lang.String inLabel,
java.awt.Color inColor)
Set the Bubble Color for specified label |
void |
setBubbleColors(java.util.Vector invalue)
Set Bubble Properties |
void |
setBubbleComputationType(int type)
Sets the Computation Type |
void |
setBubbleGradientAngle(int angle)
set Bubble Gradient Painter angle |
void |
setBubbleGradientExtent(int inExtent)
set Default Extent for drawing Gradient |
void |
setBubbleGradientMode(int mode)
set Bubble Gradient Painter mode |
void |
setBubbleGradientVisible(boolean visible)
set Bubble Gradient Visible/Hide |
void |
setBubbleProperties(GraphBubbleDetail inGraphBubbleDetail)
Set GraphBubbleDetail Object Specifying Bubble properties |
void |
setBubbleTooltipText(java.lang.String tooltip)
set Bubble Tooltip text |
void |
setCenterVisible(boolean visible)
set Bubble Center Visible/Hide |
void |
setGraphType(int kGraph)
To set graph type |
void |
setPosition(int position)
Set Bubble Position |
void |
setSizeAxisLabel(java.lang.String label)
Sets the Size Axis Label |
void |
setTransperancyInPercent(int transperancyInPercent)
set Transperancy in Bubble color |
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 com.elegantj.graphx.scatter.XYScatterGraph |
getGraphAreaPolygon, getXLabelType, RestoreXDetail, setXLabelType |
| 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 BUBBLE_COLOR_CHANGE
protected static final int BUBBLE_CHANGE
protected static final int SIZE_AXIS_LABEL
protected static final int BUBBLE_COMPUTATION_TYPE
public GraphBubbleDetail m_GraphBubbleDetail
protected java.lang.String m_SizeAxisLabel
public transient java.util.Vector m_SizeMatrix
protected int m_BubbleComputationType
protected int m_SizeItemIndex
| Constructor Detail |
public BubbleGraph()
| Method Detail |
public void init()
init in class XYScatterGraphpublic void initGraphTest()
initGraphTest in class GraphPanelpublic java.util.Vector getTestData()
getTestData in class GraphPanelpublic void setGraphType(int kGraph)
setGraphType in class XYScatterGraphkGraph - one of the constants :
BUBBLE_GRAPHpublic int getGraphType()
getGraphType in class XYScatterGraphpublic void setSizeAxisLabel(java.lang.String label)
label - public java.lang.String getSizeAxisLabel()
public void setBubbleColor(java.lang.String inLabel,
java.awt.Color inColor)
inLabel - label whose color is to be returninColor - Color object to be setpublic java.awt.Color getBubbleColor(java.lang.String inLabel)
inLabel - Label whose color is to be return
public void setBubbleColor(int inIndex,
java.awt.Color inColor)
inIndex - index of label whose color is to be changedinColor - Color to be setpublic java.awt.Color getBubbleColor(int inIndex)
inIndex - index of label whose color is to be return
public void setBubbleProperties(GraphBubbleDetail inGraphBubbleDetail)
inGraphBubbleDetail - Object specifying Bubble Propertiespublic GraphBubbleDetail getBubbleProperties()
public void setBubbleComputationType(int type)
type - one of the constants :
NONE_COMPUTATION, SUM_COMPUTATION,
COUNT_COMPUTATION, VALID_COUNT_COMPUTATION,
AVERAGE_COMPUTATION, VALID_AVERAGE_COMPUTATION,
MAXIMUM_COMPUTATION, MINIMUM_COMPUTATIONpublic int getBubbleComputationType()
protected void addSizeValues(java.util.Vector dataValues,
java.util.Vector dataMatrix)
protected void refreshProperties(int nFor)
refreshProperties in class XYScatterGraphnFor - the changed property constantprotected java.awt.Rectangle getVisibleGraphRect()
getVisibleGraphRect in class XYScatterGraphpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class XYScatterGraphpublic void CreateGraphTypeObject()
CreateGraphTypeObject in class XYScatterGraphpublic java.lang.Object getGraphTypeObject()
getGraphTypeObject in class XYScatterGraphpublic java.lang.String getTooltipText()
getTooltipText in class LineGraphpublic boolean populateGraph()
populateGraph in class XYScatterGraph
public java.lang.String getStringFromMacro(java.lang.String inMacroString,
DrillDownDetail inDrillDownDetail)
getStringFromMacro in class GraphPanelinMacroString - String containing MacrosinDrillDownDetail - DrillDownDetail object
public void readExternal(java.io.ObjectInput in)
throws java.lang.ClassNotFoundException,
java.io.IOException
readExternal in interface java.io.ExternalizablereadExternal in class XYScatterGraphjava.lang.ClassNotFoundException
java.io.IOException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class XYScatterGraphjava.io.IOException
public void writeGraphAttributes(XMLWriter xmlwriter)
throws org.xml.sax.SAXException
writeGraphAttributes in class LineGraphorg.xml.sax.SAXException
protected org.xml.sax.helpers.AttributesImpl getColomnLabelsAttributes()
throws org.xml.sax.SAXException
getColomnLabelsAttributes 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 getBubbleColors()
public void setBubbleColors(java.util.Vector invalue)
invalue - Vector of Bubble propertiespublic void setPosition(int position)
position - public int getPosition()
public void setTransperancyInPercent(int transperancyInPercent)
setTransperancyInPercent in class LineGraphtransperancyInPercent - Percentage of trancparency in colorpublic int getTransperancyInPercent()
getTransperancyInPercent in class LineGraphpublic void setBorderVisible(boolean visible)
visible - if true then Bubble border is visible otherwize notpublic boolean getBorderVisible()
public void setCenterVisible(boolean visible)
visible - if true then Bubble Center is visible otherwize notpublic boolean getCenterVisible()
public void setBubbleGradientVisible(boolean visible)
visible - if true then Bubble Gradient is visible otherwize notpublic boolean getBubbleGradientVisible()
public void setBubbleGradientExtent(int inExtent)
inExtent - Gradient Default Extentpublic int getBubbleGradientExtent()
public void setBubbleGradientMode(int mode)
mode - Bubble Gradient Painter modepublic int getBubbleGradientMode()
public void setBubbleGradientAngle(int angle)
angle - Bubble Gradient Painter anglepublic int getBubbleGradientAngle()
public void setBubbleTooltipText(java.lang.String tooltip)
tooltip - String representing Bubble tooltip textpublic java.lang.String getBubbleTooltipText()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||