Package org.freeplane.core.ui.components

Examples of org.freeplane.core.ui.components.MultipleImage


  }

  @Override
  public Icon getIcon() {
    if (compoundIcon == null) {
      compoundIcon = new MultipleImage();
      for (final Icon icon : imageIcons) {
        compoundIcon.addImage(icon);
      }
    }
    return compoundIcon;
View Full Code Here


  @Override
  public void setValue(final Object value) {
    if (value instanceof IconsHolder) {
      final IconsHolder iconsHolder = (IconsHolder) value;
      final MultipleImage iconImages = new MultipleImage();
      for (final MindIcon icon : iconsHolder.getIcons()) {
        iconImages.addImage(icon.getIcon());
      }
      if (iconImages.getImageCount() > 0) {
        setIcon(iconImages);
      }
      else {
        setIcon(null);
      }
View Full Code Here

    setFont(UITools.scale(font));
  }

  void updateIcons(final NodeView node) {
//    setHorizontalTextPosition(node.isLeft() ? SwingConstants.LEADING : SwingConstants.TRAILING);
    final MultipleImage iconImages = new MultipleImage();
    /* fc, 06.10.2003: images? */
    final NodeModel model = node.getModel();
    for (final UIIcon icon : IconController.getController().getStateIcons(model)) {
      iconImages.addImage(icon.getIcon());
    }
    final ModeController modeController = getNodeView().getMap().getModeController();
    final Collection<MindIcon> icons = IconController.getController(modeController).getIcons(model);
    for (final MindIcon myIcon : icons) {
      iconImages.addImage(myIcon.getIcon());
    }
    addOwnIcons(iconImages, model);
    setIcon((iconImages.getImageCount() > 0 ? iconImages : null));
  }
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.components.MultipleImage

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.