Package rra.model

Examples of rra.model.HPSStats


          x1_hps1Stats.setModel(tm);
          tm.addColumn("Ability");
          tm.addColumn("Healing");
          tm.addColumn("Overhealing");
          for(Iterator<HPSStats> it3=cp.getHealingAbilityList().iterator();it3.hasNext();) {
            HPSStats xx=it3.next();
            tm.addRow(new Object[]{xx.getAbilityName(),
                xx.getAbilityHealing()+" (crit "+xx.getHealingCritPercentage()+")",
                xx.getAbilityOverhealing()+" ("+xx.getOverhealingPercentage()+")"});
          }
          tm.fireTableDataChanged();
          x1_hps1Stats.revalidate();
          x1_hps1Stats.repaint();

          tm=new DefaultTableModel();
          x1_hps2Stats.setModel(tm);
          tm.addColumn("Target");
          tm.addColumn("Healing");
          tm.addColumn("Overhealing");
          for(Iterator<HPSStats> it3=cp.getHealingTargetList().iterator();it3.hasNext();) {
            HPSStats xx=it3.next();
            tm.addRow(new Object[]{xx.getAbilityName(),
                xx.getAbilityHealing()+" (crit "+xx.getHealingCritPercentage()+")",
                xx.getAbilityOverhealing()+" ("+xx.getOverhealingPercentage()+")"});
          }
          tm.fireTableDataChanged();
          x1_hps2Stats.revalidate();
          x1_hps2Stats.repaint();         

          x1_hps3Stats.setModel(new DefaultTableModel());
          x1_hps3Stats.revalidate();
          x1_hps3Stats.repaint();

          tm=new DefaultTableModel();
          interrupts.setModel(tm);
          tm.addColumn("Ability");
          tm.addColumn("Combat second");
          for(Iterator<InterruptStats> it3=cp.getInterruptList().iterator();it3.hasNext();) {
            InterruptStats xx=it3.next();
            long[] seconds=xx.getInterrupts();
            for(int i=0;i<seconds.length;i++)
              tm.addRow(new Object[]{xx.getAbilityName(),seconds[i]});
          }
          tm.fireTableDataChanged();
          interrupts.revalidate();
          interrupts.repaint()
         
          tm=new DefaultTableModel();
          deaths.setModel(tm);
          tm.addColumn("Killed by");
          tm.addColumn("Combat second");
          for(Iterator<DeathDetail> it3=cp.getDeathList().iterator();it3.hasNext();) {
            DeathDetail xx=it3.next();
            tm.addRow(new Object[]{xx.getKilledBy(),xx.getDiedAt()});
          }
          tm.fireTableDataChanged();
          deaths.revalidate();
          deaths.repaint()
        }
      }
    }
    if(eventType==RRAMediator.EventHealingTargetChanged) {
      Combat c=this.parser.getCombat((String)parameters.toArray()[0]);
      for(Iterator<CombatParticipant> it=c.getSortedDPSParticipantList().iterator();it.hasNext();) {
        CombatParticipant cp=it.next();
        if(cp.getName().equalsIgnoreCase((String)parameters.toArray()[1])) {
          for(Iterator<HPSStats> it3=cp.getHealingTargetList().iterator();it3.hasNext();) {
            HPSStats xx=it3.next();
            if(xx.getAbilityName().equalsIgnoreCase((String)parameters.toArray()[2])) {
              DefaultTableModel tm=new DefaultTableModel();
              x1_hps3Stats.setModel(tm);
              tm.addColumn("Ability");
              tm.addColumn("Healing");
              tm.addColumn("Overhealing");
              for(Iterator<HPSStats> it4=xx.getSubcategoryList().iterator();it4.hasNext();) {
                HPSStats yy=it4.next();
                tm.addRow(new Object[]{yy.getAbilityName(),
                    yy.getAbilityHealing()+" (crit "+yy.getHealingCritPercentage()+")",
                    yy.getAbilityOverhealing()+" ("+yy.getOverhealingPercentage()+")"});
              }
              tm.fireTableDataChanged();
              x1_hps3Stats.revalidate();
              x1_hps3Stats.repaint();
            }
View Full Code Here

TOP

Related Classes of rra.model.HPSStats

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.