|
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
inetsoft.graph.scale.LinearScale
public class LinearScale
A linear scale is used to map numeric values on a linear scale.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.graph.scale.Scale |
|---|
Scale.Value |
| Field Summary |
|---|
| Fields inherited from class inetsoft.graph.scale.Scale |
|---|
GAPS, MAX_VALUE, MIN_VALUE, NO_NULL, RAW, TICKS, ZERO, ZERO_VALUE |
| Constructor Summary | |
|---|---|
LinearScale()
Default constructor. |
|
LinearScale(double min,
double max)
Create a scale with user specified min and max. |
|
LinearScale(String[] flds)
Create a scale for the specified column. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone this object. |
Object |
clone(boolean srange)
Clone this object. |
Number |
getIncrement()
Get the tick increment. |
double |
getMax()
Get the maximum value on the scale. |
double |
getMin()
Get the minimum value on the scale. |
Number |
getMinorIncrement()
Get the tick minor increment. |
double[] |
getMinorTicks()
Get the minor tick positions. |
ScaleRange |
getScaleRange()
Get the calculation stratgy for finding scale range. |
double[] |
getTicks()
Get the tick positions. |
int |
getUnitCount()
The unit count of a linear scale is the number of smallest intervals on the scale. |
Number |
getUserMax()
Get the user defined maximum value on the scale. |
Number |
getUserMin()
Get the user defined minimum value on the scale. |
Object[] |
getValues()
Get the values at each tick. |
void |
init(DataSet data)
Initialize the scale to use the values in the dataset. |
boolean |
isReversed()
Check whether the scale is reversed (from largest to smallest). |
boolean |
isSharedRange()
Check whether to share the range across an entire facet graph. |
protected double |
mapValue(double val)
Performing any mapping from the original value to the scale value (e.g. |
double |
mapValue(Object val)
Map a value to a logical position using this scale. |
void |
setIncrement(Number increment)
Set the tick increment. |
void |
setMax(Number max)
Set the maximum value of the scale. |
void |
setMin(Number min)
Set the minimum value of the scale. |
void |
setMinorIncrement(Number minorinc)
Set the tick minor increment. |
void |
setReversed(boolean reversed)
Set whether the scale should be reversed (from largest to smallest). |
void |
setScaleRange(ScaleRange range)
Set the calculation stratgy for finding scale range. |
void |
setSharedRange(boolean shared)
Set whether to share the range across an entire facet graph. |
String |
toString()
Get the string representation. |
double |
unmap(double val)
This is the reverse of mapValue. |
| Methods inherited from class inetsoft.graph.scale.Scale |
|---|
add, createScale, equals, getAxisSpec, getDataFields, getFields, getScaleOption, hashCode, map, setAxisSpec, setDataFields, setFields, setScaleOption |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LinearScale()
public LinearScale(double min,
double max)
public LinearScale(String[] flds)
| Method Detail |
|---|
public void setScaleRange(ScaleRange range)
public ScaleRange getScaleRange()
public void setReversed(boolean reversed)
public boolean isReversed()
public void init(DataSet data)
init in class Scaledata - is chart data table.public int getUnitCount()
getUnitCount in class Scalepublic double mapValue(Object val)
mapValue in class Scaleprotected double mapValue(double val)
public double unmap(double val)
public double getMin()
getMin in class Scalepublic void setMin(Number min)
public double getMax()
getMax in class Scalepublic void setMax(Number max)
public double[] getTicks()
getTicks in class Scalepublic Object[] getValues()
getValues in class Scalepublic Number getIncrement()
public void setIncrement(Number increment)
increment - the increment to set.public Number getMinorIncrement()
public void setMinorIncrement(Number minorinc)
minorinc - the minor increment to set.public double[] getMinorTicks()
public void setSharedRange(boolean shared)
public boolean isSharedRange()
public Object clone(boolean srange)
srange - true to share range, false otherwise.
public Object clone()
clone in class Scalepublic Number getUserMax()
public Number getUserMin()
public String toString()
toString in class Scale
|
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 | ||||||||