@Override
	protected void paintIcon( Component c, Graphics2D g ) {
		setStyleColorFromTreeUI( c, g );
		rotate( c, g );

		String arrowType = getStyleFromTreeUI( c, ui -> ui.iconArrowType );
		boolean chevron = (arrowType != null) ? FlatUIUtils.isChevron( arrowType ) : this.chevron;

		if( chevron ) {
			// chevron arrow
			g.setStroke( new BasicStroke( 1f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER ) );
			if( path == null )
				path = FlatUIUtils.createPath( false, 3.5,1.5, 7.5,5.5, 3.5,9.5 );
			g.draw( path );
		} else {
			// triangle arrow
			if( path == null )
				path = FlatUIUtils.createPath( 2,1, 2,10, 10,5.5 );
			g.fill( path );
		}
	}
"collapsed" icon for {@link javax.swing.JTree}.

@uiDefault Component.arrowType				String	chevron (default) or triangle
@uiDefault Tree.icon.collapsedColor			Color

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/icons/FlatTreeCollapsedIcon.java