|
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.PowerScale
public class PowerScale
A power scale maps numeric values by raising it to the power of a specified number.
| 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 | |
|---|---|
PowerScale()
Default constructor. |
|
PowerScale(double min,
double max)
Create a scale with user specified min and max. |
|
PowerScale(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. |
double |
getExponent()
Get the power to raise to. |
double[] |
getMinorTicks()
Minor ticks are not supported by power scale. |
double[] |
getTicks()
Get the tick positions. |
Object[] |
getValues()
Get the values at each tick. |
protected double |
mapValue(double val)
Return the power value. |
void |
setExponent(double power)
Set the power to raise to. |
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 PowerScale()
public PowerScale(double min,
double max)
public PowerScale(String[] fields)
| Method Detail |
|---|
public void setExponent(double power)
public double getExponent()
protected double mapValue(double val)
mapValue in class LinearScalepublic double unmap(double val)
unmap 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[] 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 | ||||||||