Enum EUprightRhombusPointsAccessor
java.lang.Object
java.lang.Enum<EUprightRhombusPointsAccessor>
de.xima.fc.common.workflow.bpmn.EUprightRhombusPointsAccessor
- All Implemented Interfaces:
IWorkflowBpmnPointsAccessor, Serializable, Comparable<EUprightRhombusPointsAccessor>
public enum EUprightRhombusPointsAccessor
extends Enum<EUprightRhombusPointsAccessor>
implements IWorkflowBpmnPointsAccessor
A
IWorkflowBpmnPointsAccessor that assumes a rhomboid shape (upright diamond) whose width and height equals
the width and height of the bounding box.- Since:
- 8.4.0
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionpoint(Rectangular2DDouble boundingBox, ECardinalDirection2D direction, double ratio) point(Rectangular2DDouble box, String name) Returns the enum constant of this type with the specified name.static EUprightRhombusPointsAccessor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The immutable singleton instance of the points accessor.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
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.
-