Package org.nlogo.sdm.gui

Source Code of org.nlogo.sdm.gui.WrappedConverter

// (C) Uri Wilensky. https://github.com/NetLogo/NetLogo

package org.nlogo.sdm.gui;

import org.nlogo.sdm.Converter;

public strictfp class WrappedConverter
    implements org.jhotdraw.util.Storable {
  final Converter converter;

  public WrappedConverter() {
    converter = new Converter();
  }

  public WrappedConverter(Converter converter) {
    this.converter = converter;
  }

  public void write(org.jhotdraw.util.StorableOutput dw) {
    dw.writeString(converter.getExpression());
    dw.writeString(converter.getName());
  }

  public void read(org.jhotdraw.util.StorableInput dr)
      throws java.io.IOException {
    converter.setExpression(dr.readString());
    converter.setName(dr.readString());
  }

}
TOP

Related Classes of org.nlogo.sdm.gui.WrappedConverter

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.