org.jhotdraw.framework
Class FigureAttributeConstant
java.lang.Object
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: <>)
- Version:
- <$CURRENT_VERSION$>
- Author:
- Wolfram Kaiser
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
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
FigureAttributeConstant
public FigureAttributeConstant(java.lang.String newName)
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)