Examples of Color


Examples of com.jgraph.gaeawt.java.awt.Color

    if (!got_direction) {
      direction = isClockwise(); // base this on as few points as possible...
      got_direction = true;
    }

    Color fill_colour = direction ? Color.white : Color.black;
    Color outline_colour = Color.black;

    if (gdo.isFill()) {
      g.setColor(fill_colour);
      fillPolygon(g);
    }
View Full Code Here

Examples of com.scriptographer.ai.Color

    if (super.has(name, start))
      return super.get(name, start);
    // Determine conversion type from property name
    Class type = colorPropertyToClass.get(name);
    if (type != null) {
      Color color = ((Color) javaObject).convert(type);
      if (color != null) {
                Scriptable scriptable = Context.toObject(color, start);
                return scriptable.get(name, start);
      }
    }
View Full Code Here

Examples of com.sencha.gxt.chart.client.draw.Color

*/
public class AreaHighlighter implements SeriesHighlighter {

  @Override
  public void highlight(Sprite sprite) {
    Color fill = sprite.getFill();
    if (fill instanceof RGB) {
      RGB rgb = (RGB) fill;
      sprite.setFill(rgb.getLighter(0.2));
      sprite.redraw();
    }
View Full Code Here

Examples of com.springsource.insight.intercept.color.Color

            List<Color> colors = builder.getHint(Color.TOKEN_NAME, List.class);
            if (colors == null) {
                colors = new ArrayList<Color>();
                builder.setHint(Color.TOKEN_NAME, colors);
            }
            colors.add(new Color(null, getColor(), getClass().getSimpleName(), "prepareConnection"));

            super.prepareConnection(connection, contentLength);
        }
View Full Code Here

Examples of com.thecherno.cherno.engine.graphics.Color

  protected void render() {
    clear(Color.WHITE);
    if (State.getState() == State.GAME) {
      render(0, 0, test);
    } else if (State.getState() == State.MENU) {
      fillRect(0, 0, 960, 540, new Color(0xff00ff));
      screen.render(mx, my, grass);
      menu.render(50, 50, screen);
    }
    show();
  }
View Full Code Here

Examples of com.ulcjava.base.application.util.Color

    }

    private ULCLabel createLabel(ULCViewerFactory factory, DataModel model) {
        ULCLabel ulcLabel = new ULCLabel(factory.getClientResource().getLabel(model.getFieldName()));

        ulcLabel.setBackground(new Color(220, 240, 190));
        return ulcLabel;
    }
View Full Code Here

Examples of com.vaadin.shared.ui.colorpicker.Color

            @Override
            public void colorChanged(ColorChangeEvent event) {

                // Get the new background color
                Color color = event.getColor();

                // Get the stylesheet of the page
                Styles styles = Page.getCurrent().getStyles();

                // inject the new background color
                styles.add(".v-app .v-textarea.text-label { background-color:"
                        + color.getCSS() + "; }");
            }
        });
        return bgColor;
    }
View Full Code Here

Examples of de.lessvoid.nifty.tools.Color

      id("special-hint#hint-text");
      base("base-font");
      alignLeft();
      valignCenter();
      textHAlignLeft();
      color(new Color("#000f"));
    }}.build(nifty);
  }
View Full Code Here

Examples of dwlab.visualizers.Color

  public static double getTextHeight() {
    return currentFont.getHeight();
  }
 
  public static void setTextColor( double red, double green, double blue, double alpha ) {
    currentTextColor = new Color( red, green, blue, alpha );
  }
View Full Code Here

Examples of eu.semberal.reminders.entity.Color

            Set<Attachment> attachments = new HashSet<Attachment>();
            for (Long aid : selectedAttachments)
                attachments.add(filesService.getAttachment(aid));
            note.setAttachments(attachments);
        }
        note.setColor(new Color(Integer.parseInt(color.substring(1, 3), 16), Integer.parseInt(color.substring(3, 5), 16), Integer.parseInt(color.substring(5), 16)));
        try {
            notesService.saveNote(note);
        } catch (Exception e) {
            getContext().getValidationErrors().addGlobalError(new LocalizableError("scheduling.notPossibleToSchedule"));
            return getContext().getSourcePageResolution();
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.