public static enum SvgUseUtil.Anchor extends java.lang.Enum<SvgUseUtil.Anchor>
Enum Constant and Description |
---|
BottomCenter |
BottomLeft |
BottomRight |
Center |
MiddleLeft |
MiddleRight |
TopCenter |
TopLeft |
TopRight |
Modifier and Type | Method and Description |
---|---|
float |
calcX(float parentPosX,
float parentWidth,
float childWidth,
SvgUseUtil.Margin margin) |
float |
calcY(float parentPosY,
float parentHeight,
float childHeight,
SvgUseUtil.Margin margin) |
static SvgUseUtil.Anchor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SvgUseUtil.Anchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SvgUseUtil.Anchor TopLeft
public static final SvgUseUtil.Anchor TopCenter
public static final SvgUseUtil.Anchor TopRight
public static final SvgUseUtil.Anchor MiddleLeft
public static final SvgUseUtil.Anchor Center
public static final SvgUseUtil.Anchor MiddleRight
public static final SvgUseUtil.Anchor BottomLeft
public static final SvgUseUtil.Anchor BottomCenter
public static final SvgUseUtil.Anchor BottomRight
public static SvgUseUtil.Anchor[] values()
for (SvgUseUtil.Anchor c : SvgUseUtil.Anchor.values()) System.out.println(c);
public static SvgUseUtil.Anchor valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic float calcX(float parentPosX, float parentWidth, float childWidth, SvgUseUtil.Margin margin)
public float calcY(float parentPosY, float parentHeight, float childHeight, SvgUseUtil.Margin margin)