Package org.joshy.gfx.node.layout

Examples of org.joshy.gfx.node.layout.Container


    }


    public void regenHandles(SNode node) {
        List<Handle> handles = selected.get(node);
        Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
        for(Handle h : handles) {
            for(Control c : h.getControls()) {
                popupLayer.remove(c);
                handleControls.remove(c);
            }
        }
        if(selected.containsKey(node)) {
            List<Handle> handles2 = selected.get(node);
View Full Code Here



    public void regenHandleControls(SNode node) {
        for(Handle h : selected.get(node)) {
            if(h.hasControls()) {
                Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
                for(Control c : h.getControls()) {
                    if(!handleControls.contains(c)) {
                        handleControls.add(c);
                        popupLayer.add(c);
                    }
                }
            }
        }
    }
View Full Code Here

    }


    private void clearHandleControls() {
        for(Control c : handleControls) {
            Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
            popupLayer.remove(c);
        }
        handleControls.clear();
    }
View Full Code Here

    protected void removeStopControl(MultiGradientFill.Stop activeStop) {
        Control colorPopup = colorControlMap.get(activeStop);
        controls.remove(colorPopup);
        colorControlMap.remove(activeStop);
        Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
        popupLayer.remove(colorPopup);

        Control alphaPopup = alphaControlMap.get(activeStop);
        controls.remove(alphaPopup);
        alphaControlMap.remove(activeStop);
        popupLayer.remove(alphaPopup);
    }
View Full Code Here

    }


    @Override
    void updateControlPositions() {
        Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
        Point2D start = new Point2D.Double(
                getFill().getStartX()+shape.getTransformedBounds().getX()
                ,getFill().getStartY()+shape.getTransformedBounds().getY());
        Point2D end = new Point2D.Double(
                getFill().getEndX() + shape.getTransformedBounds().getX(),
View Full Code Here

        couldDelete = false;
        super.mouseReleased(event, cursor);    //To change body of overridden methods use File | Settings | File Templates.
    }

    void updateControlPositions() {
        Container popupLayer = context.getSketchCanvas().getParent().getStage().getPopupLayer();
        for(MultiGradientFill.Stop stop : getFill().getStops()){
            Point2D pt = context.getSketchCanvas().transformToDrawing(
                    getX(),
                    getY() + getFill().getRadius()*stop.getPosition());
            pt = NodeUtils.convertToScene(context.getSketchCanvas(), pt);
View Full Code Here

TOP

Related Classes of org.joshy.gfx.node.layout.Container

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.