|
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
netcharts.pro.common.barset.NFAbstractBarchart
public abstract class NFAbstractBarchart
Represents an abstract bar chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary | |
---|---|
static int |
BAR_ANIMATION_STYLE_FADE
Bar animation style fade |
static int |
BAR_ANIMATION_STYLE_GROW
Bar animation style grow |
static int |
BAR_ANIMATION_STYLE_NONE
No bar animation style |
static java.util.Hashtable |
barchartTypeMap
barchart type hashtable |
static int |
BOTTOMUP
Stack bar sets from the bottom up when barchart type is stack |
static int |
GROUP
Group barchart type |
static int |
GROUPSTACK
Stacked/Grouped 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 |
stackDisplayOrderMap
stack display order hashtable |
static java.util.Hashtable |
stackTypeMap
barchart stack type hashtable |
static int |
TOPDOWN
Stack bar sets from the top down when barchart type is stack |
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.rectangular.NFDataChart |
---|
GRID_ANIMATION_STYLE_FADE, GRID_ANIMATION_STYLE_NONE |
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 | |
---|---|
NFAbstractBarchart()
Constructs a default chart object. |
|
NFAbstractBarchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFAbstractBarchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel with the specified properties. |
|
NFAbstractBarchart(java.util.Properties initProperties)
Constructs a chart object with the specified properties. |
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. |
int |
getBarAnimationStyle()
Get the bar animation style. |
NFLine |
getBarBorder()
Returns the bar border for this bar chart |
NFCorners |
getBarCorners()
Get the corners of the bars |
NFDropShadow |
getBarDropShadow()
Get the drop shadow for the bars |
NFBarHighlightSeries |
getBarHighlightSeries()
Get the bar highlight series. |
NFBarSeries |
getBarSeries()
Get the bar series. |
NFSpotlightSeries |
getBarSpotlightSeries()
Get the bar spotlight 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 |
getBarWidths()
Get the bar widths. |
NFVector |
getDataLabels()
Get the labels to be displayed under each bar. |
int |
getStackDisplayOrder()
Get barchart stack display order, either BOTTOMUP or TOPDOWN. |
int |
getStackType()
Get barchart stack type, either TOTAL or ITEM. |
NFModalLabel |
getZAxisLabels()
Returns the text style and value to use for labeling the Z Axis. |
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 |
setBarAnimationStyle(int style)
Set the bar animation style. |
void |
setBarBorder(NFLine barBorder)
Set border for this bar chart |
void |
setBarCorners(NFCorners barCorners)
Set the corners of the bars |
void |
setBarDropShadow(NFDropShadow barDropShadow)
Set the drop shadow for the bars |
void |
setBarHighlightSeries(NFBarHighlightSeries barHighlightSeries)
Set the bar highlight series. |
void |
setBarSeries(NFBarSeries barSeries)
Set the bar series. |
void |
setBarSpotlightSeries(NFSpotlightSeries barSpotlightSeries)
Set the bar spotlight 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 |
setBarWidths(NFVector barWidths)
Set the bar widths. |
void |
setDataLabels(NFVector dataLabels)
Set the labels to be displayed under each bar. |
void |
setStackDisplayOrder(int stackDisplayOrder)
Set barchart stack display order, either BOTTOMUP or TOPDOWN. |
void |
setStackType(int stackType)
Set barchart stack type, either TOTAL or ITEM. |
void |
setZAxisLabels(NFModalLabel zAxisLabel)
Set the text style and value to use for labeling the Z Axis. |
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, getAutoscalePad, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridAnimationStyle, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, getXAxis, getYAxis, setAutoscalePad, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridAnimationStyle, 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, zoom |
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 GROUPSTACK
public static final int TOTAL
public static final int ITEM
public static final int BOTTOMUP
public static final int TOPDOWN
public static java.util.Hashtable stackDisplayOrderMap
public static java.util.Hashtable orientationMap
public static java.util.Hashtable barchartTypeMap
public static java.util.Hashtable stackTypeMap
public static final int BAR_ANIMATION_STYLE_NONE
public static final int BAR_ANIMATION_STYLE_GROW
public static final int BAR_ANIMATION_STYLE_FADE
Constructor Detail |
---|
public NFAbstractBarchart()
public NFAbstractBarchart(javax.swing.JPanel panel)
panel
- JPanel to draw chart on.public NFAbstractBarchart(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 NFAbstractBarchart(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 setBarBorder(NFLine barBorder)
barBorder
- The line style to use for the bar borderpublic NFLine getBarBorder()
public void setBarWidth(int barWidth)
barWidth
- public void setBarWidths(NFVector barWidths)
barWidths
- public int getBarWidth()
public NFVector getBarWidths()
public void setStackType(int stackType)
If the value passed is not a valid barchart type, ITEM will be used.
stackType
- One of ITEM, TOTAL
public int getStackType()
ITEM, TOTAL
public void setStackDisplayOrder(int stackDisplayOrder)
stackDisplayOrder
- One of BOTTOMUP, TOPDOWN
public int getStackDisplayOrder()
BOTTOMUP, TOPDOWN
public 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 setBarHighlightSeries(NFBarHighlightSeries barHighlightSeries)
barHighlightSeries
- The series of bar highlightspublic NFBarHighlightSeries getBarHighlightSeries()
public void setBarSpotlightSeries(NFSpotlightSeries barSpotlightSeries)
barSpotlightSeries
- The series of bar spotlightspublic NFSpotlightSeries getBarSpotlightSeries()
public void setBarDropShadow(NFDropShadow barDropShadow)
barDropShadow
- The drop shadow to use under the barspublic NFDropShadow getBarDropShadow()
public void setBarCorners(NFCorners barCorners)
barCorners
- The corners of the barspublic NFCorners getBarCorners()
public void setBarValueLabel(NFModalLabel barValueLabel)
barValueLabel
- Text style.public NFModalLabel getBarValueLabel()
public void setBarValueLabelRegion(NFRegion barValueRegion)
barValueRegion
- Text background style.public NFRegion getBarValueLabelRegion()
public void setZAxisLabels(NFModalLabel zAxisLabel)
zAxisLabel
- Text style and valuepublic NFModalLabel getZAxisLabels()
public void setBarAnimationStyle(int style)
If the value passed is not a valid bar animation style, BAR_ANIMATION_STYLE_NONE will be used.
style
- One of BAR_ANIMATION_STYLE_NONE (default), BAR_ANIMATION_STYLE_GROW or BAR_ANIMATION_STYLE_FADE
public int getBarAnimationStyle()
BAR_ANIMATION_STYLE_NONE (default), BAR_ANIMATION_STYLE_GROW or BAR_ANIMATION_STYLE_FADE
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFDataChart
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFDataChart
public void resetState()
resetState
in class NFDataChart
|
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 |