org.diyefi.openlogviewer.coloring
Enum InitialLineColoring

java.lang.Object
  extended by java.lang.Enum<InitialLineColoring>
      extended by org.diyefi.openlogviewer.coloring.InitialLineColoring
All Implemented Interfaces:
Serializable, Comparable<InitialLineColoring>

public enum InitialLineColoring
extends Enum<InitialLineColoring>

InitialLineColoring is used to provide the coloring for the GenericDataElements. The colors provided should be the most contrasting colors possible.

Author:
Ben Fenner

Enum Constant Summary
INSTANCE
           
 
Method Summary
 Color getBestAvailableColor()
           
 void giveBackColor(Color c)
           
static InitialLineColoring valueOf(String name)
          Returns the enum constant of this type with the specified name.
static InitialLineColoring[] 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

INSTANCE

public static final InitialLineColoring INSTANCE
Method Detail

values

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

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

valueOf

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

getBestAvailableColor

public Color getBestAvailableColor()

giveBackColor

public void giveBackColor(Color c)


Copyright © 2011 DIYEFI.org. All Rights Reserved.