Package org.eclipse.swt.graphics

Examples of org.eclipse.swt.graphics.Color.dispose()


    }

    // Farben wieder frei geben.
    colorBorderCurrentPerson.dispose();
    colorBorderNearPerson.dispose();
    colorBorderOtherPerson.dispose();
  }

  /**
   * @see de.chris_soft.fyllgen.widget.FamilyModel#clear()
   */
 
View Full Code Here


      drawParentChildLine(gc, p1, p2);
    }

    // Farben wieder freigeben.
    colorLineCurrentPerson.dispose();
    colorLineOtherPerson.dispose();
  }

  /**
   * Zeichnet eine Linie zwischen zwei Partnern.
   */
 
View Full Code Here

    }

    // Farben wieder frei geben.
    colorBorderCurrentPerson.dispose();
    colorBorderNearPerson.dispose();
    colorBorderOtherPerson.dispose();
  }

  /**
   * @see de.chris_soft.fyllgen.widget.FamilyModel#clear()
   */
 
View Full Code Here

          comp.setLayout(new FormLayout());

          Label button = new Label(comp, SWT.BORDER);
          Color color = OptionData.instance.getColor(key);
          button.setBackground(color);
          color.dispose();
          FormData fd = new FormData();
          fd.top = new FormAttachment(0, 0);
          fd.bottom = new FormAttachment(100, 0);
          fd.right = new FormAttachment(15, 0);
          fd.left = new FormAttachment(0, 0);
View Full Code Here

        }
        else if (type == Color.class) {
          Label label = (Label) controls.get(key);
          Color color = label.getBackground();
          OptionData.instance.setColor(key, color);
          color.dispose();
        }
        else {
          throw new RuntimeException("Typ " + type.getName() + " nicht beachtet!");
        }
      }
View Full Code Here

      Control control = (Control) e.widget;
      ColorDialog cd = new ColorDialog(shell);
      Color color = control.getBackground();
      RGB rgb = color.getRGB();
      cd.setRGB(rgb);
      color.dispose();
      rgb = cd.open();
      if (rgb != null) {
        color = new Color(SwtConsts.display, rgb);
        control.setBackground(color);
        color.dispose();
View Full Code Here

      color.dispose();
      rgb = cd.open();
      if (rgb != null) {
        color = new Color(SwtConsts.display, rgb);
        control.setBackground(color);
        color.dispose();
      }
    }
  }
}
View Full Code Here

    }

    // Farben wieder frei geben.
    colorBorderCurrentPerson.dispose();
    colorBorderNearPerson.dispose();
    colorBorderOtherPerson.dispose();
  }

  /**
   * F�gt den Listen alle Eltern und Kinder in den angegebenen Generationen
   * hinzu.
 
View Full Code Here

        Color color = new Color(Display.getCurrent(), rgbs[rgbs.length
            * i / width]);
        graphics.setForegroundColor(color);
        graphics.drawLine((int) (leftX + i * xLeftRate), y + i,
            (int) (rightX - i * xRightRate), y + i);
        color.dispose();
      }
      graphics.popState();
    }
  }

View Full Code Here

        Color color = new Color(Display.getCurrent(), rgbs[rgbs.length
            * i / width]);
        graphics.setForegroundColor(color);
        graphics.drawLine(leftX + (int) (i * xLeftRate), y - i, rightX
            - (int) (i * xRightRate), y - i);
        color.dispose();
      }
      graphics.popState();
    }
  }

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.