net.sf.latexdraw.actions
Enum ModifyMagneticGrid.GridProperties

java.lang.Object
  extended by java.lang.Enum<ModifyMagneticGrid.GridProperties>
      extended by net.sf.latexdraw.actions.ModifyMagneticGrid.GridProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ModifyMagneticGrid.GridProperties>
Enclosing class:
ModifyMagneticGrid

public static enum ModifyMagneticGrid.GridProperties
extends java.lang.Enum<ModifyMagneticGrid.GridProperties>

The different properties of the magnetic grid that can be modified.


Enum Constant Summary
GRID_SPACING
          Modification of the spacing between the lines of the grid.
MAGNETIC
          Defines if the grid must be magnetic.
STYLE
          Modification of the style of the grid.
 
Method Summary
abstract  boolean isValidValue(java.lang.Object object)
           
static ModifyMagneticGrid.GridProperties valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ModifyMagneticGrid.GridProperties[] 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

STYLE

public static final ModifyMagneticGrid.GridProperties STYLE
Modification of the style of the grid.


MAGNETIC

public static final ModifyMagneticGrid.GridProperties MAGNETIC
Defines if the grid must be magnetic.


GRID_SPACING

public static final ModifyMagneticGrid.GridProperties GRID_SPACING
Modification of the spacing between the lines of the grid.

Method Detail

values

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

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

valueOf

public static ModifyMagneticGrid.GridProperties 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

isValidValue

public abstract boolean isValidValue(java.lang.Object object)
Parameters:
object - The value to test.
Returns:
True: if the type of the given value matches the type of the property.
Since:
3.0