Package net.alteiar.campaign.player.plugin.external

Examples of net.alteiar.campaign.player.plugin.external.DocumentPlugin


    BufferedImage mapIcon = ImageIO.read(PathfinderGeneralPlugin.class
        .getResource(MAP_ICON));

    ImageIconFactory icon = new SimpleImageIconFactory(mapIcon);
    DocumentPlugin doc = new DocumentPlugin(
        DocumentTypeConstant.BATTLE_MAP, icon, new PanelCreateBattle(),
        null);

    return doc;
  }
View Full Code Here


    return doc;
  }

  public static DocumentPlugin buildImageDocumentPlugin() throws IOException {
    DocumentPlugin doc = new DocumentPlugin(DocumentTypeConstant.IMAGE,
        new NullImageIconFactory(), new PanelCreateImage(),
        new PanelViewImage());
    return doc;
  }
View Full Code Here

    return doc;
  }

  public static DocumentPlugin buildCharacterDocumentPlugin()
      throws IOException {
    DocumentPlugin doc = new DocumentPlugin(DocumentTypeConstant.CHARACTER,
        new CharacterImageIconFactory(), new PanelCreateCharacter(),
        null);
    return doc;
  }
View Full Code Here

    return doc;
  }

  public static DocumentPlugin buildSpellBookDocumentPlugin()
      throws IOException {
    DocumentPlugin doc = new DocumentPlugin(
        DocumentTypeConstant.SPELL_BOOK, new NullImageIconFactory(),
        new PanelCreateSpellBook(), new PanelSpellBookViewer());
    return doc;
  }
View Full Code Here

        new PanelCreateSpellBook(), new PanelSpellBookViewer());
    return doc;
  }

  public static DocumentPlugin buildNoteDocumentPlugin() throws IOException {
    DocumentPlugin doc = new DocumentPlugin(DocumentTypeConstant.NOTE,
        new NullImageIconFactory(), new PanelCreateNote(),
        new PanelViewNote());
    return doc;
  }
View Full Code Here

        new PanelViewNote());
    return doc;
  }

  public static DocumentPlugin buildAudioDocumentPlugin() throws IOException {
    DocumentPlugin doc = new DocumentPlugin(DocumentTypeConstant.AUDIO,
        new NullImageIconFactory(), new PanelCreateAudio(),
        new PanelViewAudio());
    return doc;
  }
View Full Code Here

  }

  public BufferedImage getDocumentIcon(BeanDocument bean) {
    BufferedImage found = null;

    DocumentPlugin plugin = getPlugin(bean);
    if (plugin != null) {
      found = plugin.getIcon().getImage(bean);
    }

    return found;
  }
View Full Code Here

    BufferedImage mapIcon = ImageIO.read(ShadowrunGeneralPlugin.class
        .getResource(MAP_ICON));

    ImageIconFactory icon = new SimpleImageIconFactory(mapIcon);
    DocumentPlugin doc = new DocumentPlugin(
        DocumentTypeConstant.BATTLE_MAP, icon, new PanelCreateBattle(),
        null);

    return doc;
  }
View Full Code Here

    return doc;
  }

  public static DocumentPlugin buildImageDocumentPlugin() throws IOException {
    DocumentPlugin doc = new DocumentPlugin(DocumentTypeConstant.IMAGE,
        new NullImageIconFactory(), new PanelCreateImage(),
        new PanelViewImage());
    return doc;
  }
View Full Code Here

    return doc;
  }

  public static DocumentPlugin buildCharacterDocumentPlugin()
      throws IOException {
    DocumentPlugin doc = new DocumentPlugin(DocumentTypeConstant.CHARACTER,
        new CharacterImageIconFactory(), new PanelCreateCharacter(),
        new PanelViewCharacter());
    return doc;
  }
View Full Code Here

TOP

Related Classes of net.alteiar.campaign.player.plugin.external.DocumentPlugin

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.