Examples of Color


Examples of org.odftoolkit.odfdom.type.Color

   *
   * @return the background color
   */
  public Color getBackgroundColor() {
    String property = mElement.getFoBackgroundColorAttribute();
    Color color = null;
    try {
      color = Color.valueOf(property);
    } catch (Exception e) {
      Logger.getLogger(TableCellProperties.class.getName()).log(Level.WARNING, e.getMessage());
    }
View Full Code Here

Examples of org.openfaces.testapp.datatable.Color

        if (searchString == null) {
            return allColors;
        }
        List<Color> result = new ArrayList<Color>();
        for (Object allColor : allColors) {
            Color color = (Color) allColor;
            String colorName = color.getName();
            if (colorName.toUpperCase().indexOf(searchString.toUpperCase()) != -1) {
                result.add(color);
            }
        }
        return result;
View Full Code Here

Examples of org.openhab.binding.epsonprojector.internal.EpsonProjectorDevice.Color

        return new StringType(background.toString());
      case BRIGHTNESS:
        int brightness = remoteController.getBrightness();
        return new DecimalType(brightness);
      case COLOR:
        Color color = remoteController.getColor();
        return new StringType(color.toString());
      case COLOR_MODE:
        ColorMode colorMode = remoteController.getColorMode();
        return new StringType(colorMode.toString());
      case COLOR_TEMP:
        int ctemp = remoteController.getColorTemperature();
View Full Code Here

Examples of org.pac4j.core.profile.Color

    public void testBadString() {
        assertNull(this.converter.convert(BAD_COLOR));
    }
   
    public void testGoodString() {
        final Color color = this.converter.convert(GOOD_COLOR);
        assertEquals(255, color.getRed());
        assertEquals(0, color.getGreen());
        assertEquals(5, color.getBlue());
    }
View Full Code Here

Examples of org.pentaho.metadata.model.concept.types.Color

    if (type == null || Color.class.equals(type))
    {
      return value;
    }
   
    final Color settings = (Color) value;
    final java.awt.Color color = new java.awt.Color (settings.getRed(), settings.getGreen(), settings.getBlue());
    if (java.awt.Color.class.equals(type))
    {
      return color;
    }
    if (String.class.equals(type))
View Full Code Here

Examples of org.renjin.graphics.Color

    dd.saveParameters();

    int numRects = maxLength(xleft, ybottom, xright, ytop);
    for(int i=0;i!=numRects; ++i) {

      Color fillColor = Color.fromExp(context, dd, col, i % col.length());
      Color borderColor = border == Null.INSTANCE ? Color.TRANSPARENT_WHITE :
        Color.fromExp(context, dd, border, i % border.length());



      dd.getParameters()
View Full Code Here

Examples of org.sgx.yuigwt.editors.basetypes.Color

    p1.setFemale(true);
    p1.setAge(22)
   
    Car c1 = GWT.create(Car.class);
    c1.setBrand("Fiat");
    c1.setColor(new Color("ff2244"));
   
    p1.setCar(c1);
   
//    System.out.println(PropertyHaverUtil.dump(p1));
//    System.out.println(PropertyHaverUtil.dump(c1));
View Full Code Here

Examples of org.spoutcraft.api.gui.Color

    labelCategoryLabel = new GenericLabel("Category");
    content.attachWidget("Spoutcraft", labelCategoryLabel);
    labels.add(labelCategoryLabel);

    labelCategory = new GenericLabel("...");
    labelCategory.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelCategory);

    labelMCVersionLabel = new GenericLabel("Minecraft Version");
    content.attachWidget("Spoutcraft", labelMCVersionLabel);
    labels.add(labelMCVersionLabel);

    labelMCVersion = new GenericLabel("...");
    labelMCVersion.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelMCVersion);

    labelAccessLabel = new GenericLabel("Access Type");
    content.attachWidget("Spoutcraft", labelAccessLabel);
    labels.add(labelAccessLabel);

    String access = "Open";
    switch(item.accessType) {
      case ServerItem.WHITELIST:
        access = "Whitelist";
        break;
      case ServerItem.GRAYLIST:
        access = "Graylist";
        break;
      case ServerItem.BLACKLIST:
        access = "Blacklist";
        break;
    }
    labelAccess = new GenericLabel(access);
    labelAccess.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelAccess);

    labelAddress = new GenericLabel(item.getIp() + (item.getPort() != ServerItem.DEFAULT_PORT ? item.getPort() : ""));
    labelAddress.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelAddress);

    labelAddressLabel = new GenericLabel("Address");
    content.attachWidget("Spoutcraft", labelAddressLabel);
    labels.add(labelAddressLabel);

    labelMotd = new GenericLabel(item.getMotd());
    content.attachWidget("Spoutcraft", labelMotd);
    labelMotd.setTextColor(new Color(0xffaaaaaa));

    labelMotdLabel = new GenericLabel("MOTD");
    content.attachWidget("Spoutcraft", labelMotdLabel);
    labels.add(labelMotdLabel);

    labelDescription = new GenericLabel("...");
    content.attachWidget("Spoutcraft", labelDescription);
    labelDescription.setTextColor(new Color(0xffaaaaaa));
    labelDescription.setWrapLines(true);

    labelPlayersLabel = new GenericLabel("Players");
    content.attachWidget("Spoutcraft", labelPlayersLabel);
    labels.add(labelPlayersLabel);

    labelPlayers = new GenericLabel();
    labelPlayers.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelPlayers);

    linkForum = new LinkButton("Go to Forum", "");
    getScreen().attachWidget("Spoutcraft", linkForum);
    linkSite = new LinkButton("Go to Website", "");
    getScreen().attachWidget("Spoutcraft", linkSite);

    labelSpoutcraftLabel = new GenericLabel("Spoutcraft");
    content.attachWidget("Spoutcraft", labelSpoutcraftLabel);
    labels.add(labelSpoutcraftLabel);

    labelSpoutcraft = new GenericLabel("...");
    labelSpoutcraft.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelSpoutcraft);
    textureIcon = new GenericTexture("http://cdn.spout.org/server/thumb/" + item.getDatabaseId() + ".png");
    textureIcon.setFinishDelegate(new ImageUpdate());
    textureIcon.setWidth(48).setHeight(48);
    content.attachWidget("Spoutcraft", textureIcon);
View Full Code Here

Examples of org.terasology.rendering.nui.Color

public class ColorTypeAdapter implements JsonDeserializer<Color> {
    @Override
    public Color deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {
        if (json.isJsonPrimitive() && json.getAsJsonPrimitive().isString()) {
            String value = json.getAsString();
            return new Color((int) Long.parseLong(value, 16));
        }
        throw new JsonParseException("Did not find hexadecimal string for Color value");
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.ui.Color

        simulateAddVisualItems(resourceItems);

        verify(graphDisplay, times(1)).setArcStyle(eq(arc),
                eq(ArcSettings.ARC_COLOR), eq(arcColor.toHex()));

        Color newColor = new Color("#ff0000");
        underTest.getArcItemContainer(arcTypeId).setArcColor(newColor.toHex());

        verify(graphDisplay, times(1)).setArcStyle(eq(arc),
                eq(ArcSettings.ARC_COLOR), eq(newColor.toHex()));
    }
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.