ElegantJCharts Java API Specification v2.0

com.elegantj.graphx.bubble
Class BubbleGraph

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
All Implemented Interfaces:
javax.accessibility.Accessible, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class BubbleGraph
extends XYScatterGraph
implements java.io.Externalizable

BubbleGraph class implements the 2 dimensional and 3 dimensional Bubble graph with drill down and mouse over effect.

See Also:
Serialized Form

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 com.elegantj.graphx.line.LineGraph
DATAPOINT_SHAPE_CIRCLE, DATAPOINT_SHAPE_DESH, DATAPOINT_SHAPE_DIAMOND, DATAPOINT_SHAPE_NONE, DATAPOINT_SHAPE_PLUS, DATAPOINT_SHAPE_POT, DATAPOINT_SHAPE_SQUARE, DATAPOINT_SHAPE_STAR, DATAPOINT_SHAPE_TRIANGLE, LEGANDS_ORDER_CHANGE, LINE_CHANGE, LINE_COLOR_CHANGE, m_ColItemIndex, m_DataItemIndex, m_DataMatrix, m_GraphCurvedLineEnable, m_GraphFormTable, m_GraphLineDetail, m_GraphLineStyle, m_GraphStripEnable, m_GraphStyledLineEnable, m_Height, m_Initialized, m_IsRepaint, m_OriginalClipRect, m_RowItemIndex, m_ShowDataLabelsType, m_Width, m_XLabelList, m_ZLabelList, ShowDataLabels_ALWAYS, ShowDataLabels_NEVER, ShowDataLabels_ROLLOVER
 
Fields inherited from class com.elegantj.graphx.GraphPanel
c11, click_x, click_y, COMPUTATION_TYPE, DRILL_DOWN_REFRESH, EXPLAIN_NOTES_STR_LEN, EXPLAN_NOTES_STR_LEN_DEFAULT, GRAPH_DATA_SORT, GRAPH_PROPERTY_CHANGE, GRAPH_TYPE, INITIALIZE, ITEM_AXIS_LABEL, m_3DEffectEnable, m_3DHorizontalOffset, m_3DVerticalOffset, m_bFitToSize, m_bIsGraphDataPreserved, m_ComputationType, m_DataProvider, m_DefaultTooltipText, m_drillDownEnable, m_DrillDownListener, m_Driver, m_ExplainNotesStrLen, m_GraphAreaBackground, m_GraphAreaBackgroundVisible, m_GraphAreaGradientAngle, m_GraphAreaGradientColor, m_GraphAreaGradientExtent, m_GraphAreaGradientMode, m_GraphAreaGradientVisible, m_GraphData, m_Graphics, m_GraphicsEx, m_GraphNotes, m_GraphNotesBackground, m_GraphNotesBorderColor, m_GraphNotesBorderStyle, m_GraphNotesBorderWidth, m_GraphNotesEnable, m_GraphNotesFont, m_GraphNotesForeground, m_GraphNotesShadowColor, m_GraphNotesShadowStyle, m_GraphNotesShadowWidth, m_GraphNotesShowInterval, m_GraphNotesVisibleInterval, m_GraphObj, m_GraphSize, m_GraphTitleDetail, m_GraphTooltip, m_GraphXAxisDetail, m_GraphYAxisDetail, m_GraphZAxisDetail, m_iBottomOffset, m_iLeftOffset, m_iRightOffset, m_IsHandCursor, m_IsMouseOver, m_ItemAxisLabel, m_iTopOffset, m_kGraph, m_MouseOverEffectEnable, m_MouseOverStaticTextEnable, m_MouseOverText, m_MouseOverTextAlign, m_MouseOverTextBackground, m_MouseOverTextBackgroundVisible, m_MouseOverTextBorderColor, m_MouseOverTextBorderStyle, m_MouseOverTextBorderWidth, m_MouseOverTextEnable, m_MouseOverTextFont, m_MouseOverTextForeground, m_MouseOverTextMaxLen, m_MouseOverTextShadowColor, m_MouseOverTextShadowStyle, m_MouseOverTextShadowWidth, m_NumericalAxisLabel, m_oldPointItemIndex, m_oldPointSeriesIndex, m_Parent, m_Password, m_PopupMenu, m_Query, m_reDraw, m_ResultSet, m_SerialAxisLabel, m_SortEnable, m_sum, m_TooltipBackground, m_TooltipBorderColor, m_TooltipBorderStyle, m_TooltipBorderWidth, m_TooltipEnable, m_TooltipFont, m_TooltipForeground, m_TooltipShowInterval, m_TooltipText, m_TooltipVisibleInterval, m_URL, m_userName, m_YAxisDivisionValue, m_YAxisMaxLabelValue, m_YAxisMinLabelValue, m_YAxisUnitLabel, m_ZoomEnable, m_ZoomListener, m_ZoomSelectionEnabled, MOUSE_OVER_CHANGE, NUMERICAL_AXIS_LABEL, RESOURCE_BUNDLE, SERIAL_AXIS_LABEL, TOOL_TIP_CHANGE, Y_AXIS_COMMA_FORMAT, Y_AXIS_DIVISION_VALUE, Y_AXIS_MAX_LABEL_VALUE, Y_AXIS_MIN_LABEL_VALUE, Y_AXIS_UNIT_LABEL
 
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 com.elegantj.graphx.line.LineGraph
getDrillDownDetail, getGraphCurvedLineEnable, getGraphLineStyle, getGraphStripEnable, getGraphStyledLineEnable, getInverseColor, getLineColor, getLineColor, getLineDetailProperties, getLineGraphRowInfo, getLinePosition, getLineProperties, getLineShadowColor, getLineShadowVisible, getLineTooltipText, getShowDataLabelsType, indexOf, paintComponent, reDraw, setGraphCurvedLineEnable, setGraphLineStyle, setGraphStripEnable, setGraphStyledLineEnable, setLineColor, setLineColor, setLineDetailProperties, setLineGraphRowInfo, setLinePosition, setLineProperties, setLineShadowColor, setLineShadowVisible, setLineTooltipText, setShowDataLabelsType, update
 
Methods inherited from class com.elegantj.graphx.GraphPanel
addDrillDownListener, addGraphNote, addPropertyChangeListener, addValues, addZoomListener, checkZoomFactor, clearZoomStepStack, divide, doZoom, drawBackgroundImage, drawGradient, drawGraphBorder, firePropertyChange, fireZoomEvent, generateColorString, getAxisGridAttributes, getAxisLabelAttributes, getAxisLineAttributes, getAxisNameAttributes, getBackgroundAttributes, getBackgroundImage, getBgImageDisplay, getBgImageEmbedded, getBgImageFlipType, getBgImageFromPath, getBgImageSourcePath, getBgImageVisible, getCommonAttributes, getComputationType, getCurZoomFactor, getDefaultTooltipText, getDrillDownEnable, getExplainNotesStrLen, getExtension, getFixedArea, getFlipedImage, getGradientAngle, getGradientColor, getGradientExtent, getGradientMode, getGradientVisible, getGraph3DEffect, getGraph3DHorizontalOffset, getGraph3DVerticalOffset, getGraphAreaAttributes, getGraphAreaBackground, getGraphAreaBackgroundVisible, getGraphAreaDrillDownEnable, getGraphAreaGradientAngle, getGraphAreaGradientColor, getGraphAreaGradientExtent, getGraphAreaGradientMode, getGraphAreaGradientVisible, getGraphBorderColor, getGraphBorderStyle, getGraphBorderWidth, getGraphColors, getGraphData, getGraphDataProvider, getGraphDataResultSet, getGraphics, getGraphNote, getGraphNoteIndex, getGraphNotes, getGraphNotesBackground, getGraphNotesBorderColor, getGraphNotesBorderStyle, getGraphNotesBorderWidth, getGraphNotesFont, getGraphNotesForeground, getGraphNotesShadowColor, getGraphNotesShadowStyle, getGraphNotesShadowWidth, getGraphNotesShowInterval, getGraphNotesVisible, getGraphNotesVisibleInterval, getGraphSize, getGraphTitle, getGraphTitleAlign, getGraphTitleBackground, getGraphTitleBackgroundVisible, getGraphTitleBorderColor, getGraphTitleBorderStyle, getGraphTitleBorderWidth, getGraphTitleFont, getGraphTitleForeground, getGraphTitleMaxLine, getGraphTitleShadowColor, getGraphTitleShadowStyle, getGraphTitleShadowWidth, getGraphTitleVisible, getGraphTypeAttributes, getItemAxisLabel, getLicenseKey, getMaxZoomFactor, getMouseOverAttributes, getMouseOverEffectEnable, getMouseOverStaticTextEnable, getMouseOverText, getMouseOverTextAlignment, getMouseOverTextBackground, getMouseOverTextBackgroundVisible, getMouseOverTextBorderColor, getMouseOverTextBorderStyle, getMouseOverTextBorderWidth, getMouseOverTextEnable, getMouseOverTextFont, getMouseOverTextForeground, getMouseOverTextMaxLen, getMouseOverTextShadowColor, getMouseOverTextShadowStyle, getMouseOverTextShadowWidth, getNumericalAxisLabel, getOverLapXAxisLabelEnable, getOverLapYAxisLabelEnable, getScrollPane, getSelectedRect, getSerialAxisLabel, getSortDataEnable, getTitleAttributes, getTitleProperties, getToolTipAttributes, getTooltipBackground, getTooltipBorderColor, getTooltipBorderStyle, getTooltipBorderWidth, getTooltipFont, getTooltipForeground, getTooltipShowInterval, getTooltipVisible, getTooltipVisibleInterval, getXAxisGridLineColor, getXAxisGridLineStyle, getXAxisGridLineVisible, getXAxisGridLineWidth, getXAxisGridStripColor, getXAxisGridStripVisible, getXAxisLabelAlign, getXAxisLabelAlignAngle, getXAxisLabelBackground, getXAxisLabelBackgroundVisible, getXAxisLabelDrillDownEnable, getXAxisLabelFont, getXAxisLabelForeground, getXAxisLabelFormat, getXAxisLabelGap, getXAxisLabelTooltipText, getXAxisLabelVisible, getXAxisLineColor, getXAxisLineWidth, getXAxisMaxLabelValue, getXAxisMinLabelValue, getXAxisName, getXAxisNameAlign, getXAxisNameBackground, getXAxisNameBackgroundVisible, getXAxisNameBorderColor, getXAxisNameBorderStyle, getXAxisNameBorderWidth, getXAxisNameFont, getXAxisNameForeground, getXAxisNameMaxLine, getXAxisNameShadowColor, getXAxisNameShadowStyle, getXAxisNameShadowWidth, getXAxisNameVisible, getXAxisProperties, getXAxisTickLineColor, getXAxisTickLineHeight, getXAxisTickLinePosition, getXAxisTickLineVisible, getXAxisTickLineWidth, getXDivisionValue, getXZeroGridLineColor, getXZeroGridLineStyle, getXZeroGridLineWidth, getYAxisDivisionValue, getYAxisGridLineColor, getYAxisGridLineStyle, getYAxisGridLineVisible, getYAxisGridLineWidth, getYAxisGridStripColor, getYAxisGridStripVisible, getYAxisLabelAlign, getYAxisLabelAlignAngle, getYAxisLabelBackground, getYAxisLabelBackgroundVisible, getYAxisLabelDrillDownEnable, getYAxisLabelFont, getYAxisLabelForeground, getYAxisLabelFormat, getYAxisLabelTooltipText, getYAxisLabelVisible, getYAxisLineColor, getYAxisLineWidth, getYAxisMaxLabelValue, getYAxisMinLabelValue, getYAxisName, getYAxisNameAlign, getYAxisNameBackground, getYAxisNameBackgroundVisible, getYAxisNameBorderColor, getYAxisNameBorderStyle, getYAxisNameBorderWidth, getYAxisNameFont, getYAxisNameForeground, getYAxisNameMaxLine, getYAxisNameShadowColor, getYAxisNameShadowStyle, getYAxisNameShadowWidth, getYAxisNameVisible, getYAxisPosition, getYAxisProperties, getYAxisTickLineColor, getYAxisTickLineHeight, getYAxisTickLinePosition, getYAxisTickLineVisible, getYAxisTickLineWidth, getYAxisUnitLabel, getYDivisionValue, getYZeroGridLineColor, getYZeroGridLineStyle, getYZeroGridLineWidth, getZAxisAlignment, getZAxisBackground, getZAxisBackgroundVisible, getZAxisBorderColor, getZAxisBorderStyle, getZAxisBorderWidth, getZAxisLabelAlign, getZAxisLabelBackground, getZAxisLabelBackgroundVisible, getZAxisLabelDrillDownEnable, getZAxisLabelFont, getZAxisLabelForeground, getZAxisLabelFormat, getZAxisLabelShowOrder, getZAxisLabelTooltipText, getZAxisLabelVisible, getZAxisName, getZAxisNameAlign, getZAxisNameBackground, getZAxisNameBackgroundVisible, getZAxisNameBorderColor, getZAxisNameBorderStyle, getZAxisNameBorderWidth, getZAxisNameFont, getZAxisNameForeground, getZAxisNameMaxLine, getZAxisNameShadowColor, getZAxisNameShadowStyle, getZAxisNameShadowWidth, getZAxisNameVisible, getZAxisPosition, getZAxisProperties, getZAxisShadowColor, getZAxisShadowStyle, getZAxisShadowWidth, getZAxisVisible, getZoomAffectedSize, getZoomEnable, getZoomInCount, isGraphDataEmbeded, isGraphFitToSize, isLicenseKeyValid, isLightweight, isPopulateFlag, isPrinting, isZoomSelectionEnabled, loadFromXML, loadFromXML, paint, parseValue, processComponentEvent, processMouseEvent, processMouseMotionEvent, removeDrillDownListener, removeGraphNote, removePropertyChangeListener, removeZoomListener, repaintChildren, resetSelectedZoomRect, saveAsImageBMP, saveAsImageJPEG, setBackground, setBackgroundImage, setBgImageDisplay, setBgImageEmbedded, setBgImageFlipType, setBgImageFromPath, setBgImageSourcePath, setBgImageVisible, setComputationType, setDefaultProperties, setDefaultTooltipText, setDrillDownEnable, setExplainNotesStrLen, setFont, setForeground, setGradientAngle, setGradientColor, setGradientExtent, setGradientMode, setGradientVisible, setGraph3DEffect, setGraph3DHorizontalOffset, setGraph3DVerticalOffset, setGraphAreaBackground, setGraphAreaBackgroundVisible, setGraphAreaDrillDownEnable, setGraphAreaGradientAngle, setGraphAreaGradientColor, setGraphAreaGradientExtent, setGraphAreaGradientMode, setGraphAreaGradientVisible, setGraphBorderColor, setGraphBorderStyle, setGraphBorderWidth, setGraphColors, setGraphData, setGraphData, setGraphDataEmbeded, setGraphDataProvider, setGraphDataResultSet, setGraphDataURL, setGraphFitToSize, setGraphics, setGraphNotes, setGraphNotesBackground, setGraphNotesBorderColor, setGraphNotesBorderStyle, setGraphNotesBorderWidth, setGraphNotesFont, setGraphNotesForeground, setGraphNotesShadowColor, setGraphNotesShadowStyle, setGraphNotesShadowWidth, setGraphNotesShowInterval, setGraphNotesVisible, setGraphNotesVisibleInterval, setGraphSize, setGraphTitle, setGraphTitleAlign, setGraphTitleBackground, setGraphTitleBackgroundVisible, setGraphTitleBorderColor, setGraphTitleBorderStyle, setGraphTitleBorderWidth, setGraphTitleFont, setGraphTitleForeground, setGraphTitleMaxLine, setGraphTitleShadowColor, setGraphTitleShadowStyle, setGraphTitleShadowWidth, setGraphTitleVisible, setInternalLicenseKey, setItemAxisLabel, setLicenseKey, setLightweight, setMaxZoomFactor, setMouseOverEffectEnable, setMouseOverStaticTextEnable, setMouseOverText, setMouseOverTextAlignment, setMouseOverTextBackground, setMouseOverTextBackgroundVisible, setMouseOverTextBorderColor, setMouseOverTextBorderStyle, setMouseOverTextBorderWidth, setMouseOverTextEnable, setMouseOverTextFont, setMouseOverTextForeground, setMouseOverTextMaxLen, setMouseOverTextShadowColor, setMouseOverTextShadowStyle, setMouseOverTextShadowWidth, setNumericalAxisLabel, setOverLapXAxisLabelEnable, setOverLapYAxisLabelEnable, setPopulateFlag, setPrinting, setSerialAxisLabel, setSortDataEnable, setTitleProperties, setTooltipBackground, setTooltipBorderColor, setTooltipBorderStyle, setTooltipBorderWidth, setTooltipFont, setTooltipForeground, setTooltipShowInterval, setTooltipVisible, setTooltipVisibleInterval, setXAxisGridLineColor, setXAxisGridLineStyle, setXAxisGridLineVisible, setXAxisGridLineWidth, setXAxisGridStripColor, setXAxisGridStripVisible, setXAxisLabelAlign, setXAxisLabelAlignAngle, setXAxisLabelBackground, setXAxisLabelBackgroundVisible, setXAxisLabelDrillDownEnable, setXAxisLabelFont, setXAxisLabelForeground, setXAxisLabelFormat, setXAxisLabelGap, setXAxisLabelTooltipText, setXAxisLabelVisible, setXAxisLineColor, setXAxisLineWidth, setXAxisMaxLabelValue, setXAxisMinLabelValue, setXAxisName, setXAxisNameAlign, setXAxisNameBackground, setXAxisNameBackgroundVisible, setXAxisNameBorderColor, setXAxisNameBorderStyle, setXAxisNameBorderWidth, setXAxisNameFont, setXAxisNameForeground, setXAxisNameMaxLine, setXAxisNameShadowColor, setXAxisNameShadowStyle, setXAxisNameShadowWidth, setXAxisNameVisible, setXAxisProperties, setXAxisTickLineColor, setXAxisTickLineHeight, setXAxisTickLinePosition, setXAxisTickLineVisible, setXAxisTickLineWidth, setXDivisionValue, setXZeroGridLineColor, setXZeroGridLineStyle, setXZeroGridLineWidth, setYAxisDivisionValue, setYAxisGridLineColor, setYAxisGridLineStyle, setYAxisGridLineVisible, setYAxisGridLineWidth, setYAxisGridStripColor, setYAxisGridStripVisible, setYAxisLabelAlign, setYAxisLabelAlignAngle, setYAxisLabelBackground, setYAxisLabelBackgroundVisible, setYAxisLabelDrillDownEnable, setYAxisLabelFont, setYAxisLabelForeground, setYAxisLabelFormat, setYAxisLabelTooltipText, setYAxisLabelVisible, setYAxisLineColor, setYAxisLineWidth, setYAxisMaxLabelValue, setYAxisMinLabelValue, setYAxisName, setYAxisNameAlign, setYAxisNameBackground, setYAxisNameBackgroundVisible, setYAxisNameBorderColor, setYAxisNameBorderStyle, setYAxisNameBorderWidth, setYAxisNameFont, setYAxisNameForeground, setYAxisNameMaxLine, setYAxisNameShadowColor, setYAxisNameShadowStyle, setYAxisNameShadowWidth, setYAxisNameVisible, setYAxisPosition, setYAxisProperties, setYAxisTickLineColor, setYAxisTickLineHeight, setYAxisTickLinePosition, setYAxisTickLineVisible, setYAxisTickLineWidth, setYAxisUnitLabel, setYDivisionValue, setYZeroGridLineColor, setYZeroGridLineStyle, setYZeroGridLineWidth, setZAxisAlignment, setZAxisBackground, setZAxisBackgroundVisible, setZAxisBorderColor, setZAxisBorderStyle, setZAxisBorderWidth, setZAxisLabelAlign, setZAxisLabelBackground, setZAxisLabelBackgroundVisible, setZAxisLabelDrillDownEnable, setZAxisLabelFont, setZAxisLabelForeground, setZAxisLabelFormat, setZAxisLabelShowOrder, setZAxisLabelTooltipText, setZAxisLabelVisible, setZAxisName, setZAxisNameAlign, setZAxisNameBackground, setZAxisNameBackgroundVisible, setZAxisNameBorderColor, setZAxisNameBorderStyle, setZAxisNameBorderWidth, setZAxisNameFont, setZAxisNameForeground, setZAxisNameMaxLine, setZAxisNameShadowColor, setZAxisNameShadowStyle, setZAxisNameShadowWidth, setZAxisNameVisible, setZAxisPosition, setZAxisProperties, setZAxisShadowColor, setZAxisShadowStyle, setZAxisShadowWidth, setZAxisVisible, setZoom, setZoomEnable, setZoomSelectionEnabled, showPopupMenu, updateZoomStepStack, validateGraph, writeAttributes, writeElement, writeGraphData, writeGraphDataAttributes, writeToXML, writeToXML, writeXAxisAttributes, writeYAxisAttributes, writeZAxisAttributes, zoomRect
 
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

BUBBLE_COLOR_CHANGE

protected static final int BUBBLE_COLOR_CHANGE
Specifies the constant for refreshing graph

See Also:
Constant Field Values

BUBBLE_CHANGE

protected static final int BUBBLE_CHANGE
Specifies the constant for refreshing graph

See Also:
Constant Field Values

SIZE_AXIS_LABEL

protected static final int SIZE_AXIS_LABEL
Specifies the constant for refreshing graph

See Also:
Constant Field Values

BUBBLE_COMPUTATION_TYPE

protected static final int BUBBLE_COMPUTATION_TYPE
Specifies the constant for refreshing graph

See Also:
Constant Field Values

m_GraphBubbleDetail

public GraphBubbleDetail m_GraphBubbleDetail
Specifies the Bubble Properties of Graph


m_SizeAxisLabel

protected java.lang.String m_SizeAxisLabel
Specifies the Bubble size axis label


m_SizeMatrix

public transient java.util.Vector m_SizeMatrix
contains Bubble size data.


m_BubbleComputationType

protected int m_BubbleComputationType
Specifies the computation type


m_SizeItemIndex

protected int m_SizeItemIndex
Constructor Detail

BubbleGraph

public BubbleGraph()
Creates the Graph with default settings

Method Detail

init

public void init()
Initialize graph variables

Overrides:
init in class XYScatterGraph

initGraphTest

public void initGraphTest()
Overrides:
initGraphTest in class GraphPanel

getTestData

public java.util.Vector getTestData()
Overrides:
getTestData in class GraphPanel

setGraphType

public void setGraphType(int kGraph)
To set graph type

Overrides:
setGraphType in class XYScatterGraph
Parameters:
kGraph - one of the constants : BUBBLE_GRAPH

getGraphType

public int getGraphType()
returns graph type

Overrides:
getGraphType in class XYScatterGraph
Returns:
type of graph

setSizeAxisLabel

public void setSizeAxisLabel(java.lang.String label)
Sets the Size Axis Label

Parameters:
label -

getSizeAxisLabel

public java.lang.String getSizeAxisLabel()
Gets the size Axis Label

Returns:
Size-Axis Label

setBubbleColor

public void setBubbleColor(java.lang.String inLabel,
                           java.awt.Color inColor)
Set the Bubble Color for specified label

Parameters:
inLabel - label whose color is to be return
inColor - Color object to be set

getBubbleColor

public java.awt.Color getBubbleColor(java.lang.String inLabel)
Get the Bubble Color for specified label

Parameters:
inLabel - Label whose color is to be return
Returns:
Color Color object specifying the color of indexed label

setBubbleColor

public void setBubbleColor(int inIndex,
                           java.awt.Color inColor)
Set the Bubble Color for specified index

Parameters:
inIndex - index of label whose color is to be changed
inColor - Color to be set

getBubbleColor

public java.awt.Color getBubbleColor(int inIndex)
Get the Bubble Color for specified index

Parameters:
inIndex - index of label whose color is to be return
Returns:
Color Color object specifying the color of indexed label

setBubbleProperties

public void setBubbleProperties(GraphBubbleDetail inGraphBubbleDetail)
Set GraphBubbleDetail Object Specifying Bubble properties

Parameters:
inGraphBubbleDetail - Object specifying Bubble Properties

getBubbleProperties

public GraphBubbleDetail getBubbleProperties()
Get GraphBubbleDetail Object for Bubble properties

Returns:
GraphBubbleDetail Specifying the Bubble property object

setBubbleComputationType

public void setBubbleComputationType(int type)
Sets the Computation Type

Parameters:
type - one of the constants : NONE_COMPUTATION, SUM_COMPUTATION, COUNT_COMPUTATION, VALID_COUNT_COMPUTATION, AVERAGE_COMPUTATION, VALID_AVERAGE_COMPUTATION, MAXIMUM_COMPUTATION, MINIMUM_COMPUTATION

getBubbleComputationType

public int getBubbleComputationType()
Gets the Computation Type

Returns:
the Computation Type

addSizeValues

protected void addSizeValues(java.util.Vector dataValues,
                             java.util.Vector dataMatrix)

refreshProperties

protected void refreshProperties(int nFor)
This method refreshes the Graph followed by the given changed property

Overrides:
refreshProperties in class XYScatterGraph
Parameters:
nFor - the changed property constant

getVisibleGraphRect

protected java.awt.Rectangle getVisibleGraphRect()
Returns the Visible rectangle of the component

Overrides:
getVisibleGraphRect in class XYScatterGraph
Returns:
the rectangle contains the paint boundary of the component

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class XYScatterGraph

CreateGraphTypeObject

public void CreateGraphTypeObject()
create BubbleGraphType Object

Overrides:
CreateGraphTypeObject in class XYScatterGraph

getGraphTypeObject

public java.lang.Object getGraphTypeObject()
Overrides:
getGraphTypeObject in class XYScatterGraph
Returns:
GraphTypeObject

getTooltipText

public java.lang.String getTooltipText()
return Bubble Tooltip text

Overrides:
getTooltipText in class LineGraph

populateGraph

public boolean populateGraph()
Populates the Graph

Overrides:
populateGraph in class XYScatterGraph
Returns:
boolean true - if Graph is successfully populated otherwize false

getStringFromMacro

public java.lang.String getStringFromMacro(java.lang.String inMacroString,
                                           DrillDownDetail inDrillDownDetail)
This function returns New string after replacing actual values in place of Macro string

Overrides:
getStringFromMacro in class GraphPanel
Parameters:
inMacroString - String containing Macros
inDrillDownDetail - DrillDownDetail object
Returns:
String String with values in place of Macros.

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
This method retrieves the state of the bean

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class XYScatterGraph
java.lang.ClassNotFoundException
java.io.IOException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
This method saves the state of the bean

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class XYScatterGraph
java.io.IOException

writeGraphAttributes

public void writeGraphAttributes(XMLWriter xmlwriter)
                          throws org.xml.sax.SAXException
Write Properties to the xml File

Overrides:
writeGraphAttributes in class LineGraph
org.xml.sax.SAXException

getColomnLabelsAttributes

protected org.xml.sax.helpers.AttributesImpl getColomnLabelsAttributes()
                                                                throws org.xml.sax.SAXException
Overrides:
getColomnLabelsAttributes in class GraphPanel
org.xml.sax.SAXException

setBorderWidth

public void setBorderWidth(int width)
Set Bubble border Width

Parameters:
width -

getBorderWidth

public int getBorderWidth()
Get Bubble border width

Returns:
int border width

setBorderColor

public void setBorderColor(java.awt.Color invalue)
set Bubble Border Color

Parameters:
invalue - border color

getBorderColor

public java.awt.Color getBorderColor()

getBubbleColors

public java.util.Vector getBubbleColors()
Get Bubble Properties

Returns:
Vector Bubble property vector

setBubbleColors

public void setBubbleColors(java.util.Vector invalue)
Set Bubble Properties

Parameters:
invalue - Vector of Bubble properties

setPosition

public void setPosition(int position)
Set Bubble Position

Parameters:
position -

getPosition

public int getPosition()
get Bubble position

Returns:
int

setTransperancyInPercent

public void setTransperancyInPercent(int transperancyInPercent)
set Transperancy in Bubble color

Overrides:
setTransperancyInPercent in class LineGraph
Parameters:
transperancyInPercent - Percentage of trancparency in color

getTransperancyInPercent

public int getTransperancyInPercent()
get transperancy value of color

Overrides:
getTransperancyInPercent in class LineGraph
Returns:
int Specifying the Percantage of transperancy of color

setBorderVisible

public void setBorderVisible(boolean visible)
set Bubble Border Visible/Hide

Parameters:
visible - if true then Bubble border is visible otherwize not

getBorderVisible

public boolean getBorderVisible()
get Bubble Border Visible/hide

Returns:
boolean true - Bubble border is visible otherwize not

setCenterVisible

public void setCenterVisible(boolean visible)
set Bubble Center Visible/Hide

Parameters:
visible - if true then Bubble Center is visible otherwize not

getCenterVisible

public boolean getCenterVisible()
get Bubble Center Visible/hide

Returns:
boolean true - Bubble Center is visible otherwize not

setBubbleGradientVisible

public void setBubbleGradientVisible(boolean visible)
set Bubble Gradient Visible/Hide

Parameters:
visible - if true then Bubble Gradient is visible otherwize not

getBubbleGradientVisible

public boolean getBubbleGradientVisible()
get Bubble Gradient Visible/hide

Returns:
boolean true - Bubble Gradient is visible otherwize not

setBubbleGradientExtent

public void setBubbleGradientExtent(int inExtent)
set Default Extent for drawing Gradient

Parameters:
inExtent - Gradient Default Extent

getBubbleGradientExtent

public int getBubbleGradientExtent()
get Default Extent For drawing Gradient

Returns:
int Gradient Default Extent

setBubbleGradientMode

public void setBubbleGradientMode(int mode)
set Bubble Gradient Painter mode

Parameters:
mode - Bubble Gradient Painter mode

getBubbleGradientMode

public int getBubbleGradientMode()
get Bubble Gradient Painter mode

Returns:
int Bubble Gradient Painter mode

setBubbleGradientAngle

public void setBubbleGradientAngle(int angle)
set Bubble Gradient Painter angle

Parameters:
angle - Bubble Gradient Painter angle

getBubbleGradientAngle

public int getBubbleGradientAngle()
get Bubble Gradient Painter angle

Returns:
int Bubble Gradient Painter angle

setBubbleTooltipText

public void setBubbleTooltipText(java.lang.String tooltip)
set Bubble Tooltip text

Parameters:
tooltip - String representing Bubble tooltip text

getBubbleTooltipText

public java.lang.String getBubbleTooltipText()
get Bubble Tooltip Text

Returns:
String String Object representing Bubble Tooltip Text

ElegantJCharts Java API Specification v2.0

For any feedback, suggestion, or query, please revert back to support@elegantcharts.com

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.