|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFGraph
netcharts.pro.common.circular.NFSizedChart
netcharts.pro.charts.pie.NFAbstractPiechart
public abstract class NFAbstractPiechart
Represents an abstract pie chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary | |
---|---|
static int |
SLICE_ANIMATION_STYLE_FADE
Slice animation style fade |
static int |
SLICE_ANIMATION_STYLE_GROW
Slice animation style grow |
static int |
SLICE_ANIMATION_STYLE_NONE
No slice animation style |
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 | |
---|---|
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 | |
---|---|
NFVector |
getDataLabels()
Get data labels |
int |
getDepth()
Get 3DDepth |
NFDropShadow |
getPieDropShadow()
Get the drop shadow for the pie |
NFPieEdgeHighlightSeries |
getPieEdgeHighlightSeries()
Get the pie edge highlight series. |
NFPieHighlightSeries |
getPieHighlightSeries()
Get the pie highlight series. |
NFSpotlightSeries |
getPieSpotlightSeries()
Get the pie spotlight series. |
boolean |
getPieSquare()
Get pie square |
int |
getSliceAnimationStyle()
Get the slice animation style. |
NFLine |
getSliceBorder()
Get sliceBorder for this pie chart |
NFVector |
getSliceColors()
Get slice colors |
NFVector |
getSliceFillPatterns()
Get slice fill patterns |
NFSliceLabel |
getSliceLabel()
Get sliceLabel object for this pie chart |
boolean |
getSliceSlideEnabled()
Returns whether a pie slice will slide out when clicking on it true enable slice slide false disable slice slide |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setDataLabels(NFVector dataLabels)
Set data labels |
void |
setDepth(int depth)
Set 3DDepth |
void |
setPieDropShadow(NFDropShadow pieDropShadow)
Set the drop shadow for the pie |
void |
setPieEdgeHighlightSeries(NFPieEdgeHighlightSeries pieEdgeHighlightSeries)
Set the pie edge highlight series. |
void |
setPieHighlightSeries(NFPieHighlightSeries pieHighlightSeries)
Set the pie highlight series. |
void |
setPieSize(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Set the minimum and maximum size of the Piechart. |
void |
setPieSpotlightSeries(NFSpotlightSeries pieSpotlightSeries)
Set the pie spotlight series. |
void |
setPieSquare(boolean pieSquare)
Set pie square |
void |
setSliceAnimationStyle(int style)
Set the slice animation style. |
void |
setSliceBorder(NFLine sliceBorder)
Set border for this pie chart |
void |
setSliceColors(NFVector sliceColors)
Set slice colors |
void |
setSliceFillPatterns(NFVector sliceFillPatterns)
Set slice fill patterns |
void |
setSliceLabel(NFSliceLabel label)
Set sliceLabel object for this pie chart |
void |
setSliceSlideEnabled(boolean sliceSlideEnabled)
Sets whether a pie slice will slide out when clicking on it |
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SLICE_ANIMATION_STYLE_NONE
public static final int SLICE_ANIMATION_STYLE_GROW
public static final int SLICE_ANIMATION_STYLE_FADE
Constructor Detail |
---|
public NFAbstractPiechart()
public NFAbstractPiechart(java.util.Properties initProperties)
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.public NFAbstractPiechart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFAbstractPiechart(javax.swing.JPanel panel, java.util.Properties initProperties)
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 |
---|
public void setPieSize(int minWidth, int minHeight, int maxWidth, int maxHeight) throws NFParamException
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.
NFParamException
public void setSliceLabel(NFSliceLabel label)
label
- Contains several elements that characterize
how slice labels should be shown.public NFSliceLabel getSliceLabel()
public void setSliceBorder(NFLine sliceBorder)
sliceBorder
- The line style to use for slice border linespublic NFLine getSliceBorder()
public void setDepth(int depth)
depth
- 3D shadow depthpublic int getDepth()
public void setPieSquare(boolean pieSquare)
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 heightpublic boolean getPieSquare()
public void setSliceFillPatterns(NFVector sliceFillPatterns)
input
- A NFVector of NFFillPatterns corresponding to each
slice.public NFVector getSliceFillPatterns()
input
- A NFVector of NFFillPatterns corresponding to each
slice.public void setSliceColors(NFVector sliceColors)
input
- A NFVector of Color objects corresponding to each slice.public NFVector getSliceColors()
public void setDataLabels(NFVector dataLabels)
input
- A NFVector of string labels corresponding to each slicepublic NFVector getDataLabels()
public void setPieHighlightSeries(NFPieHighlightSeries pieHighlightSeries)
pieHighlightSeries
- The series of pie highlightspublic NFPieHighlightSeries getPieHighlightSeries()
public void setPieSpotlightSeries(NFSpotlightSeries pieSpotlightSeries)
pieSpotlightSeries
- The series of pie spotlightspublic NFSpotlightSeries getPieSpotlightSeries()
public void setPieDropShadow(NFDropShadow pieDropShadow)
pieDropShadow
- The drop shadow to use under the piepublic NFDropShadow getPieDropShadow()
public void setPieEdgeHighlightSeries(NFPieEdgeHighlightSeries pieEdgeHighlightSeries)
pieEdgeHighlightSeries
- The series of pie edge highlightspublic NFPieEdgeHighlightSeries getPieEdgeHighlightSeries()
public void setSliceAnimationStyle(int style)
If the value passed is not a valid slice animation style, SLICE_ANIMATION_STYLE_NONE will be used.
style
- One of SLICE_ANIMATION_STYLE_NONE (default), SLICE_ANIMATION_STYLE_GROW or SLICE_ANIMATION_STYLE_FADE
public int getSliceAnimationStyle()
SLICE_ANIMATION_STYLE_NONE (default), SLICE_ANIMATION_STYLE_GROW or SLICE_ANIMATION_STYLE_FADE
public void setSliceSlideEnabled(boolean sliceSlideEnabled)
sliceSlideEnabled
- true
enable slice slide false
disable slice slidepublic boolean getSliceSlideEnabled()
true
enable slice slide false
disable slice slide
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFGraph
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFSizedChart
public void resetState()
resetState
in class NFSizedChart
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |