/*******************************************************************************
* Copyright (c) 2010 Stefan A. Tzeggai.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* Stefan A. Tzeggai - initial API and implementation
******************************************************************************/
package org.geopublishing.atlasStyler.rulesLists;
import org.apache.log4j.Logger;
import org.geopublishing.atlasStyler.ASUtil;
import org.geotools.styling.FeatureTypeStyle;
import de.schmitzm.geotools.feature.FeatureUtil.GeometryForm;
import de.schmitzm.geotools.styling.StyledFeaturesInterface;
public class UniqueValuesPolygonRuleList extends UniqueValuesRuleList {
private final Logger LOGGER = Logger
.getLogger(UniqueValuesPolygonRuleList.class);
public UniqueValuesPolygonRuleList(
StyledFeaturesInterface<?> styledFeatures, boolean withDefaults) {
super(RulesListType.UNIQUE_VALUE_POLYGON, styledFeatures,
GeometryForm.POLYGON, withDefaults);
}
@Override
public void importTemplate(FeatureTypeStyle importFTS) {
setTemplate(ASUtil.importPolygonTemplateFromFirstRule(importFTS));
}
}