/* ZArrowMainTestCls.java */
package org.jfx.scene.shape2d.jfxtras;

import static javafx.application.Application.launch;
import javafx.scene.Group;
import javafx.scene.paint.Color;

/**
 * This application is only used for test.
 *
 * @author ZZZ. No copyright(c). Public Domain.
 */
public class ZArrowMainTestCls extends ZAbsMainTestCls {

    @Override
    protected void fillSceneContent(Group g2) {
        // 
        drawShape(g2, new ZArrowCls(20, 20, 100, 60), Color.RED);
        drawShape(g2, new ZArrowCls(140, 20, 100, 60, 0.5f, 0.2f), Color.GREEN);
        drawShape(g2, new ZArrowCls(20, 100, 100, 60, 0.75f, 0.5f), Color.BLUE);
        drawShape(g2, new ZArrowCls(140, 100, 100, 60, 0.25f, 0.5f), Color.ORANGE);
        //
        drawShape(g2, new ZArrowCls(20, 200, 100, 60, 0.5, 0.5), 180, Color.MAGENTA);// 45 No rotation
        drawShape(g2, new ZArrowCls(140, 200, 100, 60, 0.5, 0.5), 0, Color.CYAN); // 180 No rotation
        //
    }

    /**
     * The main() method is ignored in correctly deployed JavaFX application.
     * main() serves only as fallback in case the application can not be
     * launched through deployment artifacts, e.g., in IDEs with limited FX
     * support. NetBeans ignores main().
     *
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }
}
