Package shadowrun.gui.mapElement

Examples of shadowrun.gui.mapElement.ShadowrunCharacterElement


    for (UniqueID mapId : map.getElements()) {
      MapElement element = CampaignClient.getInstance().getBean(mapId);

      if (Beans.isInstanceOf(element, ShadowrunCharacterElement.class)) {
        ShadowrunCharacterElement characterElement = (ShadowrunCharacterElement) Beans
            .getInstanceOf(element,
                ShadowrunCharacterElement.class);

        ignoreList.add(characterElement.getCharactedId());
      }
    }
    characters.setValues(CharacterAdapter.getCharacters(ignoreList));
  }
View Full Code Here


    return characters.getItemCount() > 0;
  }

  @Override
  public ShadowrunCharacterElement buildMapElement(Point position) {
    return new ShadowrunCharacterElement(position, getCharacter());
  }
View Full Code Here

    add(panelHeight, gbc_panel_1);
  }

  @Override
  protected void mapElementChanged() {
    ShadowrunCharacterElement characterElement = getMapElement();

    ShadowrunCharacter character = characterElement.getCharacter();
    BufferedImage img = character.getCharacterImage();
    img = ImageUtil.resizeImage(img, 50, 50);
    lblImg.setIcon(new ImageIcon(img));

    lblName.setText(character.getName());

    panelWidth.setElementSizeAt(0, characterElement.getWidth());
    panelHeight.setElementSizeAt(0, characterElement.getHeight());

  }
View Full Code Here

    return "";
  }

  @Override
  public void applyModification() {
    ShadowrunCharacterElement characterElement = getMapElement();
    characterElement.setWidth(panelWidth.getMapElementSize(0));
    characterElement.setHeight(panelHeight.getMapElementSize(0));

  }
View Full Code Here

TOP

Related Classes of shadowrun.gui.mapElement.ShadowrunCharacterElement

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.