|
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.polar.NFPolarchart
public class NFPolarchart
Represents a polar chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
| Field Summary | |
|---|---|
static int |
LINE_SYMBOL_ANIMATION_STYLE_FADE
Line symbol animation style fade |
static int |
LINE_SYMBOL_ANIMATION_STYLE_NONE
No line symbol animation style |
static int |
LINE_SYMBOL_ANIMATION_STYLE_SCALE
Line symbol animation style scale |
| 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 | |
|---|---|
NFPolarchart()
Constructs a default chart object. |
|
NFPolarchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFPolarchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFPolarchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
| Method Summary | |
|---|---|
void |
addAxis(double min,
double max,
double step)
Adds a axis to the current list of radial axes. |
void |
addAxis(NFRadialAxis axis)
Adds a axis to the current list of radial axes. |
NFRadialAxisSeries |
getAxisSeries()
Gets the radial axis series. |
java.lang.String |
getDefaultData()
Returns a string of default data |
NFVector |
getGridSeries()
Gets the grid objects for this chart. |
NFModalLabel |
getLabel()
Gets the exterior label style. |
NFFormat |
getLabelFormat()
Gets the exterior label numerical formatting. |
double |
getLabelStep()
Get exterior label step size. |
NFRadialLineSeries |
getLineSeries()
Get the line series. |
int |
getLineSymbolAnimationStyle()
Get the line symbol animation style. |
NFModalLabel |
getLineValueLabel()
Get the text style to use for line labels. |
NFRegion |
getLineValueLabelRegion()
Get the text background style to use for line labels. |
NFAxisRange |
getPolarScale()
Get the range for all radial axes |
boolean |
getPolarSquare()
Get polar square |
int |
getType()
Gets the chart type. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setAxisSeries(NFRadialAxisSeries axisSeries)
Sets the radial axis series. |
void |
setGridSeries(NFVector gridSeries)
Sets the grid objects for this chart. |
void |
setLabel(NFModalLabel label)
Sets the exterior label style. |
void |
setLabelFormat(NFFormat labelFormat)
Sets the exterior label numerical formatting. |
void |
setLabelStep(double labelStep)
Set exterior label step size. |
void |
setLineSeries(NFRadialLineSeries lineSeries)
Set the line series. |
void |
setLineSymbolAnimationStyle(int style)
Set the line symbol animation style. |
void |
setLineValueLabel(NFModalLabel lineValueLabel)
Set the text style to use for line labels. |
void |
setLineValueLabelRegion(NFRegion lineValueRegion)
Set the text background style to use for line labels. |
void |
setPolarScale(NFAxisRange polarScale)
Set the range for all radial axes. |
void |
setPolarSize(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Set the minimum and maximum size of the Polarchart. |
void |
setPolarSquare(boolean polarSquare)
Set polar square |
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 LINE_SYMBOL_ANIMATION_STYLE_NONE
public static final int LINE_SYMBOL_ANIMATION_STYLE_SCALE
public static final int LINE_SYMBOL_ANIMATION_STYLE_FADE
| Constructor Detail |
|---|
public NFPolarchart()
public NFPolarchart(javax.swing.JPanel panel)
panel - Panel to draw chart on.public NFPolarchart(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 NFPolarchart(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 java.lang.String getDefaultData()
getDefaultData in class NFGraphpublic int getType()
getType in class NFGraphnetcharts.pro.charts.polar.NFGraph.POLAR
public void addAxis(NFRadialAxis axis)
throws NFParamException
axis - The axis to add.
NFParamException
public void addAxis(double min,
double max,
double step)
throws NFParamException
min - Minimum valuemax - Maximum valuestep - Tic step
NFParamException
public void setAxisSeries(NFRadialAxisSeries axisSeries)
throws NFParamException
NFPolarchart chart = new NFPolarchart();
NFRadialAxisSeries ras = chart.getAxisSeries();
NFRadialAxis axis = (NFRadialAxis)ras.elementAt(0);
// Set some of the properties on the NFDial
...
ras.setElementAt(axis, 0);
chart.setAxisSeries(ras);
axisSeries -
NFParamExceptionpublic NFRadialAxisSeries getAxisSeries()
NFPolarchart chart = new NFPolarchart();
NFRadialAxisSeries ras = chart.getAxisSeries();
NFRadialAxis axis = (NFRadialAxis)ras.elementAt(0);
// Set some of the properties on the NFDial
...
ras.setElementAt(axis, 0);
chart.setAxisSeries(ras);
public void setGridSeries(NFVector gridSeries)
throws NFParamException
NFPolarchart chart = new NFPolarchart();
NFVector gridSeries = chart.getGridSeries();
NFRadialGrid grid = null;
if (gridSeries == null) {
gridSeries = new NFVector();
grid = new NFRadialGrid();
}
else
grid = (NFRadialGrid) gridSeries.elementAt(0);
// Set some of the properties on the NFRadialGrid
...
gridSeries.setElementAt(grid, 0);
chart.setGridSeries(gridSeries);
gridSeries - NFVector of NFRadialGrid objects
NFParamExceptionpublic NFVector getGridSeries()
NFPolarchart chart = new NFPolarchart();
NFVector gridSeries = chart.getGridSeries();
NFRadialGrid grid = null;
if (gridSeries == null) {
gridSeries = new NFVector();
grid = new NFRadialGrid();
}
else
grid = (NFRadialGrid) gridSeries.elementAt(0);
// Set some of the properties on the NFRadialGrid
...
gridSeries.setElementAt(grid, 0);
chart.setGridSeries(gridSeries);
public void setPolarSquare(boolean polarSquare)
throws NFParamException
polarSquare - When true, the polar area will always have a
consistent width and height. When false, the polar area will
attempt to use all available width and height
NFParamExceptionpublic boolean getPolarSquare()
public void setPolarScale(NFAxisRange polarScale)
throws NFParamException
polarScale - The range for all radial axes.
NFParamExceptionpublic NFAxisRange getPolarScale()
public void setLabelStep(double labelStep)
throws NFParamException
labelStep - The exterior label step size.
NFParamExceptionpublic double getLabelStep()
public void setLineSeries(NFRadialLineSeries lineSeries)
throws NFParamException
NFPolarchart chart = new NFPolarchart();
NFRadialLineSeries rls = chart.getLineSeries();
NFLineSet set = (NFLineSet)rls.elementAt(0);
// Set some of the properties on the NFLineSet
...
rls.setElementAt(set, 0);
chart.setLineSeries(rls);
lineSeries -
NFParamExceptionpublic NFRadialLineSeries getLineSeries()
NFPolarchart chart = new NFPolarchart();
NFRadialLineSeries rls = chart.getLineSeries();
NFLineSet set = (NFLineSet)rls.elementAt(0);
// Set some of the properties on the NFLineSet
...
rls.setElementAt(set, 0);
chart.setLineSeries(rls);
public void setLineValueLabel(NFModalLabel lineValueLabel)
lineValueLabel - Text style.public NFModalLabel getLineValueLabel()
public void setLineValueLabelRegion(NFRegion lineValueRegion)
lineValueRegion - Text background style.public NFRegion getLineValueLabelRegion()
public void setLabel(NFModalLabel label)
label - public NFModalLabel getLabel()
public void setLabelFormat(NFFormat labelFormat)
labelFormat - NFFormat object describing how exterior
labels are to be formatted.public NFFormat getLabelFormat()
public void setPolarSize(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
throws NFParamException
minWidth - The minimum width of the Polarchart.minHeight - The minimum height of the Polarchart.maxWidth - The maximum width of the Polarchart.maxHeight - The maximum height of the Polarchart.
NFParamExceptionpublic void setLineSymbolAnimationStyle(int style)
If the value passed is not a valid line symbol animation style, LINE_SYMBOL_ANIMATION_STYLE_NONE will be used.
style - One of LINE_SYMBOL_ANIMATION_STYLE_NONE (default), LINE_SYMBOL_ANIMATION_STYLE_SCALE or LINE_SYMBOL_ANIMATION_STYLE_FADEpublic int getLineSymbolAnimationStyle()
LINE_SYMBOL_ANIMATION_STYLE_NONE (default), LINE_SYMBOL_ANIMATION_STYLE_SCALE or LINE_SYMBOL_ANIMATION_STYLE_FADE
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class NFGraphjava.io.IOExceptionpublic void writeChart(java.lang.StringBuffer sb)
writeChart in class NFSizedChartpublic 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 - 2018 |
Last Modified: Jan 7, 2018 |