|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcckit.graphic.Anchor
Anchor of a graphical element. There exist only the three
instances LEFT_BOTTOM
, CENTER
, and
RIGHT_TOP
.
The anchor factor can be used in a position formular. Its value for the three instances reads:
Instance | Factor |
---|---|
LEFT_BOTTOM | 0 |
CENTER | 1 |
RIGHT_TOP | 2 |
Field Summary | |
static Anchor |
CENTER
Anchor constant. |
static Anchor |
LEFT_BOTTOM
Anchor constant. |
static Anchor |
RIGHT_TOP
Anchor constant. |
Method Summary | |
int |
getFactor()
Returns the factor. |
static Anchor |
getHorizontalAnchor(ConfigParameters config,
java.lang.String key,
Anchor defaultValue)
Returns form the specified configuration parameters the horizontal anchor defined by the specified key or the specified default value. |
static Anchor |
getVerticalAnchor(ConfigParameters config,
java.lang.String key,
Anchor defaultValue)
Returns form the specified configuration parameters the vertical anchor defined by the specified key or the specified default value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Anchor LEFT_BOTTOM
public static final Anchor CENTER
public static final Anchor RIGHT_TOP
Method Detail |
public static Anchor getHorizontalAnchor(ConfigParameters config, java.lang.String key, Anchor defaultValue)
config
- Configuration parameters.key
- The key of the anchor. null is not allowed.defaultValue
- The default value.
FactoryException
- if the value of key is
neither left, center,
nor right.
Note, that FactoryException.getClassName()
returns the invalid value.public static Anchor getVerticalAnchor(ConfigParameters config, java.lang.String key, Anchor defaultValue)
config
- Configuration parameters.key
- The key of the anchor. null is not allowed.defaultValue
- The default value.
FactoryException
- if the value of key is
neither top, center,
nor bottom.
Note, that FactoryException.getClassName()
returns the invalid value.public int getFactor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |