Package diva.canvas.toolbox

Examples of diva.canvas.toolbox.BasicHighlighter


public class DebugRenderer extends AnimationRenderer {
    /** Create a new selection renderer with the default prototype
     *  decorator.
     */
    public DebugRenderer() {
        _prototypeDecorator = new BasicHighlighter(Color.magenta, 4.0f);
    }
View Full Code Here


    /** Create a new selection renderer with the default prototype
     *  decorator using the specified color.
     *  @param color The color for the highlight.
     */
    public AnimationRenderer(Color color) {
        _prototypeDecorator = new BasicHighlighter(color, 6.0f);
    }
View Full Code Here

     *  an outline rather than a filled shape.
     *  @param color The color for the highlight.
     *  @param stroke The stroke for the highlight.
     */
    public AnimationRenderer(Color color, Stroke stroke) {
        _prototypeDecorator = new BasicHighlighter(color, 4.0f, null, stroke);
    }
View Full Code Here

    /** Create a new selection renderer with the default prototype
     * decorator.
     */
    public BasicSelectionRenderer() {
        _prototypeDecorator = new BasicHighlighter();
    }
View Full Code Here

        public void mouseEntered(LayerEvent e) {
            Figure f = e.getFigureSource();
            _parent = (FigureContainer) f.getParent();

            if (_parent != null) {
                _high = new BasicHighlighter(java.awt.Color.red, 2.0f);
                _parent.decorate(f, _high);
            }
        }
View Full Code Here

        // create an fixed position, unresizable interactor
        SelectionModel model = _selectionInteractor.getSelectionModel();
        _fixedSelectionInteractor = new SelectionInteractor(model);
        // highlighting will draw a partially see-through rectangle over the figure
        Composite composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.75F);
        BasicHighlighter h = new BasicHighlighter(new Color(204, 204, 255), 1.0F, composite);
        _fixedSelectionInteractor.setPrototypeDecorator(h);
    }
View Full Code Here

TOP

Related Classes of diva.canvas.toolbox.BasicHighlighter

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.