NetCharts Pro

netcharts.pro.datamodel
Class NFDataModelAdapter

java.lang.Object
  |
  +--netcharts.pro.datamodel.NFDataModelAdapter
All Implemented Interfaces:
NFDataModel

public abstract class NFDataModelAdapter
extends java.lang.Object
implements NFDataModel

This object can be used to abstract multidimensional data. For other known dimensions, please check NFDataModel1D, NFDataModel2D, NFDataModel3D NFDataModelStock, etc.


Field Summary
 java.lang.Object dataObject
          Constructor provided data object.
 boolean hasMoreData
           
 java.lang.Object userData
           
 
Constructor Summary
NFDataModelAdapter()
          NFDataModelAdapter constructor that does not set the underlying data object.
NFDataModelAdapter(java.lang.Object dataObject)
          NFDataModelAdapter constructor that sets the underlying data object.
 
Method Summary
abstract  java.lang.Object elementAt(int rowIndex)
          Objects implementing this method are intended to provide access to one dimensional data.
abstract  java.lang.Object elementAt(int row, int nthDimension)
          Objects implementing this method are intended to provide access to multidimensional data.
abstract  int getDataDimensions()
          returns the number of dimensions in the data
abstract  int getNRows()
          returns the number of rows in the data
 boolean hasMoreData()
          returns false if there is no more data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataObject

public java.lang.Object dataObject
Constructor provided data object.

hasMoreData

public boolean hasMoreData

userData

public java.lang.Object userData
Constructor Detail

NFDataModelAdapter

public NFDataModelAdapter()
NFDataModelAdapter constructor that does not set the underlying data object. Used when the implementing class will not rely on the underlying data object after initialization.

NFDataModelAdapter

public NFDataModelAdapter(java.lang.Object dataObject)
NFDataModelAdapter constructor that sets the underlying data object. Used when the implementing class will rely on the underlying data object after initialization to retrieve the values.
Parameters:
dataObject -  
Method Detail

hasMoreData

public boolean hasMoreData()
returns false if there is no more data.
Specified by:
hasMoreData in interface NFDataModel

getNRows

public abstract int getNRows()
returns the number of rows in the data
Specified by:
getNRows in interface NFDataModel

getDataDimensions

public abstract int getDataDimensions()
returns the number of dimensions in the data
Specified by:
getDataDimensions in interface NFDataModel

elementAt

public abstract java.lang.Object elementAt(int rowIndex)
Objects implementing this method are intended to provide access to one dimensional data.
Specified by:
elementAt in interface NFDataModel

elementAt

public abstract java.lang.Object elementAt(int row,
                                           int nthDimension)
Objects implementing this method are intended to provide access to multidimensional data. row indexes start at 0, col indexes start at 0 The netcharts rendering engines expect the following: Two dimensional data is in the form X,Y (X in first dimension, Y in second) Three dimensional data is in the form X,Y,Z Stock data is in the form High, Low, Open, Close Therefore, if a XY Chart requests data for row 2, col 1 it expects the information coming back is a 'Y' value.
Specified by:
elementAt in interface NFDataModel

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