|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--netcharts.pro.common.NFGraph
|
+--netcharts.pro.common.zoomable.NFZoomableChart
|
+--netcharts.pro.common.rectangular.NFDataChart
|
+--netcharts.pro.charts.bar.NFBarchart
Barchart object. Provides the ability to configure the chart via object manipulation or directly from CDL.
| Field Summary | |
static java.util.Hashtable |
barchartTypeMap
barchart type hashtable |
static int |
GROUP
Group barchart type |
static int |
HORIZONTAL
Horizontal orientation |
static int |
ITEM
Discrete value shown on popup when barchart type is stack |
static java.util.Hashtable |
orientationMap
orientation hashtable |
static int |
ROWS
Row barchart type |
static int |
STACK
Stacked barchart type |
static java.util.Hashtable |
stackTypeMap
barchart stack type hashtable |
static int |
TOTAL
Total value shown on popup when barchart type is stack |
static int |
VERTICAL
Vertical orientation |
| Fields inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
NOZOOM, zoomActionsMap, ZOOMIN, ZOOMOUT |
| Fields inherited from class netcharts.pro.common.NFGraph |
BAR, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, LINE, PIE, RADAR, STOCK, STRIP, TIME, XY |
| Constructor Summary | |
NFBarchart()
Constructs a default chart object. |
|
NFBarchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFBarchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFBarchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
| Method Summary | |
void |
addBarSet(NFBarSet barSet)
Adds a bar set to the current list of barsets. |
NFVector |
getBarActiveLabels()
Get active labels to be associated with each data label. |
NFLine |
getBarBorder()
Get barBorder for this bar chart |
int |
getBarchartType()
Get barchart type, either GROUP (default), STACK, or ROWS. |
NFBarSeries |
getBarSeries()
Get the bar series. |
NFModalLabel |
getBarValueLabel()
Get the text style to use for labeling bars in this barset. |
NFRegion |
getBarValueLabelRegion()
Get the text background style to use for labeling bars in this barset. |
int |
getBarWidth()
Get bar width. |
NFVector |
getDataLabels()
Get the labels to be displayed under each bar. |
java.lang.String |
getDefaultData()
Returns a string of default data |
int |
getDepth()
Get 3DDepth |
int |
getOrientation()
Get bar orientation, either VERTICAL (default) or HORIZONTAL |
int |
getStackType()
Get barchart stack type, either TOTAL or ITEM. |
int |
getType()
Gets the chart type. |
NFModalLabel |
getZAxisLabels()
|
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setBarActiveLabels(NFVector barActiveLabels)
Set active labels to be associated with each data label. |
void |
setBarBorder(NFLine barBorder)
Set border for this bar chart |
void |
setBarchartType(int type)
Set barchart type, either GROUP (default), STACK, or ROWS. |
void |
setBarSeries(NFBarSeries barSeries)
Set the bar series. |
void |
setBarValueLabel(NFModalLabel barValueLabel)
Set the text style to use for labeling bars in this barset. |
void |
setBarValueLabelRegion(NFRegion barValueRegion)
Set the text background style to use for labeling bars in this barset. |
void |
setBarWidth(int barWidth)
Set bar width. |
void |
setDataLabels(NFVector dataLabels)
Set the labels to be displayed under each bar. |
void |
setDepth(int depth)
Set 3DDepth |
void |
setOrientation(int orientation)
Set bar orientation, either VERTICAL (default) or HORIZONTAL. |
void |
setStackType(int stackType)
Set barchart stack type, either TOTAL or ITEM. |
void |
setZAxisLabels(NFModalLabel zAxisLabel)
|
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.rectangular.NFDataChart |
addGrid, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridDepth, setGridSeries, setLeftAxis, setLeftAxisSeries, setRightAxis, setRightAxisSeries, setTopAxis, setTopAxisSeries |
| Methods inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
getMouseControlDown, getMouseMetaDown, getMouseShiftDown, getZoomingEnabled, setMouseControlDown, setMouseMetaDown, setMouseShiftDown, setZoomingEnabled |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
public static final int ROWS
public static final int STACK
public static final int GROUP
public static final int TOTAL
public static final int ITEM
public static java.util.Hashtable orientationMap
public static java.util.Hashtable barchartTypeMap
public static java.util.Hashtable stackTypeMap
| Constructor Detail |
public NFBarchart()
public NFBarchart(javax.swing.JPanel panel)
panel - Panel to draw chart on.public NFBarchart(java.util.Properties initProperties)
initProperties - A java.util.Properties object containing the set
of runtime properties to use when generating the chart.
public NFBarchart(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.| Method Detail |
public java.lang.String getDefaultData()
getDefaultData in class NFGraphpublic void setBarBorder(NFLine barBorder)
barBorder - The line style to use for the bar borderpublic NFLine getBarBorder()
public void setDepth(int depth)
depth - 3D shadow depthpublic int getDepth()
public void setBarWidth(int barWidth)
barWidth - public int getBarWidth()
public void setOrientation(int orientation)
If the value passed is not a valid format type, VERTICAL will be used.
orientation - One of HORIZONTAL, VERTICALpublic int getOrientation()
HORIZONTAL, VERTICALpublic void setBarchartType(int type)
If the value passed is not a valid barchart type, GROUP will be used.
type - One of GROUP, STACK, or ROWSpublic int getBarchartType()
public void setStackType(int stackType)
If the value passed is not a valid barchart type, ITEM will be used.
stackType - One of ITEM, TOTALpublic int getStackType()
ITEM, TOTALpublic void setDataLabels(NFVector dataLabels)
public NFVector getDataLabels()
public void setBarActiveLabels(NFVector barActiveLabels)
barActiveLabels - Vector of NFActiveLabelspublic NFVector getBarActiveLabels()
public void addBarSet(NFBarSet barSet)
barSet - The barset to add.public void setBarSeries(NFBarSeries barSeries)
NFBarchart chart = new NFBarchart();
NFBarSeries bs = chart.getBarSeries();
NFBarSet set = (NFBarSet)bs.elementAt(0);
// Set some of the properties on the NFBarSet
...
bs.setElementAt(set, 0);
chart.setBarSeries(bs);
barSeries - public NFBarSeries getBarSeries()
NFBarchart chart = new NFBarchart();
NFBarSeries bs = chart.getBarSeries();
NFBarSet set = (NFBarSet)bs.elementAt(0);
// Set some of the properties on the NFBarSet
...
bs.setElementAt(set, 0);
chart.setBarSeries(bs);
public void setBarValueLabel(NFModalLabel barValueLabel)
barValueLabel - Text style.public NFModalLabel getBarValueLabel()
public void setBarValueLabelRegion(NFRegion barValueRegion)
barValueRegion - Text background style.public NFRegion getBarValueLabelRegion()
public int getType()
getType in class NFGraphnetcharts.pro.charts.bar.NFGraph.BARpublic void setZAxisLabels(NFModalLabel zAxisLabel)
public NFModalLabel getZAxisLabels()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in class NFDataChartpublic void writeChart(java.lang.StringBuffer sb)
writeChart in class NFDataChartpublic void resetState()
resetState in class NFDataChart
|
NetCharts Pro | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2004 |
Last Modified: Apr 1, 2004 |