com.metsci.glimpse.axis
Enum UpdateMode
java.lang.Object
java.lang.Enum<UpdateMode>
com.metsci.glimpse.axis.UpdateMode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<UpdateMode>
public enum UpdateMode
- extends java.lang.Enum<UpdateMode>
Defines how this axis will interact with its linked parent and child axis and
how it responds to having its size adjusted.
MinMax update mode indicates that the minimum and maximum axis values do not
change when the axis is resized. When a linked axis is updated, this axis
adopts the minimum and maximum values of the linked axis. This is the default
behavior.
MinScale update mode indicates that the minimum axis value and the axis scale
(in values per pixel) do not change when the axis is resized (the maximum
value is updated). When a linked axis is updated, this axis adopts the minimum
and scale values of the linked axis.
CenterScale update mode indicates that the center axis value and axis scale
(in values per pixel) do not change when the axis is resized.
FixedPixel update mode indicates that when the axis is resized, the absolute
min and max are updated so that the values/pixel ratio is constant. When a
linked axis is updated, the axis does nothing.
Method Summary |
boolean |
isScalePreserving()
|
static UpdateMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UpdateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MinMax
public static final UpdateMode MinMax
MinScale
public static final UpdateMode MinScale
CenterScale
public static final UpdateMode CenterScale
FixedPixel
public static final UpdateMode FixedPixel
values
public static UpdateMode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (UpdateMode c : UpdateMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UpdateMode valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
isScalePreserving
public boolean isScalePreserving()
Copyright © 2012 Metron, Inc.. All Rights Reserved.