Package org.jitterbit.ui.graph2d.edge

Examples of org.jitterbit.ui.graph2d.edge.LineSegmentGraphEdgeUi$ArrowHead


    private static final Color SIBLING_COLOR = new Color(0x648b4513, true);

    @Override
    public GraphEdgeUi2D createUi(Graph2D graph, GraphEdge edge) {
        LineSegmentGraphEdgeUi ui = null;
        if (edge instanceof OperationActivityEdge) {
            ui = new LineSegmentGraphEdgeUi(graph, edge);
            decorate((OperationActivityEdge) edge, ui);
        } else if (edge instanceof ScriptSourceEdge) {
            ui = new LineSegmentGraphEdgeUi(graph, edge);
            decorateScriptEdgeUi(ui);
        } else if (edge instanceof PipelineActivityEdge) {
            ui = new PipelineActivityEdgeUi((OperationGraph2D) graph, (PipelineActivityEdge) edge);
        } else {
            throw new RuntimeException("Unexpected edge type: " + edge);
        }
        if (EdgeTypePreference.get() == EdgeType.RIGHT_ANGLES) {
            LineSegmentFactory segmentFactory = new PerpendicularLineSegmentFactory(graph, edge);
            ui.setLineSegmentFactory(segmentFactory);
        }
        ui.setLineWidth(2);
        ui.setArrowSize(6);
        return ui;
    }
View Full Code Here


*/
public class DefaultEdgeUiFactory2D implements EdgeUiFactory2D {

    @Override
    public GraphEdgeUi2D createUi(Graph2D graph, GraphEdge edge) {
        return new LineSegmentGraphEdgeUi(graph, edge);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.graph2d.edge.LineSegmentGraphEdgeUi$ArrowHead

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.