EspressReport 6.6

quadbase.util
Interface IDataLineSet


public interface IDataLineSet

This interface contains methods to add/remove data lines from the chart. Properties of the data lines can be changed by methods declared in IDataLine.

A handle to an object that implements this interface can be obtained by calling the gethDataLines method defined in QbChart.

See Also:
IDataLine

Method Summary
 void add(IDataLine l)
          Adds a new data line to the chart.
 java.util.Enumeration elements()
          Returns the list of data lines defined in the chart.
 IControlLine newControlLine(int linetype, java.lang.String label)
          Create a new control line to add to the chart.
 IFunctionLine newFunctionLine(IFunction func, java.lang.String label)
          Create a new Function line to add to the chart.
 IHorzVertLine newHorzVertLine(int linetype, java.lang.String label)
          Create a new horizontal/vertical line to add to the chart.
 ITrendLine newTrendLine(int linetype, int coeff, java.lang.String title)
          Create a new data line to add to the chart.
 void remove(IDataLine l)
          Delete the specified data line from the chart.
 void removeAll()
          Removes all the data lines currently defined in the chart.
 void set(java.util.Enumeration elements)
          Sets a list of data lines in the chart.
 

Method Detail

newTrendLine

ITrendLine newTrendLine(int linetype,
                        int coeff,
                        java.lang.String title)
Create a new data line to add to the chart. Properties of this trend line can be modified by calling methods declared in ITrendLine.

Parameters:
linetype - Any line type defined in quadbase.util.ITrendLine
coeff - If the trend line is type POLYNOMIAL, it will set the degree. If the line type is SIMPLE_AVERAGE, TRIANGULAR_AVERAGE and EXPONENTIAL_AVERAGE it will set the period. All other line types should be given a value of 1.
title - The title of the trend line
Returns:
A handle to ITrendLine
See Also:
ITrendLine

newHorzVertLine

IHorzVertLine newHorzVertLine(int linetype,
                              java.lang.String label)
Create a new horizontal/vertical line to add to the chart. Properties of this line can be modified by calling methods declared in IHorzVertLine.

Parameters:
linetype - Any line type defined in quadbase.util.IHorzVertLine
label - Line label
Returns:
A handle to IHorzVertLine
See Also:
IHorzVertLine

newControlLine

IControlLine newControlLine(int linetype,
                            java.lang.String label)
Create a new control line to add to the chart. Properties of this line can be modified by calling methods declared in IControlLine.

Parameters:
linetype - Any line type defined in quadbase.util.IControlLine
label - Line label
Returns:
A handle to IControlLine
See Also:
IControlLine

newFunctionLine

IFunctionLine newFunctionLine(IFunction func,
                              java.lang.String label)
Create a new Function line to add to the chart. Properties of this line can be modified by calling methods declared in IFunctionLine.

Parameters:
func - The function
label - The line label
Returns:
A handle to IFunctionLine
See Also:
IFunctionLine, IFunction

add

void add(IDataLine l)
Adds a new data line to the chart.

Associated QbChart property: None

Parameters:
l - The data line to add to the chart.
See Also:
IDataLine

remove

void remove(IDataLine l)
Delete the specified data line from the chart.

Associated QbChart property: None

Parameters:
l - The data line to remove from the chart.

removeAll

void removeAll()
Removes all the data lines currently defined in the chart.


elements

java.util.Enumeration elements()
Returns the list of data lines defined in the chart.

Associated QbChart property: None

Returns:
The list of data lines. All items in the list are of type quadbase.util.IDataLine.
See Also:
IDataLine

set

void set(java.util.Enumeration elements)
Sets a list of data lines in the chart.

Parameters:
elements - The list of new data lines to add to the chart. Each element of the list should be of type quadbase.util.IDataLine.
See Also:
IDataLine

EspressReport 6.6