/* * GeoTools - The Open Source Java GIS Toolkit * http://geotools.org * * (C) 2002-2008, Open Source Geospatial Foundation (OSGeo) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotools.styling; import org.opengis.filter.expression.Expression; /** * A class to hold Channel information for use in ChannelSelction objects. * <pre> * <xs:complexType name="SelectedChannelType"> * <xs:sequence> * <xs:element ref="sld:SourceChannelName"/> * <xs:element ref="sld:ContrastEnhancement" minOccurs="0"/> * </xs:sequence> * </xs:complexType> * <xs:element name="SourceChannelName" type="xs:string"/> * </pre> * * @author iant * * @source $URL$ */ public interface SelectedChannelType extends org.opengis.style.SelectedChannelType { /** * Set the source channel name. * @param name name of the source channel */ public void setChannelName(String name); /** * Returns the channel's name. * * @return Source channel name */ public String getChannelName(); /** * @deprecated Use {@link #setContrastEnhancement(ContrastEnhancement))} instead. */ public void setContrastEnhancement(Expression gammaValue); public void setContrastEnhancement(org.opengis.style.ContrastEnhancement enhancement); public ContrastEnhancement getContrastEnhancement(); public void accept(org.geotools.styling.StyleVisitor visitor); }