JHotDraw 6.0b1

org.jhotdraw.framework
Class FigureAttributeConstant

java.lang.Object
  extended by org.jhotdraw.framework.FigureAttributeConstant
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class FigureAttributeConstant
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A FigureAttribute is a constant for accessing a special figure attribute. It does not contain a value but just defines a unique attribute ID. Therefore, they provide a type-safe way of defining attribute constants. (SourceForge feature request ID: <>)

See Also:
Serialized Form

Field Summary
static FigureAttributeConstant ARROW_MODE
           
static java.lang.String ARROW_MODE_STR
           
static FigureAttributeConstant BOTTOM_MARGIN
           
static java.lang.String BOTTOM_MARGIN_STR
           
static FigureAttributeConstant FILL_COLOR
           
static java.lang.String FILL_COLOR_STR
           
static FigureAttributeConstant FONT_NAME
           
static java.lang.String FONT_NAME_STR
           
static FigureAttributeConstant FONT_SIZE
           
static java.lang.String FONT_SIZE_STR
           
static FigureAttributeConstant FONT_STYLE
           
static java.lang.String FONT_STYLE_STR
           
static FigureAttributeConstant FRAME_COLOR
           
static java.lang.String FRAME_COLOR_STR
           
static FigureAttributeConstant LEFT_MARGIN
           
static java.lang.String LEFT_MARGIN_STR
           
static FigureAttributeConstant LOCATION
           
static java.lang.String LOCATION_STR
           
static FigureAttributeConstant POPUP_MENU
           
static java.lang.String POPUP_MENU_STR
           
static FigureAttributeConstant RIGHT_MARGIN
           
static java.lang.String RIGHT_MARGIN_STR
           
static FigureAttributeConstant TEXT_COLOR
           
static java.lang.String TEXT_COLOR_STR
           
static FigureAttributeConstant TOP_MARGIN
           
static java.lang.String TOP_MARGIN_STR
           
static FigureAttributeConstant URL
           
static java.lang.String URL_STR
           
static FigureAttributeConstant XALIGNMENT
           
static java.lang.String XALIGNMENT_STR
           
static FigureAttributeConstant YALIGNMENT
           
static java.lang.String YALIGNMENT_STR
           
 
Constructor Summary
FigureAttributeConstant(java.lang.String newName)
           
 
Method Summary
 boolean equals(java.lang.Object compareObject)
           
static FigureAttributeConstant getConstant(int constantId)
           
static FigureAttributeConstant getConstant(java.lang.String constantName)
           
 int getID()
           
 java.lang.String getName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRAME_COLOR_STR

public static final java.lang.String FRAME_COLOR_STR
See Also:
Constant Field Values

FRAME_COLOR

public static final FigureAttributeConstant FRAME_COLOR

FILL_COLOR_STR

public static final java.lang.String FILL_COLOR_STR
See Also:
Constant Field Values

FILL_COLOR

public static final FigureAttributeConstant FILL_COLOR

TEXT_COLOR_STR

public static final java.lang.String TEXT_COLOR_STR
See Also:
Constant Field Values

TEXT_COLOR

public static final FigureAttributeConstant TEXT_COLOR

ARROW_MODE_STR

public static final java.lang.String ARROW_MODE_STR
See Also:
Constant Field Values

ARROW_MODE

public static final FigureAttributeConstant ARROW_MODE

FONT_NAME_STR

public static final java.lang.String FONT_NAME_STR
See Also:
Constant Field Values

FONT_NAME

public static final FigureAttributeConstant FONT_NAME

FONT_SIZE_STR

public static final java.lang.String FONT_SIZE_STR
See Also:
Constant Field Values

FONT_SIZE

public static final FigureAttributeConstant FONT_SIZE

FONT_STYLE_STR

public static final java.lang.String FONT_STYLE_STR
See Also:
Constant Field Values

FONT_STYLE

public static final FigureAttributeConstant FONT_STYLE

URL_STR

public static final java.lang.String URL_STR
See Also:
Constant Field Values

URL

public static final FigureAttributeConstant URL

LOCATION_STR

public static final java.lang.String LOCATION_STR
See Also:
Constant Field Values

LOCATION

public static final FigureAttributeConstant LOCATION

XALIGNMENT_STR

public static final java.lang.String XALIGNMENT_STR
See Also:
Constant Field Values

XALIGNMENT

public static final FigureAttributeConstant XALIGNMENT

YALIGNMENT_STR

public static final java.lang.String YALIGNMENT_STR
See Also:
Constant Field Values

YALIGNMENT

public static final FigureAttributeConstant YALIGNMENT

TOP_MARGIN_STR

public static final java.lang.String TOP_MARGIN_STR
See Also:
Constant Field Values

TOP_MARGIN

public static final FigureAttributeConstant TOP_MARGIN

RIGHT_MARGIN_STR

public static final java.lang.String RIGHT_MARGIN_STR
See Also:
Constant Field Values

RIGHT_MARGIN

public static final FigureAttributeConstant RIGHT_MARGIN

BOTTOM_MARGIN_STR

public static final java.lang.String BOTTOM_MARGIN_STR
See Also:
Constant Field Values

BOTTOM_MARGIN

public static final FigureAttributeConstant BOTTOM_MARGIN

LEFT_MARGIN_STR

public static final java.lang.String LEFT_MARGIN_STR
See Also:
Constant Field Values

LEFT_MARGIN

public static final FigureAttributeConstant LEFT_MARGIN

POPUP_MENU_STR

public static final java.lang.String POPUP_MENU_STR
See Also:
Constant Field Values

POPUP_MENU

public static final FigureAttributeConstant POPUP_MENU
Constructor Detail

FigureAttributeConstant

public FigureAttributeConstant(java.lang.String newName)
Method Detail

getName

public java.lang.String getName()

getID

public int getID()

equals

public boolean equals(java.lang.Object compareObject)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getConstant

public static FigureAttributeConstant getConstant(java.lang.String constantName)
Returns:
an existing constant for a given name or create a new one

getConstant

public static FigureAttributeConstant getConstant(int constantId)

JHotDraw 6.0b1