NetCharts Pro

netcharts.pro.charts.pie
Class NFPiechart

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

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

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, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, HEATMAP, 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 getDataLabels()
          Get data labels
 NFVector getDataSet()
          Get data set
 java.lang.String getDefaultData()
          Gets the default data - used to initialize IDE editors
 NFVector getSliceColors()
          Get slice colors
 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 setDataLabels(NFVector dataLabels)
          Set data labels
 void setDataSet(NFVector dataSet)
          Set data set
 void setSliceColors(NFVector sliceColors)
          Set slice colors
 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
getDepth, getPieSquare, getSliceBorder, getSliceFillPatterns, getSliceLabel, setDepth, setPieSize, setPieSquare, setSliceBorder, setSliceFillPatterns, setSliceLabel, 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, getBackgroundFillPattern, getBackgroundRegion, getCDL, getChartElementSpacing, getChartName, getChartSize, getColorTable, getDataActiveLabelsEnabled, getDwell, getDwellOffset, getErrors, getFooter, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphGraphics, getHeader, getLeftTitle, getLegend, getMetaData, getMinimumSize, getNoteSeries, getNumberFormat, getNumErrors, getPanel, getPlotArea, getPreferredSize, getRightTitle, getRootPanel, getScaleFactor, 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, setBackgroundFillPattern, setBackgroundRegion, setChartElementSpacing, setChartName, setChartSize, setColorTable, setDataActiveLabelsEnabled, setDocumentBase, setDwell, setDwellOffset, setFooter, setHeader, setLeftTitle, setLegend, setLicenseKey, setMetaData, setNoteSeries, setNumberFormat, setParentApplet, setPlotArea, setRightTitle, setScaleFactor, setSize, setSize, 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

getDataSet

public NFVector getDataSet()
Get data set
Returns:
vector A NFVector of numeric data

setDataLabels

public void setDataLabels(NFVector dataLabels)
                   throws NFParamException
Set data labels
Parameters:
input - A NFVector of string labels corresponding to each slice

getDataLabels

public NFVector getDataLabels()
Get data labels
Returns:
vector A NFVector of string labels corresponding to each slice

setSlicePos

public void setSlicePos(NFVector slicePos)
                 throws NFParamException
Set slice positions
Parameters:
input - A NFVector of numeric values corresponding to each slice position.

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.

getActiveLabels

public NFVector getActiveLabels()
Get active labels
Returns:
input A NFVector of NFActiveLabels corresponding to each slice.

setSliceColors

public void setSliceColors(NFVector sliceColors)
                    throws NFParamException
Set slice colors
Parameters:
input - A NFVector of Color objects corresponding to each slice.

getSliceColors

public NFVector getSliceColors()
Get slice colors
Returns:
input A NFVector of Color objects corresponding to each slice.

getDefaultData

public java.lang.String getDefaultData()
Gets the default data - used to initialize IDE editors
Overrides:
getDefaultData in class NFGraph
Returns:
defaultData

getType

public int getType()
Gets the type of this chart.
Overrides:
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.
15825 Shady Grove Rd.
Suite 20
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2006
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: Apr 14, 2006