Enum AnimationLayer2D.Type

java.lang.Object
java.lang.Enum<AnimationLayer2D.Type>
org.bzdev.anim2d.AnimationLayer2D.Type
All Implemented Interfaces:
Serializable, Comparable<AnimationLayer2D.Type>
Enclosing class:
AnimationLayer2D

public static enum AnimationLayer2D.Type extends Enum<AnimationLayer2D.Type>
An enum denoting the type of objects for known instances of Graph.Graphic. This is used by various factories.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The object is an arc with a chord connecting its endpoint.
    The object is an open arc.
    The object is an arc with lines from the center of an ellipse overlaying the arc to the arc's end points.
    The object is a path with a specified control point (at most two control points may appear consecutively).
    The object is a cubic Bézier curve.
    The object is an ellipse.
    The object is an image.
    The object is a line.
    The object is a path with a 'MOVE_TO' operation.
    The next descriptor, a SPLINE or SPLINE_FUNCTION, determines the coordinates for a 'MOVE_TO' operation.
    An object type has not been specified.
    Indicates the end of data describing a path.
    Indicates the start of data describing a path.
    The object is a quadratic Bézier curve.
    The object is a rectangle.
    The object is rectangle with rounded corners.
    Indicates that a path segment is closed.
    Indicates the end of a path segment.
    Indicates the end of a path segment but with the ending coordinates determined by the next entry, which is either a SPLINE_POINT or a SPLINE_FUNCTION that also starts a new spline
    Indicates the end of a path segment but with the ending coordinates determined by the previous entry, which is either a SPLINE_POINT or a SPLINE_FUNCTION
    Indicates that the object is an instance of AnimationShape2D.
    Indicates that functions will be used to obtain a sequence of spline points for a path.
    Indicates a spline point along a path.
    The object consists of text.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NULL

      public static final AnimationLayer2D.Type NULL
      An object type has not been specified.
    • ARC_CHORD

      public static final AnimationLayer2D.Type ARC_CHORD
      The object is an arc with a chord connecting its endpoint.
    • ARC_OPEN

      public static final AnimationLayer2D.Type ARC_OPEN
      The object is an open arc.
    • ARC_PIE

      public static final AnimationLayer2D.Type ARC_PIE
      The object is an arc with lines from the center of an ellipse overlaying the arc to the arc's end points.
    • CONTROL_POINT

      public static final AnimationLayer2D.Type CONTROL_POINT
      The object is a path with a specified control point (at most two control points may appear consecutively).
    • CUBIC_CURVE

      public static final AnimationLayer2D.Type CUBIC_CURVE
      The object is a cubic Bézier curve.
    • ELLIPSE

      public static final AnimationLayer2D.Type ELLIPSE
      The object is an ellipse.
    • IMAGE

      public static final AnimationLayer2D.Type IMAGE
      The object is an image.
    • LINE

      public static final AnimationLayer2D.Type LINE
      The object is a line.
    • MOVE_TO

      public static final AnimationLayer2D.Type MOVE_TO
      The object is a path with a 'MOVE_TO' operation.
    • MOVE_TO_NEXT

      public static final AnimationLayer2D.Type MOVE_TO_NEXT
      The next descriptor, a SPLINE or SPLINE_FUNCTION, determines the coordinates for a 'MOVE_TO' operation.
    • PATH_START

      public static final AnimationLayer2D.Type PATH_START
      Indicates the start of data describing a path.
    • PATH_END

      public static final AnimationLayer2D.Type PATH_END
      Indicates the end of data describing a path.
    • QUAD_CURVE

      public static final AnimationLayer2D.Type QUAD_CURVE
      The object is a quadratic Bézier curve.
    • RECTANGLE

      public static final AnimationLayer2D.Type RECTANGLE
      The object is a rectangle.
    • ROUND_RECTANGLE

      public static final AnimationLayer2D.Type ROUND_RECTANGLE
      The object is rectangle with rounded corners.
    • SEG_CLOSE

      public static final AnimationLayer2D.Type SEG_CLOSE
      Indicates that a path segment is closed.
    • SEG_END

      public static final AnimationLayer2D.Type SEG_END
      Indicates the end of a path segment.
    • SEG_END_PREV

      public static final AnimationLayer2D.Type SEG_END_PREV
      Indicates the end of a path segment but with the ending coordinates determined by the previous entry, which is either a SPLINE_POINT or a SPLINE_FUNCTION
    • SEG_END_NEXT

      public static final AnimationLayer2D.Type SEG_END_NEXT
      Indicates the end of a path segment but with the ending coordinates determined by the next entry, which is either a SPLINE_POINT or a SPLINE_FUNCTION that also starts a new spline
    • SPLINE_POINT

      public static final AnimationLayer2D.Type SPLINE_POINT
      Indicates a spline point along a path.
    • SPLINE_FUNCTION

      public static final AnimationLayer2D.Type SPLINE_FUNCTION
      Indicates that functions will be used to obtain a sequence of spline points for a path.
    • SHAPE

      public static final AnimationLayer2D.Type SHAPE
      Indicates that the object is an instance of AnimationShape2D.
    • TEXT

      public static final AnimationLayer2D.Type TEXT
      The object consists of text.
  • Method Details

    • values

      public static AnimationLayer2D.Type[] 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 AnimationLayer2D.Type 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