public enum ImageAlign extends java.lang.Enum<ImageAlign>
ShapeNode.setImageAlign(com.mindfusion.diagramming.ImageAlign)
method of the ShapeNode
and
TableNode
classes.Enum Constant and Description |
---|
BottomCenter
The image is aligned to the bottom-center point of the node.
|
BottomLeft
The image is aligned to the bottom-left corner of the node.
|
BottomRight
The image is aligned to the bottom-right corner of the node.
|
Center
The image is centered.
|
Fit
The image is resized to fit the node, preserving its original x/y ratio.
|
FitBottom
The image is resized to fit the size of the object and aligned to bottom side.
|
FitLeft
The image is resized to fit the size of the object and aligned to left side.
|
FitRight
The image is resized to fit the size of the object and aligned to right side.
|
FitTop
The image is resized to fit the size of the object and aligned to top side.
|
MiddleLeft
The image is aligned to the middle-left point of the node.
|
MiddleRight
The image is aligned to the middle-right point of the node.
|
Stretch
The image is stretched to fill the node.
|
Tile
The image is tiled across the node area.
|
TopCenter
The image is aligned to the top-center point of the node.
|
TopLeft
The image is aligned to the top-left corner of the node.
|
TopRight
The image is aligned to the top-right corner of the node.
|
Modifier and Type | Method and Description |
---|---|
static ImageAlign |
fromInt(int intVal) |
int |
getValue() |
static ImageAlign |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageAlign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageAlign Center
public static final ImageAlign Fit
public static final ImageAlign Stretch
public static final ImageAlign Tile
public static final ImageAlign TopLeft
public static final ImageAlign BottomLeft
public static final ImageAlign TopRight
public static final ImageAlign BottomRight
public static final ImageAlign TopCenter
public static final ImageAlign BottomCenter
public static final ImageAlign MiddleLeft
public static final ImageAlign MiddleRight
public static final ImageAlign FitLeft
public static final ImageAlign FitTop
public static final ImageAlign FitRight
public static final ImageAlign FitBottom
public static ImageAlign[] values()
for (ImageAlign c : ImageAlign.values()) System.out.println(c);
public static ImageAlign 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 static ImageAlign fromInt(int intVal)
public int getValue()