Examples of ChampionBox


Examples of com.kolakcc.loljclient.view.ui.ChampionBox

  }
 
  @Override
  public void mouseClicked(MouseEvent e) {
    if (e.getClickCount() == 1) {
      ChampionBox box = (ChampionBox) e.getSource();
      try {
        int id = StartupClass.Client.invoke("gameService",
            "selectChampion", new Object[] { box.getChampion().getID() });
        TypedObject result = StartupClass.Client.getResult(id).getTO("data");
        System.out.println(result);
      } catch (IOException e1) {
        e1.printStackTrace();
      }
View Full Code Here

Examples of com.kolakcc.loljclient.view.ui.ChampionBox

      boolean isSelected, boolean cellHasFocus) {
    JPanel ret = new JPanel(new BorderLayout());
    ret.setBackground(value.getStatistics().containsKey("WIN") ? Color.green : Color.red);
    Champion champion = Champion.getChampionFromID(value.getChampionID());
    try {
      ret.add(new ChampionBox(champion), BorderLayout.WEST);
    } catch (Exception e) {
      e.printStackTrace();
    }
    ret.add(new JLabel(String.format("<html>%s %d/%d/%d<br>%s", champion.getDisplayName(), value.getStatistic("CHAMPIONS_KILLED"), value.getStatistic("NUM_DEATHS"), value.getStatistic("ASSISTS"), LocaleMessages.leagueTermsMessages.getString(value.getMap().toString()))),BorderLayout.CENTER);
    return ret;
View Full Code Here

Examples of com.kolakcc.loljclient.view.ui.ChampionBox

    if ((value.getChampionSelection() != null) && (value.getChampionSelection().getChampionID() != 0)) {
      JPanel centerPanel = new JPanel(new BorderLayout());
      centerPanel.setOpaque(false);
      Champion champion = Champion.getChampionFromID(value.getChampionSelection().getChampionID());
      try {
        ChampionBox cb = new ChampionBox(champion);
        cb.setSize(60, 60);
        centerPanel.add(cb,BorderLayout.WEST);
      } catch (Exception e) {
        e.printStackTrace();
      }
      JPanel selectionPanel = new JPanel(new BorderLayout());
View Full Code Here

Examples of com.kolakcc.loljclient.view.ui.ChampionBox

    this.setSize(500, 600);
  }

  public void setIconSizes(int size) {
    for (Component component : this.championsPanel.getComponents()) {
      ChampionBox icon = (ChampionBox) component;
      icon.setSize(size, size);
    }
    this.championsPanel.revalidate();
  }
View Full Code Here

Examples of com.kolakcc.loljclient.view.ui.ChampionBox

    this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    this.setSize(700, 700);
    this.setLayout(new BorderLayout());

    topPanel = new JPanel(new BorderLayout());
    this.championIcon = new ChampionBox();
    topPanel.add(championIcon,BorderLayout.WEST);
   
    JPanel nameTitlePanel = new JPanel(new BorderLayout());

    this.championName = new LocalizedJLabel();
View Full Code Here

Examples of com.kolakcc.loljclient.view.ui.ChampionBox

   
    gameInfo = new JPanel(new BorderLayout());
    JPanel topGamePanel = new JPanel(new BorderLayout());
   
    JPanel championAndName = new JPanel(new FlowLayout());
    currentGameChampion = new ChampionBox();
    championAndName.add(currentGameChampion);
    currentGameChampionName = new LocalizedJLabel();
    championAndName.add(currentGameChampionName);
    topGamePanel.add(championAndName, BorderLayout.NORTH);
   
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.