Enum SequenceAnnotationInterval.Direction

    • Method Detail

      • values

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

        public static SequenceAnnotationInterval.Direction 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
      • isDirectedLeft

        public final boolean isDirectedLeft()
      • isDirectedRight

        public final boolean isDirectedRight()
      • valueOf

        public static SequenceAnnotationInterval.Direction valueOf​(boolean isDirectedLeft,
                                                                   boolean isDirectedRight)
        Parameters:
        isDirectedLeft - whether the desired direction should point left
        isDirectedRight - whether the desired direction should point right
        Returns:
        A direction d with d.isDirectedLeft()==isDirectedLeft and d.isDirectedRight==isDirectedRight
      • reverse

        public SequenceAnnotationInterval.Direction reverse()
        The opposite direction from this one, i.e. the same as this direction if the direction is symmetric, and otherwise the mirrored direction.
        Returns:
        opposite direction
      • toArrowString

        public java.lang.String toArrowString()
        Returns:
        This direction represented as a text arrow, one of { "-", "<-", "->" "<->"}.