NetCharts Pro

netcharts.pro.charts.pie
Class NFAbstractPiechart

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

public abstract class NFAbstractPiechart
extends NFSizedChart

Represents an abstract 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
NFAbstractPiechart()
          Constructs a default chart object.
NFAbstractPiechart(javax.swing.JPanel panel)
          Constructs a chart object on the given JPanel.
NFAbstractPiechart(javax.swing.JPanel panel, java.util.Properties initProperties)
          Constructs a chart object on the given JPanel with the specified properties.
NFAbstractPiechart(java.util.Properties initProperties)
          Constructs a chart object with the specified properties.
 
Method Summary
 int getDepth()
          Get 3DDepth
 boolean getPieSquare()
          Get pie square
 NFLine getSliceBorder()
          Get sliceBorder for this pie chart
 NFVector getSliceFillPatterns()
          Get slice fill patterns
 NFSliceLabel getSliceLabel()
          Get sliceLabel object for this pie chart
 void resetState()
          Resets all of the parameter values to their initial state.
 void setDepth(int depth)
          Set 3DDepth
 void setPieSize(int minWidth, int minHeight, int maxWidth, int maxHeight)
          Set the minimum and maximum size of the Piechart.
 void setPieSquare(boolean pieSquare)
          Set pie square
 void setSliceBorder(NFLine sliceBorder)
          Set border for this pie chart
 void setSliceFillPatterns(NFVector sliceFillPatterns)
          Set slice fill patterns
 void setSliceLabel(NFSliceLabel label)
          Set sliceLabel object for this pie chart
 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.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, getDefaultData, 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, getType, 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

NFAbstractPiechart

public NFAbstractPiechart()
Constructs a default chart object.

NFAbstractPiechart

public NFAbstractPiechart(java.util.Properties initProperties)
Constructs a chart object with the specified properties.
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.

NFAbstractPiechart

public NFAbstractPiechart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel.
Parameters:
panel - Panel to draw chart on.

NFAbstractPiechart

public NFAbstractPiechart(javax.swing.JPanel panel,
                          java.util.Properties initProperties)
Constructs a chart object on the given JPanel with the specified properties.
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

setPieSize

public void setPieSize(int minWidth,
                       int minHeight,
                       int maxWidth,
                       int maxHeight)
                throws NFParamException
Set the minimum and maximum size of the Piechart. To specify no value, set to -1.
Parameters:
minWidth - The minimum width of the Piechart.
minHeight - The minimum height of the Piechart.
maxWidth - The maximum width of the Piechart.
maxHeight - The maximum height of the Piechart.

setSliceLabel

public void setSliceLabel(NFSliceLabel label)
Set sliceLabel object for this pie chart
Parameters:
label - Contains several elements that characterize how slice labels should be shown.

getSliceLabel

public NFSliceLabel getSliceLabel()
Get sliceLabel object for this pie chart
Returns:
label Contains several elements that characterize how slice labels should be shown.

setSliceBorder

public void setSliceBorder(NFLine sliceBorder)
Set border for this pie chart
Parameters:
sliceBorder - The line style to use for slice border lines

getSliceBorder

public NFLine getSliceBorder()
Get sliceBorder for this pie chart
Returns:
sliceBorder The line style to use for slice border lines

setDepth

public void setDepth(int depth)
Set 3DDepth
Parameters:
depth - 3D shadow depth

getDepth

public int getDepth()
Get 3DDepth
Returns:
depth 3D shadow depth

setPieSquare

public void setPieSquare(boolean pieSquare)
Set pie square
Parameters:
pieSquare - When true, the pie will always have a consistent width and height. When false, the pie will attempt to use all available width and height

getPieSquare

public boolean getPieSquare()
Get pie square
Returns:
pieSquare When true, the pie will always have a consistent width and height. When false, the pie will attempt to use all available width and height

setSliceFillPatterns

public void setSliceFillPatterns(NFVector sliceFillPatterns)
                          throws NFParamException
Set slice fill patterns
Parameters:
input - A NFVector of NFFillPatterns corresponding to each slice.

getSliceFillPatterns

public NFVector getSliceFillPatterns()
Get slice fill patterns
Parameters:
input - A NFVector of NFFillPatterns corresponding to each slice.

writeExternal

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

writeChart

public void writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer
Overrides:
writeChart in class NFSizedChart

resetState

public void resetState()
Resets all of the parameter values to their initial state.
Overrides:
resetState in class NFSizedChart

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