Package org.antlr.xjlib.appkit.gview.shape

Examples of org.antlr.xjlib.appkit.gview.shape.SLinkElbow


                child, GLink.ANCHOR_TOP,
                GLink.SHAPE_ELBOW, "", 0);
        link.setDraggable(DRAGGABLE);

        /** Configure the link geometry */
        SLinkElbow l = (SLinkElbow)link.getLink();
        l.setOutOffsetLength(10);
        l.getArrow().setLength(6);

        /** Add the link and the child */
        parent.addElement(link);
        parent.addElement(child);
    }
View Full Code Here


    }

    protected SLink createLinkInstance() {
        switch(shape) {
            case SHAPE_ARC: return new SLinkArc();
            case SHAPE_ELBOW: return new SLinkElbow();
            case SHAPE_BEZIER: return new SLinkBezier();
        }
        return null;
    }
View Full Code Here

            startAnchorKey = startElement.getAnchorKeyClosestToPoint(mousePosition);

            linkArc = new SLinkArc();
            linkArc.setStartTangentOffset(startElement.getDefaultAnchorOffset(startAnchorKey));

            linkElbow = new SLinkElbow();

            if(view.defaultLinkShape() == GLink.SHAPE_ARC)
                linkElement = linkArc;
            else
                linkElement = linkElbow;
View Full Code Here

TOP

Related Classes of org.antlr.xjlib.appkit.gview.shape.SLinkElbow

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.