@Test public void testCreateModelLayer() { URL url = this.getClass().getResource("dummyModelLayer.xml"); Element element = XMLUtil.getElementFromSource(url); AVList params = new AVListImpl(); ModelLayer layer = ModelLayerFactory.createModelLayer(element, params); assertNotNull(layer); assertNotNull(params.getValue(AVKeyMore.COLOR_MAP)); assertNotNull(params.getValue(AVKey.BYTE_ORDER)); }
public static ModelLayer createModelLayer(Element domElement, AVList params) { params = AbstractLayer.getLayerConfigParams(domElement, params); params = getParamsFromDocument(domElement, params); ModelLayer layer = new BasicModelLayer(params); DataLayerFactory.setLayerParams(layer, params); return layer; }
ModelLayerFactory { public static ModelLayer createModelLayer(Element domElement, AVList params) { params = AbstractLayer.getLayerConfigParams(domElement, params); params = getParamsFromDocument(domElement, params); ModelLayer layer = new BasicModelLayer(params); DataLayerFactory.setLayerParams(layer, params); return layer; } }
ModelLayerFactory { public static ModelLayer createModelLayer(Element domElement, AVList params) { params = AbstractLayer.getLayerConfigParams(domElement, params); params = getParamsFromDocument(domElement, params); ModelLayer layer = new BasicModelLayer(params); DataLayerFactory.setLayerParams(layer, params); return layer; }  }
ModelLayerFactory { public static ModelLayer createModelLayer(Element domElement, AVList params) { params = AbstractLayer.getLayerConfigParams(domElement, params); params = getParamsFromDocument(domElement, params); ModelLayer layer = new BasicModelLayer(params); DataLayerFactory.setLayerParams(layer, params); return layer; }  static ModelLayer createModelLayer(Element domElement, AVList params); static AVList getParamsFromDocument(Element domElement, AVList params); }
ModelLayerFactory { public static ModelLayer createModelLayer(Element domElement, AVList params) { params = AbstractLayer.getLayerConfigParams(domElement, params); params = getParamsFromDocument(domElement, params); ModelLayer layer = new BasicModelLayer(params); DataLayerFactory.setLayerParams(layer, params); return layer; }  static ModelLayer createModelLayer(Element domElement, AVList params); static AVList getParamsFromDocument(Element domElement, AVList params);  }