示例#1
0
  protected static AVList getParamsFromDocument(Element domElement, AVList params) {
    if (params == null) {
      params = new AVListImpl();
    }

    XPath xpath = WWXML.makeXPath();

    // Common layer properties.
    AbstractLayer.getLayerConfigParams(domElement, params);

    WWXML.checkAndSetStringParam(domElement, params, AVKey.URL, "URL", xpath);
    WWXML.checkAndSetIntegerParam(domElement, params, AVKey.WIDTH, "Size/@width", xpath);
    WWXML.checkAndSetIntegerParam(domElement, params, AVKey.HEIGHT, "Size/@height", xpath);
    WWXML.checkAndSetDoubleParam(domElement, params, AVKeyMore.SCALE, "Scale", xpath);
    WWXML.checkAndSetSectorParam(domElement, params, AVKey.SECTOR, "Sector", xpath);
    WWXML.checkAndSetBooleanParam(domElement, params, AVKeyMore.WRAP, "Wrap", xpath);

    return params;
  }
 @Override
 public void setName(String name) {
   super.setName(name);
   this.tileCountName = this.getName() + " Tiles";
 }
 @Override
 public void render(DrawContext dc) {
   this.atMaxResolution = this.atMaxLevel(dc);
   super.render(dc);
 }
 /**
  * Opacity is not applied to layers of this type because each marker has an attribute set with
  * opacity control.
  *
  * @param opacity the current opacity value, which is ignored by this layer.
  */
 @Override
 public void setOpacity(double opacity) {
   super.setOpacity(opacity);
 }
示例#5
0
 @Override
 public void setOpacity(double opacity) {
   super.setOpacity(opacity);
   recalculateColors();
 }