Enum FlowOrientation

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FlowOrientation>

    public enum FlowOrientation
    extends java.lang.Enum<FlowOrientation>
    The orientation of a particular flow; its axis and direction.
    Author:
    Garret Wilson
    • Method Detail

      • values

        public static FlowOrientation[] 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 (FlowOrientation c : FlowOrientation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FlowOrientation valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getGlyph

        public java.net.URI getGlyph()
        Returns:
        The resource reference for the glyph, using the session's default orientation.
      • getAxis

        public Axis getAxis()
        Returns:
        The axis of the flow.
      • getDirection

        public Flow.Direction getDirection()
        Returns:
        The direction of the flow on the axis.
      • getCompassPoint

        public CompassPoint getCompassPoint​(Flow.End end)
        Retrieves a cardinal compass point indicating the absolute direction based upon the given flow end.
        Parameters:
        end - The end of the flow.
        Returns:
        The cardinal compass point indicating the absolute direction of the given end.
        Throws:
        java.lang.NullPointerException - if the given end is null.
        See Also:
        CompassPoint.NORTH, CompassPoint.EAST, CompassPoint.SOUTH, CompassPoint.WEST