Examples of Colors


Examples of at.bestsolution.efxclipse.formats.svg.converter.Colors

              if ((e instanceof SvgRadialGradientElement)) {
                return this.handleGradient(((SvgRadialGradientElement) e), opacity);
              }
            }
          } else {
            final Colors c_1 = Colors.findColorByName(fill);
            boolean _notEquals = (!Objects.equal(c_1, null));
            if (_notEquals) {
              return this.hexColor(c_1.hexvalue, opacity);
            }
            return fill.toUpperCase();
View Full Code Here

Examples of ch.deif.meander.Colors

    Layers layers = LabelSketch.createLabeledSketch();
    new NearestNeighborAlgorithm(layers.getMap()).run();
    layers.add(CurrentSelectionOverlay.class);
   
    Location loc = findLocation(layers.getMap(), "the");
    loc.setColor(new Colors(255, 0, 0));
   
    loc = findLocation(layers.getMap(), "for");
    loc.setColor(new Colors(255, 0, 0))
   
    loc = findLocation(layers.getMap(), "fox");
    loc.setColor(new Colors(255, 0, 0));     
   
    bridge.setMapVizualization(layers);
   
   
    int dim = layers.getMap().getParameters().width;
View Full Code Here

Examples of com.google.gwt.i18n.client.gen.Colors

    assertEquals("in GMT: 2/2/2010, 3:04:05 AM", m.gmtAsSafeHtml(date).asString(
        ));
  }

  public void testWalkUpColorTree() {
    Colors colors = GWT.create(Colors.class);
    assertEquals("red_b_C_d", colors.red());
    assertEquals("blue_b_C", colors.blue());
    assertEquals("yellow_b", colors.yellow());
  }
View Full Code Here

Examples of com.google.gwt.i18n.client.gen.Colors

    com.google.gwt.i18n.client.Wrapper2.TestBindingImpl d = GWT.create(com.google.gwt.i18n.client.Wrapper2.TestBindingImpl.class);
    assertEquals("default", d.a());
  }

  public void testColors() {
    Colors colors = GWT.create(Colors.class);
    assertNotNull(colors);
    // No piglatin version exists for grey
    assertEquals("ĝréý", colors.grey());
    assertEquals("ackblay", colors.black());
    assertEquals("ueblay", colors.blue());
  }
View Full Code Here

Examples of com.googlecode.jsonwebservice.attachment.Colors

 
  public void updateSettings(JFreeChart chart, ChartConfig chartConfig){
    Plot plot = chart.getPlot();
   
    Visibility   visibility   = chartConfig.getVisibility();
    Colors     colors     = chartConfig.getColors();
   
    // Chart level visible items
    chart.setBorderVisible(visibility.isBorder());
    plot.setOutlineVisible(visibility.isOutline());
   
    // chart level colors
    final Color  BACKGROUND  = new Color(colors.getBg());
    plot.setBackgroundPaint(BACKGROUND);
    chart.setBackgroundPaint(BACKGROUND);
   
    // Chart level title
    if(chart.getTitle() != null){
      TextTitle title = chart.getTitle();
      title.setVisible(visibility.isTitle());
      title.setBackgroundPaint(new Color(colors.getTitleBg()));
      title.setPaint(new Color(colors.getTitle()));
      title.setExpandToFitSpace(true);
    }
   
    // In case of multiple plot read and update child level chart
    if(plot instanceof MultiplePiePlot){
      MultiplePiePlot multiplePiePlot = (MultiplePiePlot)plot;
      chart  = multiplePiePlot.getPieChart();
      plot   = chart.getPlot();
     
      chart.setBorderVisible(visibility.isBorder());
      plot.setOutlineVisible(visibility.isOutline());
     
      chart.setBackgroundPaint(BACKGROUND);
      plot.setBackgroundPaint(BACKGROUND);
    }
   
    if(plot instanceof CategoryPlot){
      CategoryPlot   categoryPlot   = (CategoryPlot)chart.getPlot();
      categoryPlot.setRangeGridlinesVisible(visibility.isRangeGridLines());
      categoryPlot.setOrientation((visibility.getOrientation() != null &&
          visibility.getOrientation() == com.googlecode.jsonwebservice.attachment.PlotOrientation.HORIZONTAL)
          ? PlotOrientation.HORIZONTAL : PlotOrientation.VERTICAL);
      categoryPlot.setRangeZeroBaselineVisible(visibility.isRangeZeroBaseline());
      categoryPlot.setRangeCrosshairVisible(visibility.isRangeCrosshair());
      /**
       * RANGE Axis settings
       */
      ValueAxis     rangeAxis      = categoryPlot.getRangeAxis();
     
      rangeAxis.setAxisLineVisible(visibility.isAxisLine());
      rangeAxis.setTickMarksVisible(visibility.isTickMarks());
      rangeAxis.setMinorTickMarksVisible(visibility.isMinerTickMarks());
     
      Color axisLabel = new Color(colors.getAxisLabel());
      Color tickLabel = new Color(colors.getTickLabel());
     
      rangeAxis.setLabelPaint(axisLabel);
      rangeAxis.setTickLabelPaint(tickLabel);
      if(rangeAxis instanceof NumberAxis){
        NumberAxis numberAxis = (NumberAxis)rangeAxis;
        // rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
      }
     
      /**
       * DOAMIN AXIS settings
       */
      CategoryAxis   domainAxis     = categoryPlot.getDomainAxis();
      domainAxis.setAxisLineVisible(visibility.isAxisLine());
      domainAxis.setTickMarksVisible(visibility.isTickMarks());
      domainAxis.setMinorTickMarksVisible(visibility.isMinerTickMarks());
     
      domainAxis.setLabelPaint(axisLabel);
      domainAxis.setTickLabelPaint(tickLabel);
     
      domainAxis.setCategoryLabelPositions(
          CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 6.0));
     
      CategoryItemRenderer rendrer = categoryPlot.getRenderer();
      for(int index = 0; index < colors.getSeries().size(); index++){
        rendrer.setSeriesPaint(index, new Color(colors.getSeries().get(index)));
      }
    }else if(plot instanceof PiePlot){
      PiePlot piePlot = (PiePlot)plot;
     
      piePlot.setSimpleLabels(visibility.isPieSimpleLabels());
      piePlot.setSectionOutlinesVisible(visibility.isPieOutlines());
      piePlot.setLabelLinksVisible(visibility.isPieLabelLinks());
     
      //piePlot.setExplodePercent("1", 0.07000000000000001D);
      //piePlot.setInteriorGap(0.00D);
      piePlot.setLabelGenerator(new StandardPieSectionLabelGenerator(chartConfig.getDataSettings().getPieSectionLabel()));
      //piePlot.setLabelBackgroundPaint(new Color(220, 220, 220));
      for(int index = 0; index < colors.getSeries().size(); index++){
        piePlot.setSectionPaint(String.valueOf(index), new Color(colors.getSeries().get(index)));
      }
    }
  }
View Full Code Here

Examples of logisticspipes.utils.Colors

        GL11.glScaled(0.07, 0.07, 1);
        GL11.glTranslated(-3, 3.5, -0.025);
      }
      for(int i=0;i<6;i++) {
        int colorCode = colors.getInteger("color:" + i);
        Colors color = Colors.values()[colorCode];
        int x = i / 3;
        int y = i % 3;
        if(type == ItemRenderType.INVENTORY) {
          drawRect(x * 5 + 4, y * 3 + 3, x * 5 + 7, y * 3 + 5, color.getColorCode());
        }
        if(type == ItemRenderType.ENTITY) {
          drawRect(-x * 5 + 4, -y * 3 + 3, -x * 5 + 7, -y * 3 + 5, color.getColorCode());
          GL11.glRotatef(180, 1, 0, 0);
          drawRect(-x * 5 + 4, -y * 3 + 3, -x * 5 + 7, -y * 3 + 5, color.getColorCode());
          GL11.glRotatef(180, 1, 0, 0);
        }
      }
    }
    GL11.glPopMatrix();
View Full Code Here

Examples of logisticspipes.utils.Colors

      }
      return currentlyEquippedStack;
    }
   
    if(slot instanceof ColorSlot) {
      Colors equipped = Colors.getColor(currentlyEquippedStack);
      Colors color = Colors.getColor(slot.getStack());
      if(Colors.BLANK.equals(equipped)) {
        if(mouseButton == 0) {
          color = color.getNext();
        } else if(mouseButton == 1) {
          color = color.getPrev();
        } else {
          color = Colors.BLANK;
        }
        slot.putStack(color.getItemStack());
      } else {
        if(mouseButton == 1) {
          slot.putStack(Colors.BLANK.getItemStack());
        } else {
          slot.putStack(equipped.getItemStack());
View Full Code Here

Examples of modelo.Player.Colors

  }

  public void addPlayer(String nombre, int color) {
    color--;
    Colors[] colores = Colors.values();
    Colors eleccion = colores[color];
    partida.addPlayer(nombre, eleccion);
  }
View Full Code Here

Examples of mrtjp.core.color.Colors

        {
            packetType1(color, count, bc, world);
            return;
        }

        Colors c = Colors.get(color);
        for (int i = 0; i < count; i++)
            doSpawnType1(c, bc, world);
    }
View Full Code Here

Examples of mrtjp.core.color.Colors

        {
            packetType2(color, count, dir, bc, world);
            return;
        }

        Colors c = Colors.get(color);
        for (int i = 0; i < count; i++)
            doSpawnType2(c, dir, bc, world);
    }
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.