Examples of Overlay


Examples of resmedicinae.record.topology.Overlay

     * */
    public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf,
                                                  int row, boolean hasFocus) {
        super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
        if (value.getClass() == Overlay.class) {
            Overlay overlay = (Overlay)value;
            ImageIcon icon;
            if(overlay.isAlternative()){
                icon = new ImageIcon(RecordModel.RelativeIconDirectoryName + "altTreeIcon.gif");
                setForeground(Color.GRAY);
            }else{
                icon = new ImageIcon(RecordModel.RelativeIconDirectoryName + "regionTreeIcon.gif");
                setForeground(Color.BLACK);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.