001package com.hfg.svg.filtereffect; 002 003import com.hfg.svg.SVG; 004import com.hfg.svg.SvgAttr; 005import com.hfg.svg.SvgNode; 006import com.hfg.xml.XMLTag; 007 008//------------------------------------------------------------------------------ 009/** 010 Object representation of an SVG (Scalable Vector Graphics) 'feDistantLight' filter effect tag. 011 012 @author J. Alex Taylor, hairyfatguy.com 013 */ 014//------------------------------------------------------------------------------ 015// com.hfg XML/HTML Coding Library 016// 017// This library is free software; you can redistribute it and/or 018// modify it under the terms of the GNU Lesser General Public 019// License as published by the Free Software Foundation; either 020// version 2.1 of the License, or (at your option) any later version. 021// 022// This library is distributed in the hope that it will be useful, 023// but WITHOUT ANY WARRANTY; without even the implied warranty of 024// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 025// Lesser General Public License for more details. 026// 027// You should have received a copy of the GNU Lesser General Public 028// License along with this library; if not, write to the Free Software 029// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 030// 031// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 032// jataylor@hairyfatguy.com 033//------------------------------------------------------------------------------ 034 035public class SvgFeDistantLight extends SvgLightSource implements SvgNode 036{ 037 //########################################################################### 038 // CONSTRUCTORS 039 //########################################################################### 040 041 //--------------------------------------------------------------------------- 042 public SvgFeDistantLight() 043 { 044 super(SVG.feDistantLight); 045 } 046 047 //--------------------------------------------------------------------------- 048 public SvgFeDistantLight(XMLTag inXMLTag) 049 { 050 this(); 051 initFromXMLTag(inXMLTag); 052 } 053 054 //########################################################################### 055 // PUBLIC METHODS 056 //########################################################################### 057 058 //--------------------------------------------------------------------------- 059 /** 060 Direction angle for the light source on the XY plane, in degrees. 061 If the attribute is not specified, then the effect is as if a value of 0 were specified. 062 */ 063 public SvgFeDistantLight setAzimuth(float inValue) 064 { 065 setAttribute(SvgAttr.azimuth, inValue); 066 return this; 067 } 068 069 070 //--------------------------------------------------------------------------- 071 /** 072 Direction angle for the light source on the YZ plane, in degrees. 073 If the attribute is not specified, then the effect is as if a value of 0 were specified. 074 */ 075 public SvgFeDistantLight setElevation(float inValue) 076 { 077 setAttribute(SvgAttr.elevation, inValue); 078 return this; 079 } 080 081 082 083 084}