Package de.xima.fc.common.workflow.bpmn
Enum EContainerItemAlignment
- java.lang.Object
-
- java.lang.Enum<EContainerItemAlignment>
-
- de.xima.fc.common.workflow.bpmn.EContainerItemAlignment
-
- All Implemented Interfaces:
IWorkflowBpmnAlignmentSelector
,Serializable
,Comparable<EContainerItemAlignment>
public enum EContainerItemAlignment extends Enum<EContainerItemAlignment> implements IWorkflowBpmnAlignmentSelector
Predefined alignments for aligning boxes inside a container. The alignment function takes the size of the box and must return a value in the interval [0, size]. For example, when the function returns size / 2, the items are centered, which is similar to the CSS flexbox property align-items.- Since:
- 8.4.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CENTER
Aligns items at the center of the containerEND
Aligns items at the end of the containerPORT
Aligns items at their in / out ports, if available, otherwise at the center of the edgeSTART
Aligns items at the start of the container
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EContainerItemAlignment
valueOf(String name)
Returns the enum constant of this type with the specified name.static EContainerItemAlignment[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface de.xima.fc.interfaces.workflow.bpmn.IWorkflowBpmnAlignmentSelector
selectInPoint, selectOutPoint
-
-
-
-
Enum Constant Detail
-
START
public static final EContainerItemAlignment START
Aligns items at the start of the container
-
CENTER
public static final EContainerItemAlignment CENTER
Aligns items at the center of the container
-
END
public static final EContainerItemAlignment END
Aligns items at the end of the container
-
PORT
public static final EContainerItemAlignment PORT
Aligns items at their in / out ports, if available, otherwise at the center of the edge
-
-
Method Detail
-
values
public static EContainerItemAlignment[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EContainerItemAlignment c : EContainerItemAlignment.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EContainerItemAlignment valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-