Package org.timepedia.chronoscope.client.data

Examples of org.timepedia.chronoscope.client.data.DatasetRequest


  public Dataset createDatasetFromJson(JsonDataset json) {
    return createDatasetFromJson(json, false);
  }

  public Dataset createDatasetFromJson(JsonDataset json, boolean mutable) {
    DatasetRequest request = createDatasetRequestFromJson(json);
    return mutable ? compFactory.getDatasetFactory()
        .createMutable(request)
        : compFactory.getDatasetFactory().create(request);
  }
View Full Code Here


  }

  public DatasetRequest createDatasetRequestFromJson(JsonDataset json) {
    validateJSON(json);

    DatasetRequest request;
    if (json.isMipped()) {
      request = buildPreMipmappedDatasetRequest(json);
    } else {
      request = buildDatasetRequest(json);
    }

    // Properties common to basic and multires datasets
    request.setIdentifier(json.getId());
    request.setRangeLabel(json.getLabel());
    request.setAxisId(json.getAxisId());
    request.setPreferredRenderer(json.getPreferredRenderer());
    return request;
  }
View Full Code Here

    request.setPreferredRenderer(json.getPreferredRenderer());
    return request;
  }

  public Dataset createMutableDatasetFromJson(JsonDataset json) {
    DatasetRequest request = createDatasetRequestFromJson(json);
    return compFactory.getDatasetFactory().createMutable(request);
  }
View Full Code Here

TOP

Related Classes of org.timepedia.chronoscope.client.data.DatasetRequest

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.