Chart FX 7 for Java Server

com.softwarefx.chartfx.server
Interface IDataArray


public interface IDataArray

The IDataArray interface provides access to the chart's data in a multi-dimensional way.


Method Summary
 void clear()
          Removes all of the values.
 double get(int point)
          Returns the element at the specified position in the IDataArray.
 double get(int series, int point)
          Returns the element at the specified position in the IDataArray.
 CompactFormulaListener getCompactFormula()
          Gets the CompactFormula.
 boolean isNotEmpty()
          Error: Member IDataArray.NotEmpty member not found
 boolean isShared()
          Gets the Shared.
 void set(int point, double value)
          Replaces the element at the specified position in the IDataArray collection with the specified element.
 void set(int series, int point, double value)
          Replaces the element at the specified position in the IDataArray collection with the specified element.
 void setCompactFormula(CompactFormulaListener value)
          Sets the Data Compacting Formula.
 void setShared(boolean value)
          If true, means the value is shared for all series.
 

Method Detail

clear

void clear()

Removes all of the values.


get

double get(int point)

Returns the element at the specified position in the IDataArray.

Parameters:
point - Index of the point to return.

get

double get(int series,
           int point)

Returns the element at the specified position in the IDataArray.

Parameters:
series - Index of the series to return.
point - Index of the point to return.

getCompactFormula

CompactFormulaListener getCompactFormula()

Gets the CompactFormula. For more detail see setCompactFormula(com.softwarefx.chartfx.server.CompactFormulaListener).


isNotEmpty

boolean isNotEmpty()

Error: Member IDataArray.NotEmpty member not found

ERROR: Doc member not found


isShared

boolean isShared()

Gets the Shared. For more detail see setShared(boolean).


set

void set(int point,
         double value)

Replaces the element at the specified position in the IDataArray collection with the specified element.

Parameters:
point - Index of the point to set.
value - The item to add to the IDataArray collection

set

void set(int series,
         int point,
         double value)

Replaces the element at the specified position in the IDataArray collection with the specified element.

Parameters:
series - Index of the series to set.
point - Index of the point to set.
value - The item to add to the IDataArray collection

setCompactFormula

void setCompactFormula(CompactFormulaListener value)

Sets the Data Compacting Formula.

Remarks:
  • By default, Chart FX utilizes the CompactFormulas.getMin().

  • When compacting, the data will require summarization of some form. Chart FX allows you to specify how to summarize data in the form of a data compacting formula. For convenience, Chart FX provides predefined formulas for popular compacting schemes such as First, Last, Min, Max, and Average.

  • See Also:
    DataValues.setCompactedBy(double), DataValues.compact(double), DataValues, CompactFormulas

    setShared

    void setShared(boolean value)

    If true, means the value is shared for all series.

    Remarks:
  • This property is used to set a X value that is the same for all chart's series.


  • http://www.softwarefx.com

    2008 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
    All other names are trademarks or registered trademarks of their respective owners.