|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ValueScale>
org.knime.base.node.viz.aggregation.ValueScale
public enum ValueScale
Enumeration of different value scales.
| Enum Constant Summary | |
|---|---|
ORIGINAL
The original scaling. |
|
PERCENT
Percentage scaling. |
|
| Method Summary | |
|---|---|
String |
getActionCommand()
Should return the ButtonGroup wide unique action command. |
static ValueScale |
getDefaultMethod()
|
String |
getExtension()
|
static ValueScale |
getScale4Command(String action)
Returns the scale for the given action command. |
String |
getText()
|
String |
getToolTip()
|
boolean |
isDefault()
|
double |
scale(double value,
double totalValue)
|
static ValueScale |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ValueScale[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ValueScale ORIGINAL
public static final ValueScale PERCENT
| Method Detail |
|---|
public static ValueScale[] values()
for (ValueScale c : ValueScale.values()) System.out.println(c);
public static ValueScale valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getActionCommand()
Enum.name() method.
getActionCommand in interface ButtonGroupEnumInterfacepublic String getText()
getText in interface ButtonGroupEnumInterfacepublic String getToolTip()
getToolTip in interface ButtonGroupEnumInterfacenullpublic String getExtension()
public static ValueScale getDefaultMethod()
public boolean isDefault()
isDefault in interface ButtonGroupEnumInterfacetrue if this is the default option
public double scale(double value,
double totalValue)
value - the value to scaletotalValue - the total value used to calculate percentage
public static ValueScale getScale4Command(String action)
null or has length zero the method returns the default
scale.
action - the action command to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||