Package org.flexdock.dockbar.util

Examples of org.flexdock.dockbar.util.TextIcon


        mBorder = new RoundedLineBorder(Color.lightGray, 3);
        setBorder(new CompoundBorder(new EmptyBorder(new Insets(1, 1, 1, 1)), mBorder));

        addMouseListener(this);

        TextIcon icon = new TextIcon(this, 2, 1);
        setIcon(icon);
        updateIcon();
        icon.validate();
    }
View Full Code Here


        Icon dockIcon = p.getDockbarIcon();
        if(dockIcon==null)
            dockIcon = p.getTabIcon();
        String text = p.getDockableDesc();

        TextIcon icon = (TextIcon)obj;
        icon.setIcon(dockIcon);
        icon.setText(text);
        icon.setRotation(rotation);
    }
View Full Code Here

        Icon  tmp = getIcon();
        if(!(tmp instanceof TextIcon))
            return super.getPreferredSize();

        Insets insets = getInsets();
        TextIcon icon = (TextIcon)tmp;

        int w = insets.left + icon.getIconWidth() + insets.right;
        int h = insets.top + icon.getIconHeight() + insets.bottom;
        return new Dimension(w, h);
    }
View Full Code Here

TOP

Related Classes of org.flexdock.dockbar.util.TextIcon

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.