JHotDraw 7.3.1

org.jhotdraw.draw
Enum AttributeKeys.Underfill

java.lang.Object
  extended by java.lang.Enum<AttributeKeys.Underfill>
      extended by org.jhotdraw.draw.AttributeKeys.Underfill
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AttributeKeys.Underfill>
Enclosing class:
AttributeKeys

public static enum AttributeKeys.Underfill
extends java.lang.Enum<AttributeKeys.Underfill>


Enum Constant Summary
CENTER
          If FILL_UNDER_STROKE is put to this value, the area under the stroke is filled to the center of the stroke.
FULL
          If FILL_UNDER_STROKE is put to this value, the area under the stroke will be filled.
NONE
          If FILL_UNDER_STROKE is put to this value, the area under the stroke will not be filled.
 
Method Summary
static AttributeKeys.Underfill valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AttributeKeys.Underfill[] 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

NONE

public static final AttributeKeys.Underfill NONE
If FILL_UNDER_STROKE is put to this value, the area under the stroke will not be filled.


CENTER

public static final AttributeKeys.Underfill CENTER
If FILL_UNDER_STROKE is put to this value, the area under the stroke is filled to the center of the stroke. This is the default behavior of Graphics2D.fill(Shape), Graphics2D.draw(Shape) when using the same shape object.


FULL

public static final AttributeKeys.Underfill FULL
If FILL_UNDER_STROKE is put to this value, the area under the stroke will be filled.

Method Detail

values

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

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

valueOf

public static AttributeKeys.Underfill 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

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.