NetCharts Pro

netcharts.pro.charts.bar
Class NFBarchart

java.lang.Object
  extended by netcharts.pro.common.NFGraph
      extended by netcharts.pro.common.zoomable.NFZoomableChart
          extended by netcharts.pro.common.rectangular.NFDataChart
              extended by netcharts.pro.common.barset.NFAbstractBarchart
                  extended by netcharts.pro.charts.bar.NFAbstractGroupStackableBarchart
                      extended by netcharts.pro.charts.bar.NFBarchart
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, NFDragObserver, NFDwellObserver, NFGraphObserver, NFScrollObserver
Direct Known Subclasses:
NFBarchart3d

public class NFBarchart
extends NFAbstractGroupStackableBarchart

Represents a bar chart. Provides the ability to configure the chart via object manipulation or directly from CDL.

See Also:
Serialized Form

Field Summary
static java.util.Hashtable connectorTypeMap
          stacked barchart connector type hashtable
static int FILL
          Connector type fill
static int LINE
          Connector type line
static int OFF
          Connector type off
 
Fields inherited from class netcharts.pro.common.barset.NFAbstractBarchart
BAR_ANIMATION_STYLE_FADE, BAR_ANIMATION_STYLE_GROW, BAR_ANIMATION_STYLE_NONE, barchartTypeMap, BOTTOMUP, GROUP, GROUPSTACK, HORIZONTAL, ITEM, orientationMap, ROWS, STACK, stackDisplayOrderMap, stackTypeMap, TOPDOWN, TOTAL, VERTICAL
 
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
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
 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 getStackedBarConnector()
          Get stacked bar connector type, either OFF (default), LINE or FILL.
 int getType()
          Gets the chart type.
 boolean isDataLegendEnabled()
          Get whether the data legend is enabled or not.
 void resetState()
          Resets all of the parameter values to their initial state.
 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 setStackedBarConnector(int type)
          Set stacked bar connector type, either OFF (default), LINE or FILL.
 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.charts.bar.NFAbstractGroupStackableBarchart
getBarchartType, getDepth, getGroupStackLabels, getGroupStackSegmentLabels, getOrientation, getShowGroupStackLabels, setBarchartType, setDepth, setGroupStackLabels, setGroupStackSegmentLabels, setOrientation, setShowGroupStackLabels
 
Methods inherited from class netcharts.pro.common.barset.NFAbstractBarchart
addBarSet, getBarActiveLabels, getBarAnimationStyle, getBarBorder, getBarCorners, getBarDropShadow, getBarHighlightSeries, getBarSeries, getBarSpotlightSeries, getBarValueLabel, getBarValueLabelRegion, getBarWidth, getBarWidths, getDataLabels, getStackDisplayOrder, getStackType, getZAxisLabels, setBarActiveLabels, setBarAnimationStyle, setBarBorder, setBarCorners, setBarDropShadow, setBarHighlightSeries, setBarSeries, setBarSpotlightSeries, setBarValueLabel, setBarValueLabelRegion, setBarWidth, setBarWidths, setDataLabels, setStackDisplayOrder, setStackType, setZAxisLabels
 
Methods inherited from class netcharts.pro.common.rectangular.NFDataChart
addGrid, getAutoscalePad, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridAnimationStyle, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getNoteSeriesDrawnBeforeData, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, getXAxis, getYAxis, setAutoscalePad, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridAnimationStyle, setGridDepth, setGridSeries, setLeftAxis, setLeftAxisSeries, setNoteSeriesDrawnBeforeData, 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 netcharts.pro.common.NFGraph
addChartActionListener, addGraphObserver, addNote, addPropertyChangeListener, display, dwellDisplay, dwellPress, finalize, getActiveClicks, getAlwaysUpdate, getAntiAlias, getAntiAliasMode, getBackgroundActiveLabel, getBackgroundFillPattern, getBackgroundRegion, getBuildAnimationEnabled, getCDL, getChartElementSpacing, getChartName, getChartSize, getColorTable, getDataActiveLabelsEnabled, getDwell, getDwellAnimation, getDwellAnimationHighlight, getDwellAnimationStyle, getDwellOffset, getErrors, getFooter, getGraph, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphGraphics, getHeader, getLabelAnimationStyle, getLeftTitle, getLegend, getLegendAnimationStyle, getLegendDwellAnimation, getLegendDwellAnimationHighlight, getLegendDwellAnimationStyle, getLicenseActivationKey, getLocale, getMetaData, getMinimumSize, getNoteSeries, getNumberFormat, getNumErrors, getPanel, getPlotArea, getPreferredSize, getRightTitle, getRootPanel, getRubberband, getScaleFactor, getTitleSpacing, getToggleDataVisibility, getVersion, graphDrawn, graphTooSmall, initializeFromFile, initializeFromString, initializeFromURL, loadFromTemplate, loadFromTemplate, loadFromTemplate, loadLicenseFile, paint, postDrag, postScroll, preDrag, preScroll, readExternal, removeChartActionListener, removeGraphObserver, removePropertyChangeListener, sendData, sendData, sendData, sendData, sendUpdate, set, set, set, set, set, set, setActiveClicks, setAlwaysUpdate, setAntiAlias, setAntiAliasMode, setBackgroundActiveLabel, setBackgroundFillPattern, setBackgroundRegion, setBuildAnimationEnabled, setChartElementSpacing, setChartName, setChartSize, setColorTable, setDataActiveLabelsEnabled, setDocumentBase, setDwell, setDwellAnimation, setDwellAnimationHighlight, setDwellAnimationStyle, setDwellOffset, setFooter, setHeader, setLabelAnimationStyle, setLeftTitle, setLegend, setLegendAnimationStyle, setLegendDwellAnimation, setLegendDwellAnimationHighlight, setLegendDwellAnimationStyle, setLicenseKey, setLicenseKey, setLicenseLocation, setLocale, setMetaData, setNoteSeries, setNumberFormat, setParentApplet, setPlotArea, setRightTitle, setRubberband, setScaleFactor, setSize, setSize, setTitleSpacing, setToggleDataVisibility, start, stop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OFF

public static final int OFF
Connector type off

See Also:
Constant Field Values

LINE

public static final int LINE
Connector type line

See Also:
Constant Field Values

FILL

public static final int FILL
Connector type fill

See Also:
Constant Field Values

connectorTypeMap

public static java.util.Hashtable connectorTypeMap
stacked barchart connector type hashtable

Constructor Detail

NFBarchart

public NFBarchart()
Constructs a default chart object.


NFBarchart

public NFBarchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel.

Parameters:
panel - Panel to draw chart on.

NFBarchart

public NFBarchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel.

Parameters:
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.

NFBarchart

public NFBarchart(javax.swing.JPanel panel,
                  java.util.Properties initProperties)
Constructs a chart object on the given JPanel.

Parameters:
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

setStackedBarConnector

public void setStackedBarConnector(int type)
Set stacked bar connector type, either OFF (default), LINE or FILL.

If the value passed is not a valid barchart type, OFF will be used.

Parameters:
type - One of OFF, LINE or FILL

getStackedBarConnector

public int getStackedBarConnector()
Get stacked bar connector type, either OFF (default), LINE or FILL.

Returns:
type One of OFF, LINE or FILL

isDataLegendEnabled

public boolean isDataLegendEnabled()
Get whether the data legend is enabled or not.

Returns:
data legend enabled

setDataLegendEnabled

public void setDataLegendEnabled(boolean dataLegendEnabled)
Set whether the data legend is enabled or not.

Parameters:
dataLegendEnabled - Whether the data legend is enabled or not.

getDataLegendGridBackground

public NFGridBackground getDataLegendGridBackground()
Get the data legend grid background.

Returns:
the data legend grid background

setDataLegendGridBackground

public void setDataLegendGridBackground(NFGridBackground dataLegendGridBackground)
Set the data legend grid background.

Parameters:
dataLegendGridBackground - the data legend grid background

getDataLegendGridLine

public NFGridLine getDataLegendGridLine()
Get the data legend grid line.

Returns:
the data legend grid line

setDataLegendGridLine

public void setDataLegendGridLine(NFGridLine dataLegendGridLine)
Set the data legend grid line.

Parameters:
dataLegendGridLine - the data legend grid line

getDefaultData

public java.lang.String getDefaultData()
Returns a string of default data

Specified by:
getDefaultData in class NFGraph
Returns:
The default data used to initialize a chart.

getType

public int getType()
Gets the chart type.

Specified by:
getType in class NFGraph
Returns:
the type of this chart, always netcharts.pro.charts.bar.NFGraph.BAR

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Writes this chart into an object for serialization.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class NFAbstractBarchart
Throws:
java.io.IOException

writeChart

public void writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer

Overrides:
writeChart in class NFAbstractGroupStackableBarchart

resetState

public void resetState()
Resets all of the parameter values to their initial state.

Overrides:
resetState in class NFAbstractGroupStackableBarchart

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2018
All Rights Reserved.

NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jan 7, 2018