org.moxieapps.gwt.highcharts.client
Enum BaseChart.PinchType

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

public static enum BaseChart.PinchType
extends Enum<BaseChart.PinchType>

An enumeration of supported chart pinch types, which can be passed to the BaseChart.setPinchType(PinchType) method. The pinch type controls in what dimensions the user can zoom by pinching, if pinching is enabled.

Since:
1.6.0

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 BaseChart.PinchType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BaseChart.PinchType[] 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 BaseChart.PinchType X
Allow zoom horizontally on the X axis only.


Y

public static final BaseChart.PinchType Y
Allow zoom vertically on the Y axis only.


X_AND_Y

public static final BaseChart.PinchType X_AND_Y
Allow zooming both horizontally and vertically (both axes).

Method Detail

values

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

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

valueOf

public static BaseChart.PinchType 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<BaseChart.PinchType>


Copyright © 2015. All Rights Reserved.