Package net.alteiar.effectBean

Examples of net.alteiar.effectBean.Effect


    return "";
  }

  @Override
  public void applyModification() {
    Effect e = getMapElement();
    Set<Integer> set = new HashSet();
    set.addAll(selectedTriggers);
    ArrayList<Integer> distinctList = new ArrayList(set);
    for (Integer indexEffect : distinctList) {
      EffectSuite s = (EffectSuite) triggers.get(indexEffect).getEffect();
View Full Code Here


      ColoredShape shape = (ColoredShape) ((PanelMapElementBuilder) shapePanel
          .getModelListChoice(0, shapePanel.getCurrentPan(0)))
          .buildMapElement(position);
      System.out.println("ici5");
      // TODO must bug here null pointer exception
      Effect e = new EffectSuite(shape, false, MapElement.class, null);
      System.out.println("ici6");
      Class<?>[] parameterTypes = { ColoredShape.class, Effect.class,
          Class.class };
      System.out.println("ici7");
      Constructor<? extends TriggerBean> tConstructor = tClass
          .getConstructor(parameterTypes);
      System.out.println("ici8");
      Object[] parameter = { shape, e, activatorClass };
      System.out.println("ici9");
      result = tConstructor.newInstance(parameter);
      System.out.println("ici10");
    } catch (ClassNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (NoSuchMethodException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    } catch (SecurityException e1) {
      // TODO Auto-generated catch block
View Full Code Here

  }
 
  @SuppressWarnings({ "finally", "unchecked" })
  @Override
  public MapElement buildMapElement(Point position) {
    Effect result=null;
    try {
      Class<? extends Effect> tClass=(Class<? extends Effect>) eGenerator.getEffectClass(EffectChoiceListGenerator.path,(String)listEffect.getComboBoxe(0).getSelectedItem());
      Class<? extends BasicBean> elementClass=(Class<? extends BasicBean>) eGenerator.getElementClass(EffectChoiceListGenerator.path,(String)listEffect.getComboBoxe(1).getSelectedItem(),(String)listEffect.getComboBoxe(0).getSelectedItem());
      ColoredShape shape=(ColoredShape) ((PanelMapElementBuilder)shapePanel.getModelListChoice(0,shapePanel.getCurrentPan(0))).buildMapElement(position);
      Boolean oneUse=isOneUse.isSelected();
View Full Code Here

        JButton bouton=new JButton("create");
        bouton.addActionListener(new ActionListener(){
     
      public void actionPerformed(ActionEvent arg0) {
        // TODO Auto-generated method stub
         Effect effet=(Effect) monPanel.buildMapElement(new Point(15,15));
           System.out.println("Effect class="+effet.getClass().getCanonicalName());
           System.out.println("shape class="+effet.getAreaOfEffect().getClass().getCanonicalName());
           System.out.println("Boolean class="+effet.isOneUse());
           System.out.println("Activators class="+effet.getTypeActOn().getCanonicalName());
      }
         
        });
        test.add(bouton);
        monPanel.setVisible(true);
View Full Code Here

TOP

Related Classes of net.alteiar.effectBean.Effect

Copyright © 2018 www.massapicom. 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.