-- Director View Description List
-- Copyright 2006-2008 Adobe Systems Incorporated

[ 	#blurfilter: 
	[ 
		#comment: "DisplacementMapFilter",
		
		#symbol: #DisplacementMapFilter,
				
		#propertyDescriptionList:
		[
			#map:
			[
				#format: #bitmap,
				#comment: "BitmapData object containing the displacement map data"
			],
			#mapX:
			[
				#format: #integer,
				#comment: "Offset of the left corner of the target image from the left corner of the map image"
			],

			#mapY:
			[
				#format: #integer,
				#comment: "Offset of the top corner of the target image from the top corner of the map image"
			],

			#componentX:
			[
				#format: #symbol,
				#range: 
				[
					#none,
					#red,
					#green,
					#blue,
					#alpha
				],
				#comment: "Describes which color channel to use in the map image to displace the x result"
			],

			#componentY:
			[
				#format: #symbol,
				#range: 
				[
					#none,
					#red,
					#green,
					#blue,
					#alpha
				],
				#comment: "Describes which color channel to use in the map image to displace the y result"
			],

			#scaleX:
			[
				#format: #float,
				#comment: "The multiplier to use to scale the x displacement result from the map calculation"
			],

			#scaleY:
			[
				#format: #float,
				#comment: "The multiplier to use to scale the y displacement result from the map calculation"
			],

			#mode:
			[
				#format: #integer,
				#range: 
				[
					0,
					1,
					2,
					3
				],
				#comment: "The mode for the filter"
			],

            		#color:
            		[
				#format: #color,
				#comment: "Specifies what color to use for out-of-bounds displacements"
            		],

			#alpha: 
			[
			 	#format: #integer,
			 	#range: 
			 	[
			 		#min: 0,
			 		#max: 255,
					#granularity: 1
			 	],
				#comment: "Specifies the alpha transparency value to use for out-of-bounds displacements"
			]

		],

		#itemDescriptionList:
		[
			#mapLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Map:",
				#comment: "BitmapData object containing the displacement map data",
				#left: 0,
				#top: 148,
				#right: 39,
				#bottom: 164
			],

			#mapList:
			[
				#type: #bitmap,
				#property: #map,
				#left: 42,
				#top: 145,
				#right: -1,
				#bottom: 164
			],

			#mapXLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Map X:",
				#comment: "Offset of the left corner of the target image from the left corner of the map image",
				#left: 0,
				#top: 170,
				#right: 39,
				#bottom: 186
			],

			#mapXField:
			[
				#type: #field,
				#property: #mapX,
				#left: 42,
				#top: 167,
				#right: 97,
				#bottom: 186
			],

			#mapYLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Map Y:",
				#comment: "Offset of the top corner of the target image from the top corner of the map image",
				#left: 100,
				#top: 170,
				#right: 140,
				#bottom: 186
			],

			#mapYField:
			[
				#type: #field,
				#property: #mapY,
				#left: 143,
				#top: 167,
				#right: 198,
				#bottom: 186
			],

			#componentXLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Comp X:",
				#comment: "Describes which color channel to use in the map image to displace the x result",
				#left: 0,
				#top: 192,
				#right: 39,
				#bottom: 208
			],

			#componentX:
			[
				#property: #componentX,
				#left: 42,
				#top: 189,
				#right: 97,
				#bottom: 208,
				#range:
				[
					"None" ,
					"Red",
					"Green",
					"Blue",
					"Alpha"
				]

			],

			#componentYLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Comp Y:",
				#comment: "Describes which color channel to use in the map image to displace the y result",
				#left: 100,
				#top: 192,
				#right: 140,
				#bottom: 208
			],

			#componentY:
			[
				#property: #componentY,
				#left: 143,
				#top: 189,
				#right: 198,
				#bottom: 208,
				#range:
				[
					"None" ,
					"Red",
					"Green",
					"Blue",
					"Alpha"
				]

			],

			#scaleXLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Scale X:",
				#comment: "The multiplier to use to scale the x displacement result from the map calculation",
				#left: 0,
				#top: 214,
				#right: 39,
				#bottom: 230
			],

			#scaleXField:
			[
				#type: #field,
				#property: #scaleX,
				#left: 42,
				#top: 211,
				#right: 97,
				#bottom: 230
			],

			#scaleYLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Scale Y:",
				#comment: "The multiplier to use to scale the y displacement result from the map calculation",
				#left: 100,
				#top: 214,
				#right: 140,
				#bottom: 230
			],

			#scaleYField:
			[
				#type: #field,
				#property: #scaleY,
				#left: 143,
				#top: 211,
				#right: 198,
				#bottom: 230
			],


			#modeLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Mode:",
				#comment: "The mode for the filter",
				#left: 0,
				#top: 234,
				#right: 39,
				#bottom: 250
			],

			#mode: 
			[
				#property: #mode,
				#left: 42,
				#top: 231,
				#right: -1,
				#bottom: 250,
				#range:
				[
					"Wrap" ,
					"Clamp",
					"Ignore",
					"Color"
				]
			],

			#colorLabel:
		        [
		        	#type: #label,
                		#alignment: #right,
		                #text: "Color:",
				#comment: "Specifies what color to use for out-of-bounds displacements",
		                #left: 0,
                		#top: 256,
		                #right: 37,
                		#bottom: 272
            		],

			#colorField:
			[
				#type: #field,
				#property: #color,
				#left: 42,
				#top: 253,
				#right: 94,
				#bottom: 272
			],

      			#color:
      			[
				#type: #color,
       				#property: #color,
      				#left: 101,
      				#top: 256,
      				#right: 120,
      				#bottom: 272
       			],

			#alphaLabel:
			[
				#type :#label,
				#alignment: #right,
				#text:"Alpha:",
				#comment: "Specifies the alpha transparency value to use for out-of-bounds displacements",
				#left: 0,
				#top: 278,
				#right: 39,
				#bottom: 294
			],

			#alpha:
			[
				#property: #alpha,
				#left: 40,
				#top: 278,
				#right: -1,
				#bottom: 294
			]
		]
	]
]

