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
A IWorkflowBpmnPointsAccessor that assumes a circular shape whose diameter equals the width and height of the bounding box.
Since:
8.4.0
  • Enum Constant Details

    • INSTANCE

      public static final ECirclePointsAccessor INSTANCE
      The immutable singleton instance of the points accessor.
  • Method Details

    • values

      public static ECirclePointsAccessor[] 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

      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 name
      NullPointerException - if the argument is null
    • point

      public Point2DDouble point(Rectangular2DDouble box, String name)
      Description copied from interface: IWorkflowBpmnPointsAccessor
      See IWorkflowBpmnAlignmentItem.point(String). The first argument is the bounding box of the alignment item for which to obtain the point.
      Specified by:
      point in interface IWorkflowBpmnPointsAccessor
      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: IWorkflowBpmnPointsAccessor
      See IWorkflowBpmnAlignmentItem.point(ECardinalDirection2D, double). The first argument is the bounding box of the alignment item for which to obtain the point.
      Specified by:
      point in interface IWorkflowBpmnPointsAccessor
      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.