Пример #1
0
 @Override
 public Component getTableCellRendererComponent(
     JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
   JLabel label =
       (JLabel)
           super.getTableCellRendererComponent(
               table, value, isSelected, hasFocus, row, column);
   GuiHelper.setBackgroundReadable(label, UIManager.getColor("Table.background"));
   if (value != null) { // Fix #8159
     String t = value.toString();
     for (ImageryInfo l : layers) {
       if (l.getExtendedUrl().equals(t)) {
         GuiHelper.setBackgroundReadable(label, IMAGERY_BACKGROUND_COLOR.get());
         break;
       }
     }
     label.setToolTipText((String) value);
   }
   return label;
 }
Пример #2
0
 public static Color getFadeColorWithAlpha() {
   Color c = PROP_FADE_COLOR.get();
   return new Color(c.getRed(), c.getGreen(), c.getBlue(), PROP_FADE_AMOUNT.get() * 255 / 100);
 }
Пример #3
0
 public static Color getFadeColor() {
   return PROP_FADE_COLOR.get();
 }