Examples of Reflection


Examples of anvil.core.reflect.Reflection

  }


  public static synchronized final Reflection createReflection(Class cls)
  {
    Reflection reflection = (Reflection)_reflections.get(cls);
    if (reflection == null) {
      reflection = new Reflection();
      _reflections.put(cls, reflection);
      _reflections.put(cls.getName(), reflection);
      reflection.initialize(cls);
    }
    return reflection;
  }
View Full Code Here

Examples of anvil.core.reflect.Reflection

  /*reflection*/ 
 
  public Reflection reflect(String classname)
  {
    checkReflection(classname);
    Reflection reflection = ObjectPool.getReflection(classname);
    if (reflection == null) {
      reflection = zone().findJava(classname);
    }
    if (reflection == null) {
      throw ClassNotFound(classname);
View Full Code Here

Examples of anvil.core.reflect.Reflection

    return reflection;
  }

  private Reflection reflect0(String classname)
  {
    Reflection reflection = ObjectPool.getReflection(classname);
    if (reflection == null) {
      reflection = zone().findJava(classname);
    }
    if (reflection == null) {
      throw ClassNotFound(classname);
View Full Code Here

Examples of com.thoughtworks.xstream.tools.benchmark.xmlfriendly.targets.Field$Reflection

        stats.addMetric(new CharacterCountMetric('$'));
        stats.addMetric(new CharacterCountMetric('_'));
        stats.addProduct(new NoReplacer());
        stats.addTarget(new FieldReflection());
        stats.addTarget(new Field_Reflection());
        stats.addTarget(new Field$Reflection());
        stats.run(new MultiReporter(reporters) {

            public void endBenchmark() {
                // do nothing
            }

        });

        Harness harness = new Harness();
        harness.addMetric(new SerializationSpeedMetric(100));
        harness.addMetric(new DeserializationSpeedMetric(100, false));
        harness.addProduct(new CombinedLookupReplacer(0));
        // harness.addProduct(new CombinedLookupReplacer(32));
        harness.addProduct(new CombinedLookupAppender(0));
        // harness.addProduct(new CombinedLookupAppender(32));
        harness.addProduct(new SeparateLookupReplacer(0));
        // harness.addProduct(new SeparateLookupReplacer(32));
        harness.addProduct(new IterativeReplacer(0));
        // harness.addProduct(new IterativeReplacer(32));
        harness.addProduct(new IterativeAppender(0));
        // harness.addProduct(new IterativeAppender(32));
        harness.addProduct(new IterativeAppenderWithShortcut());
        harness.addProduct(new CachingIterativeAppenderWithShortcut());
        harness.addTarget(new FieldReflection());
        harness.addTarget(new Field_Reflection());
        harness.addTarget(new Field$Reflection());
        harness.run(new MultiReporter(reporters) {

            public void startBenchmark() {
                // do nothing
            }
View Full Code Here

Examples of javafx.scene.effect.Reflection

      if (image == null) {
        this.file = file;
        image = createImage(this.file, fileImageWidth, fileImageHeight, this.preserveRatio, this.smooth);
      }
      imageView.setImage(image);
        reflection = new Reflection();
        reflection.setFraction(reflectionSize);
        imageView.setEffect(reflection);
        setEffect(transform);
        getChildren().addAll(imageView);
        angle.set(displayAngle);
View Full Code Here

Examples of javafx.scene.effect.Reflection

    public DisplayShelfItem(Image image) {

        // create content
        ImageView imageView = new ImageView();
        imageView.setImage(image);
        Reflection reflection = new Reflection();
        reflection.setFraction(REFLECTION_SIZE);
        imageView.setEffect(reflection);
        setEffect(transform);
        getChildren().addAll(imageView);
        angle.set(45.0);
        angle.addListener(new InvalidationListener() {
View Full Code Here

Examples of javafx.scene.effect.Reflection

    node.setCacheHint(CacheHint.SPEED);
    node.setFitWidth(width);
    node.setFitHeight(height);

    final DropShadow effect = DropShadowBuilder.create().color(selectProperty != null && selectProperty.get() == index ? GuiUtil.COLOR_SELECTED : Color.TRANSPARENT).build();
    final Reflection effect2 = new Reflection();
    effect.setInput(effect2);
    node.setEffect(effect);
    node.setOnMousePressed(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent event) {
View Full Code Here

Examples of javafx.scene.effect.Reflection

    public static void reflectionEffect(@Nonnull Node node) {
        if (node == null) {
            return;
        }
        Reflection r = new Reflection();
        r.setFraction(0.8f);
        r.setTopOffset(1.5);
        node.setEffect(r);
    }
View Full Code Here

Examples of javafx.scene.effect.Reflection

    public static void reflectionEffect(@Nonnull Node node) {
        if (node == null) {
            return;
        }
        Reflection r = new Reflection();
        r.setFraction(0.8f);
        r.setTopOffset(1.5);
        node.setEffect(r);
    }
View Full Code Here

Examples of javafx.scene.effect.Reflection

//        new Reflection(reflectionTop - insetHeight - 1, reflectionPortion, reflectionTopOpacity, reflectionBottomOpacity),
//        new ColorInput(0.0, reflectionTop + h, w, reflectionHeight, Color.WHITE)
//      );

      if(reflectionPortion > 0) {
        this.reflection = new Reflection(reflectionTop, reflectionPortion, reflectionTopOpacity, reflectionBottomOpacity);

        this.reflectionTop = reflectionTop;
        this.reflectionSpace = reflectionHeight + reflectionTop;
      }
    }
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.