tintparameters.java

来自「esri的ArcGIS Server超级学习模板程序(for java)」· Java 代码 · 共 90 行

JAVA
90
字号
package com.esri.solutions.jitk.web.data.image;

/**
 * Bean class to contain Tint parameters.  Since
 * all three color are modified for Tint, we need to
 * have methods to set and get each Color
 */
public class TintParameters {
	
	/**
	 * Red offset tint value.
	 */
	private byte m_red = 0;
	
	/**
	 * Green offset tint value.
	 */
	private byte m_green = 0;
	
	/**
	 * Blue offset tint value.
	 */
	private byte m_blue = 0;
	
	/**
	 * Returns the Red offset tint value.  This
	 * value will be added to the red color 
	 * component for a pixel.
	 * 
	 * @return Red offset tint value.
	 */
	public byte getRedOffset() {
		return m_red;
	}
	
	/**
	 * Sets the Red offset tint value.  This
	 * value will be added to the red color
	 * component for a pixel.
	 * 
	 * @param red  Red Offset tint value.
	 */
	public void setRedOffset(byte red) {
		m_red = red;
	}
	
	/**
	 * Returns the Green offset tint value.  This
	 * value will be added to the green color 
	 * component for a pixel.
	 * 
	 * @return Green offset tint value.
	 */
	public byte getGreenOffset() {
		return m_green;
	}
	
	/**
	 * Sets the green offset tint value.  This
	 * value will be added to the green color
	 * component for a pixel.
	 * 
	 * @param red  Green Offset tint value.
	 */
	public void setGreenOffset(byte green) {
		m_green = green;
	}
	
	/**
	 * Returns the Blue offset tint value.  This
	 * value will be added to the blue color 
	 * component for a pixel.
	 * 
	 * @return Blue offset tint value.
	 */
	public byte getBlueOffset() {
		return m_blue;
	}
	
	/**
	 * Sets the Blue offset tint value.  This
	 * value will be added to the blue color
	 * component for a pixel.
	 * 
	 * @param red  Blue Offset tint value.
	 */
	public void setBlueOffset(byte blue) {
		m_blue = blue;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?