|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.scale.Scale
public abstract class Scale
A scale defines the measurement of a dimension. A scale is used to map a value to its position in the logical coordinate space. The actual position of the rendering for the corresponding graph element is determined by the coordinates and their transformations.
| Nested Class Summary | |
|---|---|
static class |
Scale.Value
This class calculate a dynamic scaled value. |
| Field Summary | |
|---|---|
static int |
GAPS
Init option to reserve a small gap at min and max. |
static Object |
MAX_VALUE
This is a special value that will be mapped to the max of the scale. |
static Object |
MIN_VALUE
This is a special value that will be mapped to the min of the scale. |
static int |
NO_NULL
Init option to ignore null values. |
static int |
RAW
Init option to use the actual data range without any change. |
static int |
TICKS
Init option to include ticks in scale range. |
static int |
ZERO
Init option to include zero in scale range. |
static Object |
ZERO_VALUE
This is a special value that will be mapped to the min or zero (if zero is greater than min). |
| Constructor Summary | |
|---|---|
protected |
Scale()
Create an empty scale. |
protected |
Scale(String[] flds)
Create a scale for the specified columns. |
| Method Summary | |
|---|---|
double |
add(double v1,
double v2)
Add two mapped values to get the total value. |
Object |
clone()
Clone this object. |
static Scale |
createScale(DataSet data,
String[] cols)
Get the default scale for a column. |
boolean |
equals(Object obj)
Check if equals another object. |
AxisSpec |
getAxisSpec()
Get the associated axis attributes. |
String[] |
getDataFields()
Get the columns this scale is initialized from. |
String[] |
getFields()
Get the columns this scale is used to measure. |
abstract double |
getMax()
Get the max value on the scale. |
abstract double |
getMin()
Get the min value on the scale. |
int |
getScaleOption()
Get the scale initialization option, e.g. |
abstract double[] |
getTicks()
Get the tick positions. |
int |
getUnitCount()
Get the number of units if the space is divided into partitions. |
abstract Object[] |
getValues()
Get the values at each tick. |
int |
hashCode()
Get the hash code value. |
abstract void |
init(DataSet data)
Initialize the scale to use the values in the chartLens. |
double |
map(Object val)
Map a value to a logical position using this scale. |
abstract double |
mapValue(Object val)
Map a value to a logical position using this scale. |
void |
setAxisSpec(AxisSpec axisSpec)
Set the attribute for creating the axis for this scale. |
void |
setDataFields(String[] fields)
Set the columns this scale is initialized from. |
void |
setFields(String[] fields)
Set the columns this scale is used to measure. |
void |
setScaleOption(int option)
Set the scale initialization option, e.g. |
String |
toString()
Get the string representation. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TICKS
public static final int ZERO
public static final int NO_NULL
public static final int GAPS
public static final int RAW
public static final Object MIN_VALUE
public static final Object MAX_VALUE
public static final Object ZERO_VALUE
| Constructor Detail |
|---|
protected Scale()
protected Scale(String[] flds)
| Method Detail |
|---|
public static Scale createScale(DataSet data,
String[] cols)
public final double map(Object val)
public abstract double mapValue(Object val)
public abstract void init(DataSet data)
data - is chart data table.public int getScaleOption()
public void setScaleOption(int option)
public abstract double getMin()
public abstract double getMax()
public abstract double[] getTicks()
public abstract Object[] getValues()
public String[] getFields()
public void setFields(String[] fields)
public String[] getDataFields()
public void setDataFields(String[] fields)
public void setAxisSpec(AxisSpec axisSpec)
public AxisSpec getAxisSpec()
public double add(double v1,
double v2)
v1 - the specified mapped value a.v2 - the specified mapped value b.
public int getUnitCount()
public Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||