NetCharts Pro

netcharts.pro.charts.pie
Class NFPiechart

java.lang.Object
  extended by netcharts.pro.common.NFGraph
      extended by netcharts.pro.common.circular.NFSizedChart
          extended by netcharts.pro.charts.pie.NFAbstractPiechart
              extended by netcharts.pro.charts.pie.NFPiechart
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, NFDragObserver, NFDwellObserver, NFGraphObserver, NFScrollObserver

public class NFPiechart
extends NFAbstractPiechart

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class netcharts.pro.charts.pie.NFAbstractPiechart
SLICE_ANIMATION_STYLE_FADE, SLICE_ANIMATION_STYLE_GROW, SLICE_ANIMATION_STYLE_NONE
 
Fields inherited from class netcharts.pro.common.circular.NFSizedChart
SIZE_MAX_HEIGHT_DEFAULT, SIZE_MAX_WIDTH_DEFAULT, SIZE_MIN_HEIGHT_DEFAULT, SIZE_MIN_WIDTH_DEFAULT
 
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
NFPiechart()
          Constructs a default chart object.
NFPiechart(javax.swing.JPanel panel)
          Constructs a chart object on the given JPanel.
NFPiechart(javax.swing.JPanel panel, java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
NFPiechart(java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
 
Method Summary
 NFVector getActiveLabels()
          Get active labels
 int getAngle()
          Get starting angle
 NFVector getDataSet()
          Get data set
 java.lang.String getDefaultData()
          Gets the default data - used to initialize IDE editors
 NFVector getSlicePos()
          Get slice positions
 int getType()
          Gets the type of this chart.
 void resetState()
          Resets all of the parameter values to their initial state.
 void setActiveLabels(NFVector activeLabels)
          Set active labels
 void setAngle(int angle)
          Set starting angle
 void setDataSet(NFVector dataSet)
          Set data set
 void setSlicePos(NFVector slicePos)
          Set slice positions
 void writeChart(java.lang.StringBuffer sb)
          Writes this chart into a string buffer
 
Methods inherited from class netcharts.pro.charts.pie.NFAbstractPiechart
getDataLabels, getDepth, getPieDropShadow, getPieEdgeHighlightSeries, getPieHighlightSeries, getPieSpotlightSeries, getPieSquare, getSliceAnimationStyle, getSliceBorder, getSliceColors, getSliceFillPatterns, getSliceLabel, getSliceSlideEnabled, setDataLabels, setDepth, setPieDropShadow, setPieEdgeHighlightSeries, setPieHighlightSeries, setPieSize, setPieSpotlightSeries, setPieSquare, setSliceAnimationStyle, setSliceBorder, setSliceColors, setSliceFillPatterns, setSliceLabel, setSliceSlideEnabled, writeExternal
 
Methods inherited from class netcharts.pro.common.circular.NFSizedChart
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth
 
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
 

Constructor Detail

NFPiechart

public NFPiechart()
Constructs a default chart object.


NFPiechart

public NFPiechart(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.

NFPiechart

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

Parameters:
panel - Panel to draw chart on.

NFPiechart

public NFPiechart(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

setAngle

public void setAngle(int angle)
Set starting angle

Parameters:
angle - In degrees 0-359

getAngle

public int getAngle()
Get starting angle

Returns:
angle In degrees 0-359

setDataSet

public void setDataSet(NFVector dataSet)
                throws NFParamException
Set data set

Parameters:
input - A NFVector of numeric data
Throws:
NFParamException

getDataSet

public NFVector getDataSet()
Get data set

Returns:
vector A NFVector of numeric data

setSlicePos

public void setSlicePos(NFVector slicePos)
                 throws NFParamException
Set slice positions

Parameters:
input - A NFVector of numeric values corresponding to each slice position.
Throws:
NFParamException

getSlicePos

public NFVector getSlicePos()
Get slice positions

Returns:
vector A NFVector of numeric values corresponding to each slice position.

setActiveLabels

public void setActiveLabels(NFVector activeLabels)
                     throws NFParamException
Set active labels

Parameters:
input - A NFVector of NFActiveLabels corresponding to each slice.
Throws:
NFParamException

getActiveLabels

public NFVector getActiveLabels()
Get active labels

Returns:
input A NFVector of NFActiveLabels corresponding to each slice.

getDefaultData

public java.lang.String getDefaultData()
Gets the default data - used to initialize IDE editors

Specified by:
getDefaultData in class NFGraph
Returns:
defaultData

getType

public int getType()
Gets the type of this chart.

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

writeChart

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

Overrides:
writeChart in class NFAbstractPiechart

resetState

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

Overrides:
resetState in class NFAbstractPiechart

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