|
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
inetsoft.graph.scale.LogScale
public class LogScale
A log scale maps numeric values on a logarithmic 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 | |
|---|---|
LogScale()
Default constructor. |
|
LogScale(double min,
double max)
Create a scale with user specified min and max. |
|
LogScale(String[] fields)
Create a scale for the specified columns. |
|
| Method Summary | |
|---|---|
double |
add(double v1,
double v2)
Add two mapped values to get the total value. |
int |
getBase()
Get the base of the log. |
double[] |
getMinorTicks()
Minor ticks are not supported by log scale. |
double[] |
getTicks()
Get the tick positions. |
Object[] |
getValues()
Get the values at each tick. |
protected double |
mapValue(double val)
Return the log value. |
void |
setBase(int base)
Set the base of the log. |
double |
unmap(double val)
This is the reverse of mapValue. |
| Methods inherited from class inetsoft.graph.scale.LinearScale |
|---|
clone, clone, getIncrement, getMax, getMin, getMinorIncrement, getScaleRange, getUnitCount, getUserMax, getUserMin, init, isReversed, isSharedRange, mapValue, setIncrement, setMax, setMin, setMinorIncrement, setReversed, setScaleRange, setSharedRange, toString |
| Methods inherited from class inetsoft.graph.scale.Scale |
|---|
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 LogScale()
public LogScale(double min,
double max)
public LogScale(String[] fields)
| Method Detail |
|---|
public void setBase(int base)
public int getBase()
protected double mapValue(double val)
mapValue in class LinearScale
public double add(double v1,
double v2)
add in class Scalev1 - the specified mapped value a.v2 - the specified mapped value b.
public double unmap(double val)
unmap in class LinearScalepublic double[] getTicks()
getTicks in class LinearScalepublic Object[] getValues()
getValues in class LinearScalepublic double[] getMinorTicks()
getMinorTicks in class LinearScale
|
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 | ||||||||