|
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.lineset.NFAbstractLineChart
netcharts.pro.charts.combo.NFCombochart
public class NFCombochart
Represents a combo chart (allowing for both bars and line). 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 int |
BOTTOMUP
Stack bar sets from the bottom up when barchart type is stack |
static java.util.Hashtable |
connectorTypeMap
stacked barchart connector type hashtable |
static int |
DRAWBAR
Draw bar - used in setDrawOrder |
static int |
DRAWFILL
Draw fill - used in setDrawOrder |
static int |
DRAWLINE
Draw line - used in setDrawOrder |
static java.util.Hashtable |
drawOrderMap
draw order hashtable |
static int |
DRAWSTOCK
Draw stock - used in setDrawOrder. |
static int |
FILL
Connector type fill |
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 int |
LINE
Connector type line |
static int |
OFF
Connector type off |
static int |
ROWS
Row barchart type |
static int |
STACK
Stacked barchart type |
static java.util.Hashtable |
stackDisplayOrderMap
stack display order 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.lineset.NFAbstractLineChart |
---|
LINE_ANIMATION_STYLE_BEND, LINE_ANIMATION_STYLE_FADE, LINE_ANIMATION_STYLE_NONE, LINE_SYMBOL_ANIMATION_STYLE_FADE, LINE_SYMBOL_ANIMATION_STYLE_NONE, LINE_SYMBOL_ANIMATION_STYLE_SCALE |
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, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY |
Constructor Summary | |
---|---|
NFCombochart()
Constructs a default chart object. |
|
NFCombochart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFCombochart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFCombochart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
void |
addLineSet(NFLineSet lineSet)
Adds a line set to the current list of linesets. |
NFVector |
getBarActiveLabels()
Get active labels to be associated with each bar data label. |
int |
getBarAnimationStyle()
Get the bar animation style. |
NFLine |
getBarBorder()
Get barBorder for this chart |
int |
getBarchartType()
Get bar type, either GROUP (default) STACK, GROUPSTACK, or ROWS |
NFCorners |
getBarCorners()
Get the corners of the bars |
int |
getBarDepth()
Get 3DDepth for 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. |
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. |
NFGridBackground |
getDataLegendGridBackground()
Get the data legend grid background. |
NFGridLine |
getDataLegendGridLine()
Get the data legend grid line. |
java.lang.String |
getDefaultData()
Returns a string of default data |
int[] |
getDrawOrder()
Get the draw order. |
NFVector |
getGroupStackLabels()
Get the labels to be displayed under each stack in a GROUPSTACK chart. |
NFVector |
getGroupStackSegmentLabels()
Get the labels to be displayed in the legend for segments of a stack in GROUPSTACK mode. |
boolean |
getLineLabelsEnabled()
Get whether or not popups over lines are enabled. |
NFLineSeries |
getLineSeries()
Get the line series. |
int |
getOrientation()
Get graph orientation, either VERTICAL (default) or HORIZONTAL |
boolean |
getShowGroupStackLabels()
Get whether the group stack labels should be displayed when in GROUPSTACK mode. |
int |
getStackDisplayOrder()
Get barchart stack display order, either BOTTOMUP or TOPDOWN. |
int |
getStackedBarConnector()
Get stacked bar connector type, either OFF (default), LINE or FILL. |
int |
getStackType()
Get bar stack type, either TOTAL or ITEM. |
int |
getType()
Gets the chart type. |
NFModalLabel |
getZAxisLabels()
Returns the text style and value to use for labeling the Z Axis. |
boolean |
isDataLegendEnabled()
Get whether the data legend is enabled or not. |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setBarActiveLabels(NFVector barActiveLabels)
Set active labels to be associated with each bar data label. |
void |
setBarAnimationStyle(int style)
Set the bar animation style. |
void |
setBarBorder(NFLine barBorder)
Set border for this chart |
void |
setBarchartType(int type)
Set bar type, either GROUP (default) STACK, GROUPSTACK, or ROWS |
void |
setBarCorners(NFCorners barCorners)
Set the corners of the bars |
void |
setBarDepth(int depth)
Set 3DDepth for 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 |
setDataLegendEnabled(boolean dataLegendEnabled)
Set whether the data legend is enabled or not. |
void |
setDataLegendGridBackground(NFGridBackground dataLegendGridBackground)
Set the data legend grid background. |
void |
setDataLegendGridLine(NFGridLine dataLegendGridLine)
Set the data legend grid line. |
void |
setDrawOrder(int[] drawOrder)
Set the draw order. |
void |
setGroupStackLabels(NFVector groupStackLabels)
Set the labels to be displayed under each stack in a GROUPSTACK chart. |
void |
setGroupStackSegmentLabels(NFVector groupStackSegmentLabels)
Set the labels to be displayed in the legend for segments of a stack in GROUPSTACK mode. |
void |
setLineLabelsEnabled(boolean lineLabelsEnabled)
Set enable popup labels over lines. |
void |
setLineSeries(NFLineSeries lineSeries)
Set the line series. |
void |
setOrientation(int orientation)
Set graph orientation, either VERTICAL (default) or HORIZONTAL |
void |
setShowGroupStackLabels(boolean showGroupStackLabels)
Set whether the group stack labels should be displayed when in GROUPSTACK mode. |
void |
setStackDisplayOrder(int stackDisplayOrder)
Set barchart stack display order, either BOTTOMUP or TOPDOWN. |
void |
setStackedBarConnector(int type)
Set stacked bar connector type, either OFF (default), LINE or FILL. |
void |
setStackType(int stackType)
Set bar 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.lineset.NFAbstractLineChart |
---|
getDepth, getLineAnimationStyle, getLineDropShadow, getLineSymbolAnimationStyle, getLineSymbolSpotlightSeries, getLineValueLabel, getLineValueLabelRegion, getLineZWidth, setDepth, setLineAnimationStyle, setLineDropShadow, setLineSymbolAnimationStyle, setLineSymbolSpotlightSeries, setLineValueLabel, setLineValueLabelRegion, setLineZWidth |
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 OFF
public static final int LINE
public static final int FILL
public static java.util.Hashtable connectorTypeMap
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 DRAWBAR
public static final int DRAWLINE
public static final int DRAWFILL
public static final int DRAWSTOCK
public static final int BOTTOMUP
public static final int TOPDOWN
public static java.util.Hashtable stackDisplayOrderMap
public static java.util.Hashtable drawOrderMap
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 NFCombochart()
public NFCombochart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFCombochart(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 NFCombochart(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 setStackDisplayOrder(int stackDisplayOrder)
stackDisplayOrder
- One of BOTTOMUP, TOPDOWN
public int getStackDisplayOrder()
BOTTOMUP, TOPDOWN
public void setShowGroupStackLabels(boolean showGroupStackLabels)
showGroupStackLabels
- true if the labels should be shownpublic boolean getShowGroupStackLabels()
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 java.lang.String getDefaultData()
getDefaultData
in class NFGraph
public int getType()
getType
in class NFGraph
netcharts.pro.NFGraph.XY
public void addLineSet(NFLineSet lineSet)
addLineSet
in class NFAbstractLineChart
lineSet
- The lineset to add.public void setLineSeries(NFLineSeries lineSeries) throws NFParamException
NFLinechart chart = new NFLinechart(); NFLineSeries bs = chart.getLineSeries(); NFLineSet set = (NFLineSet)ls.elementAt(0); // Set some of the properties on the NFLineSet ... bs.setElementAt(set, 0); chart.setLineSeries(bs);
setLineSeries
in class NFAbstractLineChart
lineSeries
-
NFParamException
public NFLineSeries getLineSeries()
NFLinechart chart = new NFLinechart(); NFLineSeries ls = chart.getLineSeries(); NFLineSet set = (NFLineSet)ls.elementAt(0); // Set some of the properties on the NFLineSet ... ls.setElementAt(set, 0); chart.setLineSeries(ls);
getLineSeries
in class NFAbstractLineChart
public void setBarBorder(NFLine barBorder)
barBorder
- The line style to use for the bar borderpublic NFLine getBarBorder()
public void setBarDepth(int depth)
depth
- 3D shadow depth for barspublic int getBarDepth()
public void setBarWidth(int barWidth)
barWidth
- public void setBarWidths(NFVector barWidths)
barWidths
- public int getBarWidth()
public NFVector getBarWidths()
public void setOrientation(int orientation)
orientation
- public int getOrientation()
public void setBarchartType(int type)
type
- public int getBarchartType()
public void setStackType(int stackType)
stackType
- public int getStackType()
public void setDataLabels(NFVector dataLabels) throws NFParamException
NFParamException
public NFVector getDataLabels()
public void setGroupStackLabels(NFVector groupStackLabels)
public NFVector getGroupStackLabels()
public void setGroupStackSegmentLabels(NFVector groupStackSegmentLabels)
public NFVector getGroupStackSegmentLabels()
public void setBarActiveLabels(NFVector barActiveLabels) throws NFParamException
barActiveLabels
- Vector of NFActiveLabels
NFParamException
public NFVector getBarActiveLabels()
public void setBarSeries(NFBarSeries barSeries) throws NFParamException
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
-
NFParamException
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 void setDrawOrder(int[] drawOrder) throws NFParamException
drawOrder
-
NFParamException
public int[] getDrawOrder()
public void setZAxisLabels(NFModalLabel zAxisLabel)
zAxisLabel
- Text style and valuepublic NFModalLabel getZAxisLabels()
public void setLineLabelsEnabled(boolean lineLabelsEnabled)
lineLabelsEnabled
- When popups will appear over lines of the chart.public boolean getLineLabelsEnabled()
public boolean isDataLegendEnabled()
public void setDataLegendEnabled(boolean dataLegendEnabled)
dataLegendEnabled
- Whether the data legend is enabled or not.public NFGridBackground getDataLegendGridBackground()
public void setDataLegendGridBackground(NFGridBackground dataLegendGridBackground)
dataLegendGridBackground
- the data legend grid backgroundpublic NFGridLine getDataLegendGridLine()
public void setDataLegendGridLine(NFGridLine dataLegendGridLine)
dataLegendGridLine
- the data legend grid linepublic void setStackedBarConnector(int type)
If the value passed is not a valid barchart type, OFF will be used.
type
- One of OFF, LINE or FILLpublic int getStackedBarConnector()
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 writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFAbstractLineChart
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFAbstractLineChart
public void resetState()
resetState
in class NFAbstractLineChart
|
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 |