|
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.zoomable.NFZoomableChart
netcharts.pro.common.rectangular.NFDataChart
public abstract class NFDataChart
Represents an axis based chart. Provides the attributes common to charts that have axes.
| Field Summary | |
|---|---|
static int |
GRID_ANIMATION_STYLE_FADE
Grid animation style fade |
static int |
GRID_ANIMATION_STYLE_NONE
No grid animation style |
| Fields inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
|---|
NOZOOM, zoomActionsMap, ZOOMIN, ZOOMOUT |
| 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 | |
|---|---|
NFDataChart()
Constructs a default chart object. |
|
NFDataChart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFDataChart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFDataChart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
| Method Summary | |
|---|---|
void |
addGrid(NFGrid grid)
Adds a grid to the grid series. |
double |
getAutoscalePad()
Get the autoscale padding. |
NFAxesSize |
getAxesSizes()
Gets the axes size. |
int |
getAxisThickness()
Get axis thickness - only applies if chart depth is not 0 |
NFAxis |
getBottomAxis()
Gets the bottom axis object. |
NFAxisSeries |
getBottomAxisSeries()
Gets the bottom axis series. |
NFGrid |
getGrid()
Gets the grid object for this chart. |
int |
getGridAnimationStyle()
Get the grid animation style. |
int |
getGridDepth()
Get the 3D depth of the grids. |
NFGridSeries |
getGridSeries()
Gets the grid objects for this chart. |
NFAxis |
getLeftAxis()
Gets the left axis object. |
NFAxisSeries |
getLeftAxisSeries()
Gets the left axis series. |
boolean |
getNoteSeriesDrawnBeforeData()
Get whether or not the NoteSeries should be drawn before the data. |
NFAxis |
getRightAxis()
Gets the right axis object. |
NFAxisSeries |
getRightAxisSeries()
Gets the right axis series. |
NFAxis |
getTopAxis()
Gets the top axis object. |
NFAxisSeries |
getTopAxisSeries()
Gets the top axis series. |
NFAxis |
getXAxis(NFDataSet set)
Gets the X axis object for a dataset. |
NFAxis |
getYAxis(NFDataSet set)
Gets the Y axis object for a dataset. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setAutoscalePad(double autoscalePad)
Set the autoscale padding. |
void |
setAxesSizes(NFAxesSize axesSizes)
Sets the axes size. |
void |
setAxisThickness(int axisThickness)
Set axis thickness - only applies if chart depth is not 0 |
void |
setBottomAxis(NFAxis bottomAxis)
Sets the bottom axis object. |
void |
setBottomAxisSeries(NFAxisSeries bottomAxisSeries)
Sets the bottom axis series. |
void |
setGrid(NFGrid grid)
Sets a grid object for this chart. |
void |
setGridAnimationStyle(int style)
Set the grid animation style. |
void |
setGridDepth(int gridDepth)
Set the 3D depth of the grids. |
void |
setGridSeries(NFGridSeries gridSeries)
Sets the grid objects for this chart. |
void |
setLeftAxis(NFAxis leftAxis)
Sets the left axis object. |
void |
setLeftAxisSeries(NFAxisSeries leftAxisSeries)
Sets the left axis series. |
void |
setNoteSeriesDrawnBeforeData(boolean noteSeriesDrawnBeforeData)
Set whether the NFNoteSeries should be drawn before the data. |
void |
setRightAxis(NFAxis rightAxis)
Sets the right axis object. |
void |
setRightAxisSeries(NFAxisSeries rightAxisSeries)
Sets the right axis series. |
void |
setTopAxis(NFAxis topAxis)
Sets the top axis object. |
void |
setTopAxisSeries(NFAxisSeries topAxisSeries)
Sets the top axis 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.zoomable.NFZoomableChart |
|---|
getMouseControlDown, getMouseMetaDown, getMouseShiftDown, getZoomingEnabled, setMouseControlDown, setMouseMetaDown, setMouseShiftDown, setZoomingEnabled, zoom |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int GRID_ANIMATION_STYLE_NONE
public static final int GRID_ANIMATION_STYLE_FADE
| Constructor Detail |
|---|
public NFDataChart()
public NFDataChart(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 NFDataChart(javax.swing.JPanel panel)
panel - Panel to draw graph on.
public NFDataChart(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 setGridAnimationStyle(int style)
If the value passed is not a valid grid animation style, GRID_ANIMATION_STYLE_NONE will be used.
style - One of GRID_ANIMATION_STYLE_NONE (default) or GRID_ANIMATION_STYLE_FADEpublic int getGridAnimationStyle()
GRID_ANIMATION_STYLE_NONE (default) or GRID_ANIMATION_STYLE_FADEpublic void setAxisThickness(int axisThickness)
axisThickness - public int getAxisThickness()
public void setGridDepth(int gridDepth)
gridDepth - public int getGridDepth()
public void setAutoscalePad(double autoscalePad)
autoscalePad - public double getAutoscalePad()
public void setNoteSeriesDrawnBeforeData(boolean noteSeriesDrawnBeforeData)
noteSeriesDrawnBeforeData - public boolean getNoteSeriesDrawnBeforeData()
public void addGrid(NFGrid grid)
grid - public void setGrid(NFGrid grid)
grid - public NFGrid getGrid()
public void setGridSeries(NFGridSeries gridSeries)
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFGridSeries gridSeries = chart.getGridSeries();
NFGrid grid = (NFGrid)gridSeries.elementAt(0);
// Set some of the properties on the NFGrid
...
gridSeries.setElementAt(grid, 0);
chart.setGridSeries(gridSeries);
gridSeries - public NFGridSeries getGridSeries()
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFGridSeries gridSeries = chart.getGridSeries();
NFGrid grid = (NFGrid)gridSeries.elementAt(0);
// Set some of the properties on the NFGrid
...
gridSeries.setElementAt(grid, 0);
chart.setGridSeries(gridSeries);
public void setLeftAxis(NFAxis leftAxis)
leftAxis - public NFAxis getLeftAxis()
public NFAxis getXAxis(NFDataSet set)
set - dataset
public NFAxis getYAxis(NFDataSet set)
set - dataset
public void setLeftAxisSeries(NFAxisSeries leftAxisSeries)
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis leftAxis1 = null;
...
NFAxisSeries leftAxisSeries = chart.getLeftAxisSeries();
leftAxisSeries.setElementAt(leftAxis1, 0);
chart.setLeftAxisSeries(leftAxisSeries);
leftAxisSeries - public NFAxisSeries getLeftAxisSeries()
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis leftAxis1 = null;
...
NFAxisSeries leftAxisSeries = chart.getLeftAxisSeries();
leftAxisSeries.setElementAt(leftAxis1, 0);
chart.setLeftAxisSeries(leftAxisSeries);
public void setRightAxis(NFAxis rightAxis)
rightAxis - public NFAxis getRightAxis()
public void setRightAxisSeries(NFAxisSeries rightAxisSeries)
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis rightAxis1 = null;
...
NFAxisSeries rightAxisSeries = chart.getRightAxisSeries();
rightAxisSeries.setElementAt(rightAxis1, 0);
chart.setRightAxisSeries(rightAxisSeries);
rightAxisSeries - public NFAxisSeries getRightAxisSeries()
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis rightAxis1 = null;
...
NFAxisSeries rightAxisSeries = chart.getRightAxisSeries();
rightAxisSeries.setElementAt(rightAxis1, 0);
chart.setRightAxisSeries(rightAxisSeries);
public void setBottomAxis(NFAxis bottomAxis)
bottomAxis - public NFAxis getBottomAxis()
public void setBottomAxisSeries(NFAxisSeries bottomAxisSeries)
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis bottomAxis1 = null;
...
NFAxisSeries bottomAxisSeries = chart.getBottomAxisSeries();
bottomAxisSeries.setElementAt(bottomAxis1, 0);
chart.setBottomAxisSeries(bottomAxisSeries);
bottomAxisSeries - public NFAxisSeries getBottomAxisSeries()
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis bottomAxis1 = null;
...
NFAxisSeries bottomAxisSeries = chart.getBottomAxisSeries();
bottomAxisSeries.setElementAt(bottomAxis1, 0);
chart.setBottomAxisSeries(bottomAxisSeries);
public void setTopAxis(NFAxis topAxis)
topAxis - public NFAxis getTopAxis()
public void setTopAxisSeries(NFAxisSeries topAxisSeries)
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis topAxis1 = null;
...
NFAxisSeries topAxisSeries = chart.getTopAxisSeries();
topAxisSeries.setElementAt(topAxis1, 0);
chart.setTopAxisSeries(topAxisSeries);
topAxisSeries - public NFAxisSeries getTopAxisSeries()
NFBarchart chart = null; // NFBarchart, NFBoxchart, etc.
NFAxis topAxis1 = null;
...
NFAxisSeries topAxisSeries = chart.getTopAxisSeries();
topAxisSeries.setElementAt(topAxis1, 0);
chart.setTopAxisSeries(topAxisSeries);
public void setAxesSizes(NFAxesSize axesSizes)
axesSizes - public NFAxesSize getAxesSizes()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class NFZoomableChartjava.io.IOExceptionpublic void writeChart(java.lang.StringBuffer sb)
writeChart in class NFZoomableChartpublic void resetState()
resetState in class NFZoomableChart
|
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 |