Style Intelligence v12.0

inetsoft.graph.scale
Interface ScaleRange

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
AbstractScaleRange, LinearRange, StackRange

public interface ScaleRange
extends Cloneable, Serializable

This defines the interface for calculating the max and min of a numeric scale.


Method Summary
 double[] calculate(DataSet dataset, String[] cols)
          Calculate the range of values of the specified columns.
 double getValue(Object data)
          Get the value.
 boolean isAbsoluteValue()
          Check whether to force all values to be converted to absolute value.
 void setAbsoluteValue(boolean abs)
          Set whether to force all values to be converted to absolute value.
 

Method Detail

getValue

double getValue(Object data)
Get the value.


setAbsoluteValue

void setAbsoluteValue(boolean abs)
Set whether to force all values to be converted to absolute value.


isAbsoluteValue

boolean isAbsoluteValue()
Check whether to force all values to be converted to absolute value.


calculate

double[] calculate(DataSet dataset,
                   String[] cols)
Calculate the range of values of the specified columns.

Parameters:
dataset - the dataset.
cols - the numeric columns to find range values.
Returns:
an array of two values, minimum and maximum of the range.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.