Package diva.canvas

Examples of diva.canvas.FigureContainer


            public void run() {
                synchronized (AnimationRenderer.this) {
                    if (_decorators.containsKey(figure)) {
                        ((Figure) _decorators.get(figure)).repaint();
                    } else {
                        FigureContainer parent = (FigureContainer) figure
                                .getParent();

                        if (parent != null) {
                            FigureDecorator d = _prototypeDecorator
                                    .newInstance(figure);
                            parent.decorate(figure, d);
                            _decorators.put(figure, d);
                        }
                    }
                }
            }
View Full Code Here


     */
    public void renderSelected(Figure figure) {
        if (_decorators.containsKey(figure)) {
            ((Figure) _decorators.get(figure)).repaint();
        } else {
            FigureContainer parent = (FigureContainer) figure.getParent();

            if (parent != null) {
                FigureDecorator d = _prototypeDecorator.newInstance(figure);
                parent.decorate(figure, d);
                _decorators.put(figure, d);
            }
        }
    }
View Full Code Here

        } else {
            //debug("NOT OVER ANY TARGET: " + _target);
            // Look for a target. The container we need to pick
            // in is the one that has a transform context
            // FIXME: this doesn't deal properly with hierarchy
            FigureContainer container;
            Object component = _connector.getTransformContext().getComponent();

            if (component instanceof CanvasPane) {
                container = (FigureContainer) _connector.getLayer();
            } else {
View Full Code Here

TOP

Related Classes of diva.canvas.FigureContainer

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.