Package com.cburch.logisim.comp

Examples of com.cburch.logisim.comp.ComponentDrawContext


    @Override
    public void paintIcon(java.awt.Component c, Graphics g,
            int x, int y) {
        // draw tool icon
        Graphics gIcon = g.create();
        ComponentDrawContext context = new ComponentDrawContext(c, null, null, g, gIcon);
        comp.getFactory().paintIcon(context, x, y, comp.getAttributeSet());
        gIcon.dispose();

        if (triangleState != TRIANGLE_NONE) {
            int[] xp;
View Full Code Here


        }

        @Override
        public void paintIcon(Component comp, Graphics g, int x, int y) {
            Graphics gNew = g.create();
            tool.paintIcon(new ComponentDrawContext(comp, null, null, g, gNew), x + 2, y + 2);
            gNew.dispose();
        }
View Full Code Here

TOP

Related Classes of com.cburch.logisim.comp.ComponentDrawContext

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.