Package org.apache.felix.example.extenderbased.host.extension

Examples of org.apache.felix.example.extenderbased.host.extension.SimpleShape


    {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
            RenderingHints.VALUE_ANTIALIAS_ON);
        SimpleShape shape = m_frame.getShape(m_shapeName);
        shape.draw(g2, new Point(getWidth()/2, getHeight()/2));
    }
View Full Code Here


            // Get the icon resource of the extension.
            String iconPath = dict.get(SimpleShape.ICON_PROPERTY);
            Icon icon = new ImageIcon(bundle.getResource(iconPath));
            // Get the class of the extension.
            String className = dict.get(SimpleShape.CLASS_PROPERTY);
            SimpleShape shape = new DefaultShape(bundle.getBundleContext(),
                bundle.getBundleId(), className);
            processAdd(name, icon, shape);
            return shape;
        }
View Full Code Here

TOP

Related Classes of org.apache.felix.example.extenderbased.host.extension.SimpleShape

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.