Examples of Color


Examples of org.eclipse.swt.graphics.Color

    if (display == null || display.isDisposed())
      return;

    Utils.execSWTThread(new AERunnable() {
      public void runSupport() {
        Color colorTables = display.getSystemColor(SWT.COLOR_LIST_BACKGROUND);
        HSLColor hslColor = new HSLColor();
        hslColor.initHSLbyRGB(colorTables.getRed(), colorTables.getGreen(),
            colorTables.getBlue());

        int lum = hslColor.getLuminence();
        int sat = hslColor.getSaturation();
        int hue = hslColor.getHue();
        if (lum > 127) {
View Full Code Here

Examples of org.emftext.language.models.Color

   * <!-- end-user-doc -->
   * @generated
   */
  public void setHair(Color newHair)
  {
    Color oldHair = hair;
    hair = newHair == null ? HAIR_EDEFAULT : newHair;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ModelsPackage.MODEL__HAIR, oldHair, hair));
  }
View Full Code Here

Examples of org.exoplatform.webui.form.ext.UIFormColorPicker.Colors.Color

      {
         w.write("<div class='UIColorLine'>");
         int j = 0;
         while (j <= items() && count < size())
         {
            Color color = getColors()[count];
            String actionLink = "javascript:eXo.webui.UIColorPicker.setColor('" + color.getName() + "')";
            w
               .write("<a href=\""
                  + actionLink
                  + "\" class=\""
                  + color.getName()
                  + " ColorCell \" onmousedown=\"event.cancelBubble=true\"><img src=\"/eXoResources/skin/sharedImages/Blank.gif\" /></a>");
            count++;
            j++;
         }
         w.write("</div>");
View Full Code Here

Examples of org.fusesource.jansi.Ansi.Color

    private Color getColor(String style) {
        if (!useColor) {
            return noDecoration;
        }

        Color color = colors.get(style);
        if (color == null) {
            color = createColor(style);
            colors.put(style, color);
        }
View Full Code Here

Examples of org.gephi.preview.api.Color

    public void renderGraphLabelBorders(Graph graph) {
    }

    public void renderNode(Node node) {
        Point center = node.getPosition();
        Color c = node.getColor();
        Color bc = node.getBorderColor();

        cb.setRGBColorStroke(bc.getRed(), bc.getGreen(), bc.getBlue());
        cb.setLineWidth(node.getBorderWidth());
        cb.setRGBColorFill(c.getRed(), c.getGreen(), c.getBlue());
        cb.circle(center.getX(), -center.getY(), node.getRadius());
        cb.fillStroke();
    }
View Full Code Here

Examples of org.getspout.spoutapi.gui.Color

      for (Team t : zone.getTeams()) {
        // team name
        String teamStr = t.getName() + " (" + t.getPlayers().size() + "/" + t.getTeamConfig().resolveInt(TeamConfig.TEAMSIZE) + ")";
        line = new GenericLabel(teamStr);
        if (t.getPlayers().size() == 0) {
          line.setTextColor(new Color(100,100,100));
        }
        else {
          line.setText(t.getKind().getColor() + teamStr.replace("(", ChatColor.GRAY + "(" + ChatColor.WHITE).replace(")", ChatColor.GRAY + ")" + ChatColor.WHITE));
        }
            line.setAnchor(WidgetAnchor.TOP_LEFT)
              .setX(3)
              .setY(4 + lineCounter * LINE_HEIGHT_WITH_MARGIN)
              .setWidth(GenericLabel.getStringWidth(line.getText()))
              .setHeight(LINE_HEIGHT);
            teamlines.add(line);
            lineCounter++;
      }
     
      // We need to find the longest name
      for (GenericLabel l : teamlines) {
        if (GenericLabel.getStringWidth(l.getText()) > teamMax) {
          teamMax = GenericLabel.getStringWidth(l.getText());
        }
        if (teamsHeaderWidth > teamMax) {
          teamMax = teamsHeaderWidth;
        }
      }
     
      // points header
      GenericLabel pointsHeader = new GenericLabel(ChatColor.GRAY + "score");
      int pointsHeaderWidth = GenericLabel.getStringWidth(pointsHeader.getText());
      pointsHeader.setAnchor(WidgetAnchor.TOP_LEFT)
        .setX(3 + teamMax + 2)
        .setY(2)
        .setWidth(pointsHeaderWidth)
        .setHeight(LINE_HEIGHT);
      lines.add(pointsHeader);
     
     
      lineCounter = 1;
      for (Team t : zone.getTeams()) {
        // scores
        line = new GenericLabel(t.getPoints() + "/" + t.getTeamConfig().resolveInt(TeamConfig.MAXSCORE));
        if (t.getPlayers().size() == 0) line.setTextColor(new Color(100, 100, 100));
            line.setAnchor(WidgetAnchor.TOP_LEFT)
              .setX(3 + teamMax + 4)
              .setY(4 + lineCounter * LINE_HEIGHT_WITH_MARGIN)
              .setWidth(GenericLabel.getStringWidth(line.getText()))
              .setHeight(LINE_HEIGHT);
            scorelines.add(line);
            lineCounter++;
      }
     
      for (GenericLabel l : scorelines) {
        if (GenericLabel.getStringWidth(l.getText()) > scoreMax) {
          scoreMax = GenericLabel.getStringWidth(l.getText());
        }
      }
      if (pointsHeaderWidth > scoreMax) {
        scoreMax = pointsHeaderWidth;
      }
     
      // lifepool header
      GenericLabel livesHeader = new GenericLabel(ChatColor.GRAY + "lives");
      int livesHeaderWidth = GenericLabel.getStringWidth(livesHeader.getText());
      livesHeader.setAnchor(WidgetAnchor.TOP_LEFT)
        .setX(3 + teamMax + 4 + scoreMax + 2)
        .setY(2)
        .setWidth(livesHeaderWidth)
        .setHeight(LINE_HEIGHT);
      lines.add(livesHeader);
     
     
      // and finally, lives.
      lineCounter = 1;
      for (Team t : zone.getTeams()) {
        line = new GenericLabel(t.getRemainingLifes() + "/" + t.getTeamConfig().resolveInt(TeamConfig.LIFEPOOL));
        if (t.getPlayers().size() == 0) line.setTextColor(new Color(100, 100, 100));
            line.setAnchor(WidgetAnchor.TOP_LEFT)
              .setX(3 + teamMax + 4 + scoreMax + 4)
              .setY(4 + lineCounter * LINE_HEIGHT_WITH_MARGIN)
              .setWidth(GenericLabel.getStringWidth(line.getText()))
              .setHeight(LINE_HEIGHT);
View Full Code Here

Examples of org.gwtwidgets.client.style.Color

   * Create a new instance of JSCalendar.
   * Default constructor
   * @param imgLocation - the path to the image to use for the button
   */
  public JSCalendar(String imgLocation) {
    this(imgLocation, new Color(255, 0, 0));
  }
View Full Code Here

Examples of org.internna.iwebmvc.model.core.Color

    @Override
    public void initialize(ContextHolder context) {
        name = new I18nText();
        name.initialize(context);
        color = new Color();
    }
View Full Code Here

Examples of org.moxie.console.Ansi.Color

      if (!StringUtils.isEmpty(dep.classifier)) {
        ansi.fg(Color.BLACK).a(':').fg(Color.CYAN).a(dep.classifier);
      }
     
      Color extColor;
      if (Constants.POM.equals(ext)) {
        extColor = Color.MAGENTA;
      } else {
        extColor = Color.BLUE;
      }
View Full Code Here

Examples of org.newdawn.slick.Color

  public void initialize() {
    physicsMapper = world.getMapper(Physics.class);
    healthMapper = world.getMapper(Health.class);
    ammoMapper = world.getMapper(Ammo.class);
   
    healthColor = new Color(72f / 255f, 1f, 0f, 1f);
    bgColor = new Color(1f, 1f, 1f, 0.2f);

    try {
      font = new AngelCodeFont("fonts/normal.fnt", "fonts/normal_0.png");
      bar = new Image("bar.png");
      statusBar = new Image("statusBar.png");
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.