org.moxieapps.gwt.highcharts.client
Enum Chart.ZoomType

java.lang.Object
  extended by java.lang.Enum<Chart.ZoomType>
      extended by org.moxieapps.gwt.highcharts.client.Chart.ZoomType
All Implemented Interfaces:
Serializable, Comparable<Chart.ZoomType>
Enclosing class:
Chart

public static enum Chart.ZoomType
extends Enum<Chart.ZoomType>

An enumeration of supported chart zoom types, which can be passed to the Chart.setZoomType(ZoomType) method. The zoom type controls in what dimensions the user can zoom by dragging the mouse


Enum Constant Summary
X
          Allow zoom horizontally on the X axis only.
X_AND_Y
          Allow zooming both horizontally and vertically (both axes).
Y
          Allow zoom vertically on the Y axis only.
 
Method Summary
 String toString()
           
static Chart.ZoomType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Chart.ZoomType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

X

public static final Chart.ZoomType X
Allow zoom horizontally on the X axis only.


Y

public static final Chart.ZoomType Y
Allow zoom vertically on the Y axis only.


X_AND_Y

public static final Chart.ZoomType X_AND_Y
Allow zooming both horizontally and vertically (both axes).

Method Detail

values

public static Chart.ZoomType[] 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 (Chart.ZoomType c : Chart.ZoomType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Chart.ZoomType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<Chart.ZoomType>


Copyright © 2015. All Rights Reserved.