You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by hi...@apache.org on 2001/03/30 20:05:49 UTC

cvs commit: xml-batik/sources/org/apache/batik/css/svg ColorInterpolationFiltersResolver.java

hillion     01/03/30 10:05:48

  Added:       sources/org/apache/batik/css/svg
                        ColorInterpolationFiltersResolver.java
  Log:
  
  
  Revision  Changes    Path
  1.1                  xml-batik/sources/org/apache/batik/css/svg/ColorInterpolationFiltersResolver.java
  
  Index: ColorInterpolationFiltersResolver.java
  ===================================================================
  /*****************************************************************************
   * Copyright (C) The Apache Software Foundation. All rights reserved.        *
   * ------------------------------------------------------------------------- *
   * This software is published under the terms of the Apache Software License *
   * version 1.1, a copy of which has been included with this distribution in  *
   * the LICENSE file.                                                         *
   *****************************************************************************/
  
  package org.apache.batik.css.svg;
  
  import org.apache.batik.css.CSSOMReadOnlyStyleDeclaration;
  import org.apache.batik.css.CSSOMReadOnlyValue;
  import org.apache.batik.css.value.AbstractValueFactory;
  import org.apache.batik.css.value.ImmutableValue;
  import org.apache.batik.css.value.RelativeValueResolver;
  import org.w3c.dom.Element;
  import org.w3c.dom.css.ViewCSS;
  
  /**
   * This class provides a relative value resolver for the
   * 'color-interpolation' CSS property.
   *
   * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
   * @version $Id: ColorInterpolationFiltersResolver.java,v 1.1 2001/03/30 18:05:47 hillion Exp $
   */
  public class ColorInterpolationFiltersResolver implements RelativeValueResolver {
  
      /**
       * Whether the handled property is inherited or not.
       */
      public boolean isInheritedProperty() {
  	return true;
      }
  
      /**
       * Returns the name of the handled property.
       */
      public String getPropertyName() {
  	return SVGValueConstants.CSS_COLOR_INTERPOLATION_FILTERS_PROPERTY;
      }
  
      /**
       * Returns the default value for the handled property.
       */
      public CSSOMReadOnlyValue getDefaultValue() {
  	return new CSSOMReadOnlyValue(SVGValueConstants.LINEARRGB_VALUE);
      }
      
      /**
       * Resolves the given value if relative, and puts it in the given table.
       * @param element The element to which this value applies.
       * @param pseudoElement The pseudo element if one.
       * @param view The view CSS of the current document.
       * @param styleDeclaration The computed style declaration.
       * @param value The cascaded value.
       * @param priority The priority of the cascaded value.
       * @param origin The origin of the cascaded value.
       */
      public void resolveValue(Element element,
  			     String pseudoElement,
  			     ViewCSS view,
  			     CSSOMReadOnlyStyleDeclaration styleDeclaration,
  			     CSSOMReadOnlyValue value,
  			     String priority,
  			     int origin) {
          // Nothing to do.
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org