Examples of PathfinderCharacterElement


Examples of pathfinder.gui.mapElement.PathfinderCharacterElement

    return characters.getItemCount() > 0;
  }

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

Examples of pathfinder.gui.mapElement.PathfinderCharacterElement

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

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

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

Examples of pathfinder.gui.mapElement.PathfinderCharacterElement

    add(panelHeight, gbc_panel_1);
  }

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

    PathfinderCharacter 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

Examples of pathfinder.gui.mapElement.PathfinderCharacterElement

    return "";
  }

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

  }
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.