NetCharts Pro

netcharts.pro.common.lineset
Class NFAbstractLineChart

java.lang.Object
  |
  +--netcharts.pro.common.NFGraph
        |
        +--netcharts.pro.common.zoomable.NFZoomableChart
              |
              +--netcharts.pro.common.rectangular.NFDataChart
                    |
                    +--netcharts.pro.common.lineset.NFAbstractLineChart
All Implemented Interfaces:
java.io.Externalizable, NFDragObserver, NFDwellObserver, NFGraphObserver, NFScrollObserver, java.io.Serializable
Direct Known Subclasses:
NFCombochart, NFLinechart, NFXYchart

public abstract class NFAbstractLineChart
extends NFDataChart

Represents chart that supports line drawing.

See Also:
Serialized Form

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, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, HEATMAP, LINE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY
 
Constructor Summary
NFAbstractLineChart()
          Constructs a default chart object.
NFAbstractLineChart(javax.swing.JPanel panel)
          Constructs a chart object on the given JPanel.
NFAbstractLineChart(javax.swing.JPanel panel, java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
NFAbstractLineChart(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.
 int getDepth()
          Get 3DDepth
 NFLineSeries getLineSeries()
          Get the line series.
 NFModalLabel getLineValueLabel()
          Get the text style to use for line labels.
 NFRegion getLineValueLabelRegion()
          Get the text background style to use for line labels.
 int getLineZWidth()
          Get the lineZWidth.
 void resetState()
          Resets all of the parameter values to their initial state.
 void setDepth(int depth)
          Set 3DDepth
 void setLineSeries(NFLineSeries lineSeries)
          Set the line series.
 void setLineValueLabel(NFModalLabel lineValueLabel)
          Set the text style to use for line labels.
 void setLineValueLabelRegion(NFRegion lineValueRegion)
          Set the text background style to use for line labels.
 void setLineZWidth(int lineZWidth)
          Set the lineZWidth.
 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, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, setAutoscalePad, 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 netcharts.pro.common.NFGraph
addChartActionListener, addGraphObserver, addNote, addPropertyChangeListener, display, dwellDisplay, dwellPress, finalize, getActiveClicks, getAlwaysUpdate, getAntiAlias, getAntiAliasMode, getBackgroundFillPattern, getBackgroundRegion, getCDL, getChartElementSpacing, getChartName, getChartSize, getColorTable, getDataActiveLabelsEnabled, getDefaultData, getDwell, getDwellOffset, getErrors, getFooter, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphFromTemplate, getGraphGraphics, getHeader, getLeftTitle, getLegend, getMetaData, getMinimumSize, getNoteSeries, getNumberFormat, getNumErrors, getPanel, getPlotArea, getPreferredSize, getRightTitle, getRootPanel, getScaleFactor, getType, 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, setBackgroundFillPattern, setBackgroundRegion, setChartElementSpacing, setChartName, setChartSize, setColorTable, setDataActiveLabelsEnabled, setDocumentBase, setDwell, setDwellOffset, setFooter, setHeader, setLeftTitle, setLegend, setLicenseKey, setMetaData, setNoteSeries, setNumberFormat, setParentApplet, setPlotArea, setRightTitle, setScaleFactor, setSize, setSize, start, stop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NFAbstractLineChart

public NFAbstractLineChart()
Constructs a default chart object.

NFAbstractLineChart

public NFAbstractLineChart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel.
Parameters:
panel - Panel to draw graph on.

NFAbstractLineChart

public NFAbstractLineChart(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.

NFAbstractLineChart

public NFAbstractLineChart(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

setDepth

public void setDepth(int depth)
Set 3DDepth
Parameters:
depth - 3D shadow depth

getDepth

public int getDepth()
Get 3DDepth
Returns:
depth 3D shadow depth

setLineZWidth

public void setLineZWidth(int lineZWidth)
Set the lineZWidth. This percentage value (0-100) or (0.0-1.0) determines the amount of space actually used to display 3D lines when depth is greater than 1. If 100 percent is specified, then each line will completely fill the amount of space specified by depth in the Z dimension. If 50 percent is specified, then each line will occupy only 50 percent of that space, which will result in a visible separation between each line set. The default value is 100.
Parameters:
lineZWidth -  

getLineZWidth

public int getLineZWidth()
Get the lineZWidth. This percentage value (0-100) or (0.0-1.0) determines the amount of space actually used to display 3D lines when depth is greater than 1. If 100 percent is specified, then each line will completely fill the amount of space specified by depth in the Z dimension. If 50 percent is specified, then each line will occupy only 50 percent of that space, which will result in a visible separation between each line set. The default value is 100.
Parameters:
lineZWidth -  

addLineSet

public void addLineSet(NFLineSet lineSet)
Adds a line set to the current list of linesets.
Parameters:
lineSet - The lineset to add.

setLineSeries

public void setLineSeries(NFLineSeries lineSeries)
                   throws NFParamException
Set the line series. This is a vector of NFLineSets. To set a property on the line series, you must first retrieve the series, then set the property (properties) and finally set the line series.
     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);
 
Parameters:
lineSeries -  

getLineSeries

public NFLineSeries getLineSeries()
Get the line series. This is a vector of NFLineSets. To set a property on the line series, you must first retrieve the series, then set the property (properties) and finally set the line series.
     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);
 
Returns:
lineSeries

setLineValueLabel

public void setLineValueLabel(NFModalLabel lineValueLabel)
Set the text style to use for line labels.
Parameters:
lineValueLabel - Text style.

getLineValueLabel

public NFModalLabel getLineValueLabel()
Get the text style to use for line labels.
Returns:
text style or null if not defined.

setLineValueLabelRegion

public void setLineValueLabelRegion(NFRegion lineValueRegion)
Set the text background style to use for line labels.
Parameters:
lineValueRegion - Text background style.

getLineValueLabelRegion

public NFRegion getLineValueLabelRegion()
Get the text background style to use for line labels.
Returns:
text background style.

writeExternal

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

writeChart

public void writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer
Overrides:
writeChart in class NFDataChart

resetState

public void resetState()
Resets all of the parameter values to their initial state.
Overrides:
resetState in class NFDataChart

NetCharts Pro


Visual Mining, Inc.
15825 Shady Grove Rd.
Suite 20
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2006
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: Apr 14, 2006