|
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
netcharts.pro.charts.multipie.NFMultiPiechart
public class NFMultiPiechart
Represents a MultiPie chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary | |
---|---|
static int |
BOTTOM
Pie title bottom location |
static int |
DEFAULT_PIE_MARGIN
Pie margin default value |
static int |
LEFT
Pie title left location |
static java.util.Hashtable |
pieTitleLocationMap
Pie title location hashtable |
static int |
RIGHT
Pie title right location |
static int |
TOP
Pie title top location |
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 | |
---|---|
NFMultiPiechart()
Constructs a default chart object. |
|
NFMultiPiechart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFMultiPiechart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel with the specified properties. |
|
NFMultiPiechart(java.util.Properties initProperties)
Constructs a chart object with the specified properties. |
Method Summary | |
---|---|
void |
addPie(NFPie pie)
Adds an NFPie object to the NFPieSeries. |
void |
addSliceSet(NFSliceSet sliceSet)
Adds a slice set to the current list of slice sets. |
boolean |
getBestFit()
Get the best fit layout flag. |
java.lang.String |
getDefaultData()
Gets the default data - used to initialize IDE editors |
NFPieLayout |
getPieLayout()
Get the pie layout object which represents how each pie is laid out in the chart. |
int |
getPieMargin()
Get the margin in between each pie. |
NFPieSeries |
getPieSeries()
Get the pie series. |
int |
getPieTitleLocation()
Get the pie title location. |
NFSliceSeries |
getSliceSeries()
Get the slice series. |
int |
getType()
Gets the type of this chart. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setBestFit(boolean bestFit)
Set the best fit layout flag. |
void |
setPieLayout(NFPieLayout pieLayout)
Set the pie layout object which represents how each pie is laid out in the chart. |
void |
setPieMargin(int pieMargin)
Set the margin in between each pie. |
void |
setPieSeries(NFPieSeries pieSeries)
Set the pie series. |
void |
setPieTitleLocation(int titleLocation)
Set the pie title location. |
void |
setSliceSeries(NFSliceSeries sliceSeries)
Set the slice series. |
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 TOP
public static final int BOTTOM
public static final int LEFT
public static final int RIGHT
public static final int DEFAULT_PIE_MARGIN
public static java.util.Hashtable pieTitleLocationMap
Constructor Detail |
---|
public NFMultiPiechart()
public NFMultiPiechart(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 NFMultiPiechart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFMultiPiechart(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 setBestFit(boolean bestFit)
bestFit
- best fit layout flagpublic boolean getBestFit()
public void setPieTitleLocation(int titleLocation)
If the title location value is not valid, then the default value of TOP
is used.
titleLocation
- One of TOP, BOTTOM, LEFT or RIGHT
public int getPieTitleLocation()
TOP
.
TOP, BOTTOM, LEFT or RIGHT
public void setSliceSeries(NFSliceSeries sliceSeries)
NFMultiPiechart chart = new NFMultiPiechart(); NFSliceSeries sliceSeries = chart.getSliceSeries(); NFSliceSet set = (NFSliceSet)sliceSeries.elementAt(0); // Set some of the properties on the NFSliceSet ... sliceSeries.setElementAt(set, 0); chart.setSliceSeries(sliceSeries);
sliceSeries
- slice seriespublic NFSliceSeries getSliceSeries()
NFMultiPiechart chart = new NFMultiPiechart(); NFSliceSeries sliceSeries = chart.getSliceSeries(); NFSliceSet set = (NFSliceSet)sliceSeries.elementAt(0); // Set some of the properties on the NFSliceSet ... sliceSeries.setElementAt(set, 0); chart.setSliceSeries(sliceSeries);
public void addSliceSet(NFSliceSet sliceSet)
sliceSet
- The slice set to add.public void setPieSeries(NFPieSeries pieSeries)
NFMultiPiechart chart = new NFMultiPiechart(); NFPieSeries pieSeries = chart.getPieSeries(); NFPie pie = (NFPie)pieSeries.elementAt(0); // Set some of the properties on the NFPie ... pieSeries.setElementAt(pie, 0); chart.setPieSeries(pieSeries);
pieSeries
- NFPieSeries objectpublic NFPieSeries getPieSeries()
NFMultiPiechart chart = new NFMultiPiechart(); NFPieSeries pieSeries = chart.getPieSeries(); NFPie pie = (NFPie)pieSeries.elementAt(0); // Set some of the properties on the NFPie ... pieSeries.setElementAt(pie, 0); chart.setPieSeries(pieSeries);
public void addPie(NFPie pie)
pie
- The NFPie object to add.public void setPieLayout(NFPieLayout pieLayout)
pieLayout
- the pie layout objectpublic NFPieLayout getPieLayout()
public void setPieMargin(int pieMargin)
If the pie margin value is less than 0, then DEFAULT_PIE_MARGIN
will be used.
pieMargin
- pie marginpublic int getPieMargin()
public java.lang.String getDefaultData()
getDefaultData
in class NFGraph
public int getType()
getType
in class NFGraph
netcharts.pro.common.NFGraph.MULTIPIE
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFAbstractPiechart
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFAbstractPiechart
public void resetState()
resetState
in class NFAbstractPiechart
|
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 |