|
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.radar.NFRadarchart
public class NFRadarchart
Represents a radar 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 | |
---|---|
NFRadarchart()
Constructs a default chart object. |
|
NFRadarchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFRadarchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFRadarchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
void |
addAxis(NFRadialAxis axis)
Adds an axis to the current list of radial axes. |
void |
addAxis(java.lang.String axisName,
double min,
double max,
double step)
Adds an axis to the current list of radial axes. |
NFRadialAxisSeries |
getAxisSeries()
Gets the radial axis series. |
double |
getCenterRadius()
Gets the gap in the center of the radar chart as a percentage |
java.lang.String |
getDefaultData()
Returns a string of default data |
NFVector |
getGridSeries()
Gets the grid objects for this chart. |
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. |
boolean |
getRadarSquare()
Get radar 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 |
setCenterRadius(double centerRadius)
Sets the gap in the center of the radar chart as a percentage |
void |
setGridSeries(NFVector gridSeries)
Sets the grid objects for this chart. |
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 |
setRadarSize(int minWidth,
int minHeight,
int maxWidth,
int maxHeight)
Set the minimum and maximum size of the Radarchart. |
void |
setRadarSquare(boolean radarSquare)
Set radar 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 NFRadarchart()
public NFRadarchart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFRadarchart(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 NFRadarchart(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 NFGraph
public int getType()
getType
in class NFGraph
netcharts.pro.charts.radar.NFGraph.RADAR
public void addAxis(NFRadialAxis axis) throws NFParamException
axis
- The axis to add.
NFParamException
public void addAxis(java.lang.String axisName, double min, double max, double step) throws NFParamException
min
- Minimum valuemax
- Maximum valuestep
- Tic step
NFParamException
public void setAxisSeries(NFRadialAxisSeries axisSeries) throws NFParamException
NFRadarchart chart = new NFRadarchart(); 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
-
NFParamException
public NFRadialAxisSeries getAxisSeries()
NFRadarchart chart = new NFRadarchart(); 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
NFRadarchart chart = new NFRadarchart(); 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
- Vector of NFRadialGrid objects
NFParamException
public NFVector getGridSeries()
NFRadarchart chart = new NFRadarchart(); 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 setRadarSquare(boolean radarSquare) throws NFParamException
radarSquare
- When true, the radar area will always have a
consistent width and height. When false, the radar area will
attempt to use all available width and height
NFParamException
public boolean getRadarSquare()
public void setCenterRadius(double centerRadius)
centerRadius
- public double getCenterRadius()
public void setLineSeries(NFRadialLineSeries lineSeries) throws NFParamException
NFRadarchart chart = new NFRadarchart(); 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
-
NFParamException
public NFRadialLineSeries getLineSeries()
NFRadarchart chart = new NFRadarchart(); 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 setRadarSize(int minWidth, int minHeight, int maxWidth, int maxHeight) throws NFParamException
minWidth
- The minimum width of the Radarchart.minHeight
- The minimum height of the Radarchart.maxWidth
- The maximum width of the Radarchart.maxHeight
- The maximum height of the Radarchart.
NFParamException
public 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_FADE
public 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.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 |