Examples of DBNColor


Examples of com.dci.intellij.dbn.common.ui.DBNColor

        EnvironmentType defaultEnvironmentType = forName(name);
        if (defaultEnvironmentType != null) {
            if (id == null) id = defaultEnvironmentType.getId();
            if (color != null && color.getRegularRgb() == color.getDarkRgb()) {
                color = new DBNColor(color.getRegularRgb(), defaultEnvironmentType.getColor().getDarkRgb());
            }
        }
        if (id == null) id = name.toLowerCase();

    }
View Full Code Here

Examples of com.dci.intellij.dbn.common.ui.DBNColor

        if (StringUtil.isEmptyOrSpaces(value)) return defaultValue;
        int index = value.indexOf("/");
        if (index > -1) {
            int rgbBright = Integer.parseInt(value.substring(0, index));
            int rgbDark = Integer.parseInt(value.substring(index + 1));
            return new DBNColor(new Color(rgbBright), new Color(rgbDark));
        } else {
            int rgb = Integer.parseInt(value);
            return new DBNColor(rgb, rgb);
        }
    }
View Full Code Here

Examples of com.dci.intellij.dbn.common.ui.DBNColor

            } else if (columnIndex == 1) {
                environmentType.setDescription((String) o);
            } else if (columnIndex == 2) {
                Color color = (Color) o;
                DBNColor environmentColor = environmentType.getColor();
                if (environmentColor == null) {
                    environmentColor = new DBNColor(color, color);
                } else {
                    environmentColor = environmentColor.set(color);
                }
                environmentType.setColor(environmentColor);
            }

            notifyListeners(rowIndex, rowIndex, columnIndex);
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.