Package org.jhotdraw.util

Examples of org.jhotdraw.util.Storable


  static Map<ModelElement, Storable> map =
      new HashMap<ModelElement, Storable>();

  static Storable wrap(ModelElement o) {
    Storable result = map.get(o);
    if (result != null) {
      return result;
    }
    if (o instanceof Reservoir) {
      result = new WrappedReservoir((Reservoir) o);
View Full Code Here


  public void read(StorableInput dr)
      throws java.io.IOException {
    rate.setExpression(dr.readString());
    rate.setName(dr.readString());
    Storable s = dr.readStorable();
    if (s instanceof WrappedStock) {
      rate.setSource(((WrappedStock) s).stock);
    } else {
      rate.setSource(((WrappedReservoir) s).reservoir);
    }
View Full Code Here

TOP

Related Classes of org.jhotdraw.util.Storable

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.