Package org.freeplane.features.styles

Examples of org.freeplane.features.styles.LogicalStyleModel


      }
      copy(from, to);
    }

    public void copy(final NodeModel from, final NodeModel to) {
      final LogicalStyleModel fromStyle = (LogicalStyleModel) from.getExtension(LogicalStyleModel.class);
      if (fromStyle == null) {
        return;
      }
      final LogicalStyleModel toStyle = LogicalStyleModel.createExtension(to);
      toStyle.setStyle(fromStyle.getStyle());
    }
View Full Code Here


    public void remove(final Object key, final NodeModel from, final NodeModel which) {
      if (!key.equals(LogicalStyleKeys.LOGICAL_STYLE)) {
        return;
      }
      final LogicalStyleModel whichStyle = (LogicalStyleModel) which.getExtension(LogicalStyleModel.class);
      if (whichStyle == null) {
        return;
      }
      final LogicalStyleModel fromStyle = (LogicalStyleModel) from.getExtension(LogicalStyleModel.class);
      if (fromStyle == null) {
        return;
      }
      from.removeExtension(fromStyle);
    }
View Full Code Here

      }

      private void changeStyle(final ModeController modeController, final NodeModel node, final IStyle oldStyle,
                                    final IStyle style) {
              if(style != null){
          final LogicalStyleModel model = LogicalStyleModel.createExtension(node);
          model.setStyle(style);
        }
        else{
          node.removeExtension(LogicalStyleModel.class);
        }
        modeController.getMapController().nodeChanged(node, LogicalStyleModel.class, oldStyle, style);
View Full Code Here

TOP

Related Classes of org.freeplane.features.styles.LogicalStyleModel

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.