cz.cuni.amis.nb.pogamut.options
Enum TimelinePanel.MapColor

Package class diagram package TimelinePanel.MapColor
java.lang.Object
  extended by java.lang.Enum<TimelinePanel.MapColor>
      extended by cz.cuni.amis.nb.pogamut.options.TimelinePanel.MapColor
All Implemented Interfaces:
Serializable, Comparable<TimelinePanel.MapColor>
Enclosing class:
TimelinePanel

public static enum TimelinePanel.MapColor
extends Enum<TimelinePanel.MapColor>

List of preferrences of colors related to visualization of map.


Enum Constant Summary
HIGH_COLOR_KEY
           
LOW_COLOR_KEY
           
WAYPOINTS_COLOR_KEY
           
 
Method Summary
 Color getDefaultColor()
          Get default color of the preferrence
 int getDegaultARGB()
          Get defualt color represented by in in format defined in Color.getRGB()
 String getPrefKey()
          Get preferences key for TimelinePanel.
static TimelinePanel.MapColor valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TimelinePanel.MapColor[] 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

LOW_COLOR_KEY

public static final TimelinePanel.MapColor LOW_COLOR_KEY

HIGH_COLOR_KEY

public static final TimelinePanel.MapColor HIGH_COLOR_KEY

WAYPOINTS_COLOR_KEY

public static final TimelinePanel.MapColor WAYPOINTS_COLOR_KEY
Method Detail

values

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

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

valueOf

public static TimelinePanel.MapColor 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

getPrefKey

public String getPrefKey()
Get preferences key for TimelinePanel.

Get the value of preference through NbPreferences.forModule(TimelinePanel.class).getBoolean(String prefKey, boolean ifNothingSet)

Returns:

getDegaultARGB

public int getDegaultARGB()
Get defualt color represented by in in format defined in Color.getRGB()

Returns:

getDefaultColor

public Color getDefaultColor()
Get default color of the preferrence

Returns:


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.