com.github.croesch.micro_debug.gui.settings
Enum IntegerSettings

java.lang.Object
  extended by java.lang.Enum<IntegerSettings>
      extended by com.github.croesch.micro_debug.gui.settings.IntegerSettings
All Implemented Interfaces:
Serializable, Comparable<IntegerSettings>

public enum IntegerSettings
extends Enum<IntegerSettings>

Provides some integer settings, that may be modified by the user.

Since:
Date: May 11, 2012
Author:
croesch

Enum Constant Summary
MAIN_FRAME_HEIGHT
          the initial height of the main frame
MAIN_FRAME_SLIDER_CODE_TEXTAREAS
          the position of the slider between code and textareas
MAIN_FRAME_SLIDER_MACRO_MICRO
          the position of the slider between textarea for macro code and the one for micro code
MAIN_FRAME_SLIDER_PROCESSOR_DEBUGGER
          the position of the slider between textareas of processor and debugger
MAIN_FRAME_SLIDER_REGISTER_MEMORY
          the position of the slider between register and memory
MAIN_FRAME_SLIDER_REGISTERMEMORY_REST
          the position of the slider between register, memory and the rest (code and textareas)
MAIN_FRAME_WIDTH
          the initial width of the main frame
MEMORY_WORDS_VISIBLE
          the number of words displayed at once to the user
 
Method Summary
 int getValue()
          Returns the value of this setting.
static IntegerSettings valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IntegerSettings[] 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

MEMORY_WORDS_VISIBLE

public static final IntegerSettings MEMORY_WORDS_VISIBLE
the number of words displayed at once to the user


MAIN_FRAME_WIDTH

public static final IntegerSettings MAIN_FRAME_WIDTH
the initial width of the main frame


MAIN_FRAME_HEIGHT

public static final IntegerSettings MAIN_FRAME_HEIGHT
the initial height of the main frame


MAIN_FRAME_SLIDER_REGISTER_MEMORY

public static final IntegerSettings MAIN_FRAME_SLIDER_REGISTER_MEMORY
the position of the slider between register and memory


MAIN_FRAME_SLIDER_REGISTERMEMORY_REST

public static final IntegerSettings MAIN_FRAME_SLIDER_REGISTERMEMORY_REST
the position of the slider between register, memory and the rest (code and textareas)


MAIN_FRAME_SLIDER_CODE_TEXTAREAS

public static final IntegerSettings MAIN_FRAME_SLIDER_CODE_TEXTAREAS
the position of the slider between code and textareas


MAIN_FRAME_SLIDER_PROCESSOR_DEBUGGER

public static final IntegerSettings MAIN_FRAME_SLIDER_PROCESSOR_DEBUGGER
the position of the slider between textareas of processor and debugger


MAIN_FRAME_SLIDER_MACRO_MICRO

public static final IntegerSettings MAIN_FRAME_SLIDER_MACRO_MICRO
the position of the slider between textarea for macro code and the one for micro code

Method Detail

values

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

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

valueOf

public static IntegerSettings 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

getValue

public int getValue()
Returns the value of this setting.

Returns:
the value of this setting, read from the properties file.
Since:
Date: Feb 25, 2012


Copyright © 2012. All Rights Reserved.