sky.monome
Enum Monome.MonomeSize


java.lang.Object

  extended by java.lang.Enum<Monome.MonomeSize>

      extended by sky.monome.Monome.MonomeSize

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Monome.MonomeSize>
Enclosing class:
Monome

public static enum Monome.MonomeSize
extends java.lang.Enum<Monome.MonomeSize>

Monome size.

Author:
PJ Skyman

Enum Constant Summary
MONOME_128
          Denotes a Monome 128 or a Monome 80h (16x8).
MONOME_256
          Denotes a Monome 256 or a Monome 100h (16x16).
MONOME_64
          Denotes a Monome 64 or a Monome 40h (8x8).
 
Method Summary
abstract  java.awt.Dimension getDimension()
          Returns the physical dimension equivalent to this Monome size.
static Monome.MonomeSize valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Monome.MonomeSize[] 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

MONOME_64


public static final Monome.MonomeSize MONOME_64
Denotes a Monome 64 or a Monome 40h (8x8).


MONOME_128


public static final Monome.MonomeSize MONOME_128
Denotes a Monome 128 or a Monome 80h (16x8). Note that this Monome should be used horizontally only.


MONOME_256


public static final Monome.MonomeSize MONOME_256
Denotes a Monome 256 or a Monome 100h (16x16).

Method Detail

values


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

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

valueOf


public static Monome.MonomeSize 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

getDimension


public abstract java.awt.Dimension getDimension()
Returns the physical dimension equivalent to this Monome size.

Returns:
The physical dimension equivalent to this Monome size.
Since:
SkyMonome v1.2