From 35d1fe5d75f5c9377d114bd4751a953280093359 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Thu, 7 Nov 2013 15:05:34 +0100 Subject: [PATCH] Add initial replay API --- src/ol/replay/ibatchgroup.js | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/ol/replay/ibatchgroup.js diff --git a/src/ol/replay/ibatchgroup.js b/src/ol/replay/ibatchgroup.js new file mode 100644 index 0000000000..239474a59e --- /dev/null +++ b/src/ol/replay/ibatchgroup.js @@ -0,0 +1,63 @@ +goog.provide('ol.replay.IBatch'); +goog.provide('ol.replay.IBatchGroup'); + +goog.require('goog.functions'); + + +/** + * @enum {string} + */ +ol.replay.BatchType = { + FILL_RING: 'fillRing', + POINT: 'point', + STROKE_LINE: 'strokeLine', + STROKE_FILL_RING: 'strokeFillRing', + STROKE_RING: 'strokeRing' +}; + + + +/** + * @interface + */ +ol.replay.IBatch = function() { +}; + + +/** + * @param {ol.geom.LineString} lineStringGeometry Line string geometry. + */ +ol.replay.IBatch.prototype.drawLineStringGeometry = + function(lineStringGeometry) { +}; + + +/** + * @param {ol.style.Stroke} strokeStyle Stroke style. + */ +ol.replay.IBatch.prototype.setStrokeStyle = function(strokeStyle) { +}; + + + +/** + * @interface + */ +ol.replay.IBatchGroup = function() { +}; + + +/** + * @param {number} zIndex Z index. + * @param {ol.replay.BatchType} batchType Batch type. + * @return {ol.replay.IBatch} Batch. + */ +ol.replay.IBatchGroup.prototype.getBatch = function(zIndex, batchType) { +}; + + +/** + * @return {boolean} Is empty. + */ +ol.replay.IBatchGroup.prototype.isEmpty = function() { +};