NetCharts Pro

netcharts.pro.charts.line
Class NFLinechart

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

public class NFLinechart
extends NFAbstractLineChart

Linechart object. Provides the ability to configure the chart via object manipulation or directly from CDL.

See Also:
Serialized Form

Field Summary
static int ITEM
          Discrete value shown on popup when linechart type is stack item value.
static java.util.Hashtable linechartTypeMap
          linechart type hashtable
static int PERCENT
          Percentage linechart type.
static int ROWS
          Row linechart type.
static int STACK
          Stacked linechart type.
static java.util.Hashtable stackTypeMap
          linechart stack type hashtable
static int TOTAL
          Total value shown on popup when linechart type is stack total.
 
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
NFLinechart()
          Constructs a default chart object.
NFLinechart(javax.swing.JPanel panel)
          Constructs a chart object on the given JPanel.
NFLinechart(javax.swing.JPanel panel, java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
NFLinechart(java.util.Properties initProperties)
          Constructs a chart object on the given JPanel.
 
Method Summary
 java.lang.String getDefaultData()
          Returns a string of default data
 int getLinechartType()
          Get linechart type, either STACK (default) PERCENT, or ROWS
 int getStackType()
          Get linechart stack type, either TOTAL (default), ITEM, or PERCENT.
 int getType()
          Gets the chart type.
 void resetState()
          Resets all of the parameter values to their initial state.
 void setLinechartType(int type)
          Set linechart type, either STACK (default) PERCENT, or ROWS
 void setStackType(int stackType)
          Set linechart stack type, either TOTAL (default), ITEM, or PERCENT.
 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
addLineSet, getDepth, getLineSeries, getLineValueLabel, getLineValueLabelRegion, getLineZWidth, setDepth, setLineSeries, setLineValueLabel, setLineValueLabelRegion, setLineZWidth
 
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 netcharts.pro.common.NFGraph
addChartActionListener, addGraphObserver, addNote, addPropertyChangeListener, display, dwellDisplay, dwellPress, finalize, getActiveClicks, getAlwaysUpdate, getAntiAlias, getBackgroundFillPattern, getBackgroundRegion, getCDL, getChartElementSpacing, getChartName, getChartSize, getColorTable, getDataActiveLabelsEnabled, 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, 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, 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
 

Field Detail

ROWS

public static final int ROWS
Row linechart type. The line sets are displayed separately. If depth is nonzero, then they will be displayed in separate rows, from front to back.

STACK

public static final int STACK
Stacked linechart type. The linesets are stacked on top of each other. That is, as each line set is drawn, it's values are added to previous values displayed. Negative and NULL values are treated as zero.

PERCENT

public static final int PERCENT
Percentage linechart type. The linesets are stacked on top of each other, normalized to 100 percent. That is, as each line set is drawn, it's values are added to previous values displayed and displayed as a percentage of the total of all values. Negative and NULL values are treated as zero. PERCENT also may be applied as a StackType - shows percentage value on popup.

TOTAL

public static final int TOTAL
Total value shown on popup when linechart type is stack total.

ITEM

public static final int ITEM
Discrete value shown on popup when linechart type is stack item value.

linechartTypeMap

public static java.util.Hashtable linechartTypeMap
linechart type hashtable

stackTypeMap

public static java.util.Hashtable stackTypeMap
linechart stack type hashtable
Constructor Detail

NFLinechart

public NFLinechart()
Constructs a default chart object.

NFLinechart

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

NFLinechart

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

NFLinechart

public NFLinechart(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.
Method Detail

getDefaultData

public java.lang.String getDefaultData()
Returns a string of default data
Overrides:
getDefaultData in class NFGraph

setLinechartType

public void setLinechartType(int type)
Set linechart type, either STACK (default) PERCENT, or ROWS
Parameters:
type -  

getLinechartType

public int getLinechartType()
Get linechart type, either STACK (default) PERCENT, or ROWS
Returns:
type

setStackType

public void setStackType(int stackType)
Set linechart stack type, either TOTAL (default), ITEM, or PERCENT. This parameter affects how data values will be shown on the mouseover popup. When stackType is TOTAL, the accumulated value of the stack lines will be shown. When stackType is ITEM, the value of the moused over segment will be displayed. When the stackType is PERCENT, the accumulated value is shown as a percentage.
Parameters:
stackType -  

getStackType

public int getStackType()
Get linechart stack type, either TOTAL (default), ITEM, or PERCENT. This parameter affects how data values will be shown on the mouseover popup. When stackType is TOTAL, the accumulated value of the stack lines will be shown. When stackType is ITEM, the value of the moused over segment will be displayed. When the stackType is PERCENT, the accumulated value is shown as a percentage.
Parameters:
stackType -  

getType

public int getType()
Gets the chart type.
Overrides:
getType in class NFGraph
Returns:
the type of this chart, always netcharts.pro.charts.line.NFGraph.LINE

writeExternal

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

writeChart

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

resetState

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

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 - 2004
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 1, 2004