blob: 7bf228f87fba7d453636dbeca04225ab9f851fe1 [file] [log] [blame]
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.flex.swf.types;
/**
* The Gradient Bevel filter is extension of the normal Bevel IFilter and allow
* a gradient to be specified instead of a single color. Instead of multiplying
* a single color value by the shadow-pixel plane value, the shadow-pixel plane
* value is mapped directly into the gradient ramp to obtain the resulting color
* pixel value, which is then composited by using one of the specified
* compositing modes.
*/
public class GradientBevelFilter extends BevelFilter
{
private int numColors;
private RGBA gradientColors[];
private int gradientRatio[];
/**
* @return the numColors
*/
public int getNumColors()
{
return numColors;
}
/**
* @param numColors the numColors to set
*/
public void setNumColors(int numColors)
{
this.numColors = numColors;
}
/**
* @return the gradientColors
*/
public RGBA[] getGradientColors()
{
return gradientColors;
}
/**
* @param gradientColors the gradientColors to set
*/
public void setGradientColors(RGBA[] gradientColors)
{
this.gradientColors = gradientColors;
}
/**
* @return the gradientRatio
*/
public int[] getGradientRatio()
{
return gradientRatio;
}
/**
* @param gradientRatio the gradientRatio to set
*/
public void setGradientRatio(int[] gradientRatio)
{
this.gradientRatio = gradientRatio;
}
}