NetCharts Pro

netcharts.pro.charts.bubble
Class NFBubblechart

java.lang.Object
  extended by netcharts.pro.common.NFGraph
      extended by netcharts.pro.common.zoomable.NFZoomableChart
          extended by netcharts.pro.common.rectangular.NFDataChart
              extended by netcharts.pro.charts.bubble.NFBubblechart
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, NFDragObserver, NFDwellObserver, NFGraphObserver, NFScrollObserver

public class NFBubblechart
extends NFDataChart

Represents a bubble chart. Provides the ability to configure the chart via object manipulation or directly from CDL.

See Also:
Serialized Form

Field Summary
static int BUBBLE_SYMBOL_ANIMATION_STYLE_FADE
          Bubble symbol animation style fade
static int BUBBLE_SYMBOL_ANIMATION_STYLE_NONE
          No bubble symbol animation style
static int BUBBLE_SYMBOL_ANIMATION_STYLE_SCALE
          Bubble symbol animation style scale
static int LINE_ANIMATION_STYLE_BEND
          Line animation style bend
static int LINE_ANIMATION_STYLE_FADE
          Line animation style fade
static int LINE_ANIMATION_STYLE_NONE
          No line animation style
 
Fields inherited from class netcharts.pro.common.rectangular.NFDataChart
GRID_ANIMATION_STYLE_FADE, GRID_ANIMATION_STYLE_NONE
 
Fields inherited from class netcharts.pro.common.zoomable.NFZoomableChart
NOZOOM, zoomActionsMap, ZOOMIN, ZOOMOUT
 
Fields inherited from class netcharts.pro.common.NFGraph
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BAR3D, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, DWELL_ANIMATION_STYLE_HIGHLIGHT, DWELL_ANIMATION_STYLE_NONE, FADE, HEATMAP, HIGHLIGHT, HISTOGRAM, LABEL_ANIMATION_STYLE_FADE, LABEL_ANIMATION_STYLE_NONE, LEGEND_ANIMATION_STYLE_FADE, LEGEND_ANIMATION_STYLE_NONE, LEGEND_DWELL_ANIMATION_STYLE_HIGHLIGHT, LEGEND_DWELL_ANIMATION_STYLE_NONE, LINE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY
 
Constructor Summary
NFBubblechart()
          Constructs a default chart object.
NFBubblechart(javax.swing.JPanel panel)
          Constructs a chart object on the given JPanel.
NFBubblechart(javax.swing.JPanel panel, java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
NFBubblechart(java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
 
Method Summary
 void addBubbleSet(NFBubbleSet bubbleSet)
          Adds a bubble set to the current list of bubblesets.
 NFBubbleSeries getBubbleSeries()
          Get the bubble series.
 int getBubbleSymbolAnimationStyle()
          Get the bubble symbol animation style.
 java.lang.String getDefaultData()
          Returns a string of default data
 int getLineAnimationStyle()
          Get the line animation style.
 NFDropShadow getLineDropShadow()
          Get the drop shadow for the lines
 NFSpotlightSeries getLineSymbolSpotlightSeries()
          Get the line symbol spotlight series.
 NFModalLabel getLineValueLabel()
          Get the text style to use for line labels.
 NFRegion getLineValueLabelRegion()
          Get the text background style to use for line labels.
 int getType()
          Gets the chart type.
 void resetState()
          Resets all of the parameter values to their initial state.
 void setBubbleSeries(NFBubbleSeries bubbleSeries)
          Set the bubble series.
 void setBubbleSymbolAnimationStyle(int style)
          Set the bubble symbol animation style.
 void setLineAnimationStyle(int style)
          Set the line animation style.
 void setLineDropShadow(NFDropShadow lineDropShadow)
          Set the drop shadow for the lines
 void setLineSymbolSpotlightSeries(NFSpotlightSeries lineSymbolSpotlightSeries)
          Set the line symbol spotlight series.
 void setLineValueLabel(NFModalLabel lineValueLabel)
          Set the text style to use for line labels.
 void setLineValueLabelRegion(NFRegion lineValueRegion)
          Set the text background style to use for line labels.
 void writeChart(java.lang.StringBuffer sb)
          Writes this chart into a string buffer
 void writeExternal(java.io.ObjectOutput out)
          Writes this chart into an object for serialization.
 
Methods inherited from class netcharts.pro.common.rectangular.NFDataChart
addGrid, getAutoscalePad, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridAnimationStyle, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, getXAxis, getYAxis, setAutoscalePad, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridAnimationStyle, setGridDepth, setGridSeries, setLeftAxis, setLeftAxisSeries, setRightAxis, setRightAxisSeries, setTopAxis, setTopAxisSeries
 
Methods inherited from class netcharts.pro.common.zoomable.NFZoomableChart
getMouseControlDown, getMouseMetaDown, getMouseShiftDown, getZoomingEnabled, setMouseControlDown, setMouseMetaDown, setMouseShiftDown, setZoomingEnabled, zoom
 
Methods inherited from class netcharts.pro.common.NFGraph
addChartActionListener, addGraphObserver, addNote, addPropertyChangeListener, display, dwellDisplay, dwellPress, finalize, getActiveClicks, getAlwaysUpdate, getAntiAlias, getAntiAliasMode, getBackgroundActiveLabel, getBackgroundFillPattern, getBackgroundRegion, getBuildAnimationEnabled, getCDL, getChartElementSpacing, getChartName, getChartSize, getColorTable, getDataActiveLabelsEnabled, getDwell, getDwellAnimation, getDwellAnimationHighlight, getDwellAnimationStyle, getDwellOffset, getErrors, getFooter, getGraph, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphGraphics, getHeader, getLabelAnimationStyle, getLeftTitle, getLegend, getLegendAnimationStyle, getLegendDwellAnimation, getLegendDwellAnimationHighlight, getLegendDwellAnimationStyle, getLicenseActivationKey, getMetaData, getMinimumSize, getNoteSeries, getNumberFormat, getNumErrors, getPanel, getPlotArea, getPreferredSize, getRightTitle, getRootPanel, getRubberband, getScaleFactor, getTitleSpacing, getToggleDataVisibility, getVersion, graphDrawn, graphTooSmall, initializeFromFile, initializeFromString, initializeFromURL, loadFromTemplate, loadFromTemplate, loadFromTemplate, loadLicenseFile, paint, postDrag, postScroll, preDrag, preScroll, readExternal, removeChartActionListener, removeGraphObserver, removePropertyChangeListener, sendData, sendData, sendData, sendData, sendUpdate, set, set, set, set, set, set, setActiveClicks, setAlwaysUpdate, setAntiAlias, setAntiAliasMode, setBackgroundActiveLabel, setBackgroundFillPattern, setBackgroundRegion, setBuildAnimationEnabled, setChartElementSpacing, setChartName, setChartSize, setColorTable, setDataActiveLabelsEnabled, setDocumentBase, setDwell, setDwellAnimation, setDwellAnimationHighlight, setDwellAnimationStyle, setDwellOffset, setFooter, setHeader, setLabelAnimationStyle, setLeftTitle, setLegend, setLegendAnimationStyle, setLegendDwellAnimation, setLegendDwellAnimationHighlight, setLegendDwellAnimationStyle, setLicenseKey, setLicenseKey, setLicenseLocation, setMetaData, setNoteSeries, setNumberFormat, setParentApplet, setPlotArea, setRightTitle, setRubberband, setScaleFactor, setSize, setSize, setTitleSpacing, setToggleDataVisibility, start, stop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUBBLE_SYMBOL_ANIMATION_STYLE_NONE

public static final int BUBBLE_SYMBOL_ANIMATION_STYLE_NONE
No bubble symbol animation style

See Also:
Constant Field Values

BUBBLE_SYMBOL_ANIMATION_STYLE_SCALE

public static final int BUBBLE_SYMBOL_ANIMATION_STYLE_SCALE
Bubble symbol animation style scale

See Also:
Constant Field Values

BUBBLE_SYMBOL_ANIMATION_STYLE_FADE

public static final int BUBBLE_SYMBOL_ANIMATION_STYLE_FADE
Bubble symbol animation style fade

See Also:
Constant Field Values

LINE_ANIMATION_STYLE_NONE

public static final int LINE_ANIMATION_STYLE_NONE
No line animation style

See Also:
Constant Field Values

LINE_ANIMATION_STYLE_BEND

public static final int LINE_ANIMATION_STYLE_BEND
Line animation style bend

See Also:
Constant Field Values

LINE_ANIMATION_STYLE_FADE

public static final int LINE_ANIMATION_STYLE_FADE
Line animation style fade

See Also:
Constant Field Values
Constructor Detail

NFBubblechart

public NFBubblechart()
Constructs a default chart object.


NFBubblechart

public NFBubblechart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel.

Parameters:
panel - Panel to draw chart on.

NFBubblechart

public NFBubblechart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel.

Parameters:
initProperties - A java.util.Properties object containing the set of runtime properties to use when generating the chart. See the netcharts.pro.common.NFGraph(java.util.Properties) constructor for a list of valid Properties.

NFBubblechart

public NFBubblechart(javax.swing.JPanel panel,
                     java.util.Properties initProperties)
Constructs a chart object on the given JPanel.

Parameters:
panel - Panel to draw chart on.
initProperties - A java.util.Properties object containing the set of runtime properties to use when generating the chart. See the netcharts.pro.common.NFGraph(java.util.Properties) constructor for a list of valid Properties.
Method Detail

getDefaultData

public java.lang.String getDefaultData()
Returns a string of default data

Specified by:
getDefaultData in class NFGraph
Returns:
The default data used to initialize a chart.

getType

public int getType()
Gets the chart type.

Specified by:
getType in class NFGraph
Returns:
the type of this chart, always netcharts.pro.charts.bubble.NFGraph.XY

addBubbleSet

public void addBubbleSet(NFBubbleSet bubbleSet)
                  throws NFParamException
Adds a bubble set to the current list of bubblesets.

Parameters:
bubbleSet - The bubbleset to add.
Throws:
NFParamException

setBubbleSeries

public void setBubbleSeries(NFBubbleSeries bubbleSeries)
                     throws NFParamException
Set the bubble series. This is a vector of NFBubbleSets. To set a property on the bubble series, you must first retrieve the series, then set the property (properties) and finally set the bubble series.
     NFBubblechart chart = new NFBubblechart();
     NFBubbleSeries bs = chart.getBubbleSeries();
     NFBubbleSet set = (NFBubbleSet)bs.elementAt(0);
     // Set some of the properties on the NFBubbleSet
     ...
     bs.setElementAt(set, 0);
     chart.setBubbleSeries(bs);
 

Parameters:
bubbleSeries -
Throws:
NFParamException

getBubbleSeries

public NFBubbleSeries getBubbleSeries()
Get the bubble series. This is a vector of NFBubbleSets. To set a property on the bubble series, you must first retrieve the series, then set the property (properties) and finally set the bubble series.
     NFBubblechart chart = new NFBubblechart();
     NFBubbleSeries bs = chart.getBubbleSeries();
     NFBubbleSet set = (NFBubbleSet)bs.elementAt(0);
     // Set some of the properties on the NFBubbleSet
     ...
     bs.setElementAt(set, 0);
     chart.setBubbleSeries(bs);
 

Returns:
bubbleSeries

setLineValueLabel

public void setLineValueLabel(NFModalLabel lineValueLabel)
Set the text style to use for line labels.

Parameters:
lineValueLabel - Text style.

getLineValueLabel

public NFModalLabel getLineValueLabel()
Get the text style to use for line labels.

Returns:
text style or null if not defined.

setLineValueLabelRegion

public void setLineValueLabelRegion(NFRegion lineValueRegion)
Set the text background style to use for line labels.

Parameters:
lineValueRegion - Text background style.

getLineValueLabelRegion

public NFRegion getLineValueLabelRegion()
Get the text background style to use for line labels.

Returns:
text background style.

setBubbleSymbolAnimationStyle

public void setBubbleSymbolAnimationStyle(int style)
Set the bubble symbol animation style.

If the value passed is not a valid bubble symbol animation style, BUBBLE_SYMBOL_ANIMATION_STYLE_NONE will be used.

Parameters:
style - One of BUBBLE_SYMBOL_ANIMATION_STYLE_NONE (default), BUBBLE_SYMBOL_ANIMATION_STYLE_SCALE or BUBBLE_SYMBOL_ANIMATION_STYLE_FADE

getBubbleSymbolAnimationStyle

public int getBubbleSymbolAnimationStyle()
Get the bubble symbol animation style.

Returns:
type One of BUBBLE_SYMBOL_ANIMATION_STYLE_NONE (default), BUBBLE_SYMBOL_ANIMATION_STYLE_SCALE or BUBBLE_SYMBOL_ANIMATION_STYLE_FADE

setLineAnimationStyle

public void setLineAnimationStyle(int style)
Set the line animation style.

If the value passed is not a valid line animation style, LINE_ANIMATION_STYLE_NONE will be used.

Parameters:
style - One of LINE_ANIMATION_STYLE_NONE (default), LINE_ANIMATION_STYLE_BEND or LINE_ANIMATION_STYLE_FADE

getLineAnimationStyle

public int getLineAnimationStyle()
Get the line animation style.

Returns:
type One of LINE_ANIMATION_STYLE_NONE (default), LINE_ANIMATION_STYLE_BEND or LINE_ANIMATION_STYLE_FADE

setLineDropShadow

public void setLineDropShadow(NFDropShadow lineDropShadow)
Set the drop shadow for the lines

Parameters:
lineDropShadow - The drop shadow to use under the lines

getLineDropShadow

public NFDropShadow getLineDropShadow()
Get the drop shadow for the lines

Returns:
The drop shadow to use under the lines

setLineSymbolSpotlightSeries

public void setLineSymbolSpotlightSeries(NFSpotlightSeries lineSymbolSpotlightSeries)
Set the line symbol spotlight series.

Parameters:
lineSymbolSpotlightSeries - The series of line symbol spotlights

getLineSymbolSpotlightSeries

public NFSpotlightSeries getLineSymbolSpotlightSeries()
Get the line symbol spotlight series.

Returns:
The series of line symbol spotlights

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Writes this chart into an object for serialization.

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

writeChart

public void writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer

Overrides:
writeChart in class NFDataChart

resetState

public void resetState()
Resets all of the parameter values to their initial state.

Overrides:
resetState in class NFDataChart

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2011
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 28, 2011