Examples of AttributeModifier


Examples of de.lmu.ifi.dbs.elki.visualization.batikutil.AttributeModifier

    if(vis != null) {
      // Ensure visibility is as expected
      boolean isHidden = vis.getLayer().getAttribute(SVGConstants.CSS_VISIBILITY_PROPERTY) == SVGConstants.CSS_HIDDEN_VALUE;
      if(VisualizerUtil.isVisible(task)) {
        if(isHidden) {
          this.scheduleUpdate(new AttributeModifier(vis.getLayer(), SVGConstants.CSS_VISIBILITY_PROPERTY, SVGConstants.CSS_VISIBLE_VALUE));
        }
      }
      else {
        if(!isHidden) {
          this.scheduleUpdate(new AttributeModifier(vis.getLayer(), SVGConstants.CSS_VISIBILITY_PROPERTY, SVGConstants.CSS_HIDDEN_VALUE));
        }
      }
    }
    else {
      // Only materialize when becoming visible
View Full Code Here

Examples of net.minecraft.entity.ai.attributes.AttributeModifier

  }

  @Override
  public Multimap getItemAttributeModifiers() {
    Multimap multimap = HashMultimap.create();
    multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", DAMAGE, 0));
    multimap.put(SharedMonsterAttributes.movementSpeed.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", 0.25, 1));
    return multimap;
  }
View Full Code Here

Examples of net.minecraft.server.v1_7_R3.AttributeModifier

    PacketContainer attribute = new PacketContainer(PacketType.Play.Server.UPDATE_ATTRIBUTES);
    attribute.getIntegers().write(0, 123); // Entity ID
   
    // Initialize some test data
    List<AttributeModifier> modifiers = Lists.newArrayList(
      new AttributeModifier(UUID.randomUUID(), "Unknown synced attribute modifier", 10, 0));
    AttributeSnapshot snapshot = new AttributeSnapshot(
        (PacketPlayOutUpdateAttributes) attribute.getHandle(), "generic.Maxhealth", 20.0, modifiers);
   
    attribute.getSpecificModifier(List.class).write(0, Lists.newArrayList(snapshot));
    PacketContainer cloned = attribute.deepClone();
View Full Code Here

Examples of net.minecraft.server.v1_7_R3.AttributeModifier

      (PacketPlayOutUpdateAttributes) attribute.getParentPacket().getHandle(),
      attribute.getAttributeKey(), attribute.getBaseValue(), modifiers);
  }
 
  private AttributeModifier getModifierCopy(WrappedAttributeModifier modifier) {
    return new AttributeModifier(modifier.getUUID(), modifier.getName(), modifier.getAmount(), modifier.getOperation().getId());
  }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

                            BeanWrapper bwi = new BeanWrapperImpl(model.getObject());
                            Object obj = bwi.getPropertyValue(field);

                            item.add(new Label(componentId, ""));
                            item.add(new AttributeModifier("class", new Model<String>(obj.toString())));
                        }

                        @Override
                        public String getCssClass() {
                            return "small_fixedsize";
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

            add(editSchemaWin);

            WebMarkupContainer schemaWrapContainer = new WebMarkupContainer("schemaWrapContainer");
            schemaWrapContainer.setOutputMarkupId(true);
            if (schemaType != SchemaType.VIRTUAL) {
                schemaWrapContainer.add(new AttributeModifier("style", "width:auto;"));
            }
            add(schemaWrapContainer);

            WebMarkupContainer schemaContainer = new WebMarkupContainer("schemaContainer");
            schemaContainer.setOutputMarkupId(true);
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

        saveButton.setDefaultModel(new ResourceModel("pam.details.action.save"));
        footer.add(saveButton);
        Button deleteBtn = deleteButton("delete");
        deleteBtn.add(new JavascriptEventConfirmation("onclick", new ResourceModel("pam.details.action.delete.confirm")));
        footer.add(deleteBtn);
        footer.add(new AttributeModifier("colspan", true, new Model<Integer>(Integer.valueOf(getColumnCount()))));
       
        form.add(footer);
        add(form);
       
        return this;
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

        return this.cellWidth;
    }

    public void populateItem(Item item, String componentId, IModel model)
    {
        item.add(new AttributeModifier("width", true, new Model(getCellWidth())));
        item.add(new CheckBoxPanel(item, componentId, model));
    }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

        return this.cellWidth;
    }

    public void populateItem(Item item, String componentId, IModel model)
    {
        item.add(new AttributeModifier("width", true, new Model(getCellWidth())));
        item.add(new ImagePanel(item, componentId, model));
    }
View Full Code Here

Examples of org.apache.wicket.AttributeModifier

        public Object getObject()
        {
          return urlFor(resourceReference);
        };
      };
      add(new AttributeModifier("src", true, srcReplacement));
    }
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.