public static Shape createArrowShape( int direction, boolean chevron, float w, float h ) {
		switch( direction ) {
			case SwingConstants.NORTH:	return createPath( !chevron, 0,h, (w / 2f),0, w,h );
			case SwingConstants.SOUTH:	return createPath( !chevron, 0,0, (w / 2f),h, w,0 );
			case SwingConstants.WEST:	return createPath( !chevron, w,0, 0,(h / 2f), w,h );
			case SwingConstants.EAST:	return createPath( !chevron, 0,0, w,(h / 2f), 0,h );
			default:					return new Path2D.Float();
		}
	}
Creates a chevron or triangle arrow shape for the given direction and size.
<p>
The chevron shape is an open path that can be painted with {@link Graphics2D#draw(Shape)}.
The triangle shape is a close path that can be painted with {@link Graphics2D#fill(Shape)}.

@param direction the arrow direction ({@link SwingConstants#NORTH}, {@link SwingConstants#SOUTH}
       {@link SwingConstants#WEST} or {@link SwingConstants#EAST})
@param chevron {@code true} for chevron arrow, {@code false} for triangle arrow
@param w the width of the returned shape
@param h the height of the returned shape

@since 1.1
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatUIUtils.java