Package de.xima.fc.common.workflow.bpmn
Enum ECirclePointsAccessor
- java.lang.Object
-
- java.lang.Enum<ECirclePointsAccessor>
-
- de.xima.fc.common.workflow.bpmn.ECirclePointsAccessor
-
- All Implemented Interfaces:
IWorkflowBpmnPointsAccessor,Serializable,Comparable<ECirclePointsAccessor>
public enum ECirclePointsAccessor extends Enum<ECirclePointsAccessor> implements IWorkflowBpmnPointsAccessor
AIWorkflowBpmnPointsAccessorthat assumes a circular shape whose diameter equals the width and height of the bounding box.- Since:
- 8.4.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe immutable singleton instance of the points accessor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Point2DDoublepoint(Rectangular2DDouble boundingBox, ECardinalDirection2D direction, double ratio)Point2DDoublepoint(Rectangular2DDouble box, String name)static ECirclePointsAccessorvalueOf(String name)Returns the enum constant of this type with the specified name.static ECirclePointsAccessor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ECirclePointsAccessor INSTANCE
The immutable singleton instance of the points accessor.
-
-
Method Detail
-
values
public static ECirclePointsAccessor[] 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 (ECirclePointsAccessor c : ECirclePointsAccessor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECirclePointsAccessor 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
-
point
public Point2DDouble point(Rectangular2DDouble box, String name)
Description copied from interface:IWorkflowBpmnPointsAccessorSeeIWorkflowBpmnAlignmentItem.point(String). The first argument is thebounding boxof the alignment item for which to obtain the point.- Specified by:
pointin interfaceIWorkflowBpmnPointsAccessor- Parameters:
box- The bounding box of the alignment item.name- The name of the point to obtain.- Returns:
- The named point of the alignment item, relative to the top-left corner of the bounding box, or null when no such point exists.
-
point
public Point2DDouble point(Rectangular2DDouble boundingBox, ECardinalDirection2D direction, double ratio)
Description copied from interface:IWorkflowBpmnPointsAccessorSeeIWorkflowBpmnAlignmentItem.point(ECardinalDirection2D, double). The first argument is thebounding boxof the alignment item for which to obtain the point.- Specified by:
pointin interfaceIWorkflowBpmnPointsAccessor- Parameters:
boundingBox- The bounding box of the alignment item.direction- The direction from which to obtain the point. This points towards an edge the alignment item's bounding box.ratio- The ratio of the distance from the left or top part of the edge pointed to by the given direction.- Returns:
- The point on the edge of the alignment item, relative to the top-left corner of the bounding box.
-
-