Package org.antlr.works.ate.gutter

Examples of org.antlr.works.ate.gutter.ATEGutterItem


        g.setColor(Color.red);
        for (ItemInfo info : items) {
            Rectangle r = info.r;
            if (clip.intersects(r)) {
                ATEGutterItem item = info.item;
                int x = r.x;
                for(int t : item.getItemTypes()) {
                    ImageIcon i = item.getItemIcon(t);
                    g.drawImage(i.getImage(), x, r.y, null);
                    x += i.getIconWidth();
                }
            }
        }
View Full Code Here


                return top_r.contains(p);
        }
    }

    private int getItemTypeAtLocation(ItemInfo ii, Point location) {
        ATEGutterItem item = ii.item;
        int width = item.getItemWidth();
        for (int i = item.getItemTypes().size()-1; i >= 0; i--) {
            int t = item.getItemTypes().get(i);
            width -= item.getItemIcon(t).getIconWidth();
            if (location.x > ii.r.x + width) {
                return t;
            }
        }
        return -1;
View Full Code Here

TOP

Related Classes of org.antlr.works.ate.gutter.ATEGutterItem

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.