001package com.hfg.xml.msofficexml.docx.drawingml.effect; 002 003 004 005import com.hfg.xml.XMLTag; 006import com.hfg.xml.msofficexml.OfficeOpenXMLTag; 007import com.hfg.xml.msofficexml.OfficeOpenXmlDocument; 008import com.hfg.xml.msofficexml.docx.drawingml.DmlXML; 009 010//------------------------------------------------------------------------------ 011/** 012 Represents a effect style (<a:effectStyle>) tag in drawing markup language (DML) from Office Open XML. 013 <div> 014 @author J. Alex Taylor, hairyfatguy.com 015 </div> 016 */ 017//------------------------------------------------------------------------------ 018// com.hfg XML/HTML Coding Library 019// 020// This library is free software; you can redistribute it and/or 021// modify it under the terms of the GNU Lesser General Public 022// License as published by the Free Software Foundation; either 023// version 2.1 of the License, or (at your option) any later version. 024// 025// This library is distributed in the hope that it will be useful, 026// but WITHOUT ANY WARRANTY; without even the implied warranty of 027// MERCHANTABILITY or FITNESS FOR A P 028// ARTICULAR PURPOSE. See the GNU 029// Lesser General Public License for more details. 030// 031// You should have received a copy of the GNU Lesser General Public 032// License along with this library; if not, write to the Free Software 033// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 034// 035// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 036// jataylor@hairyfatguy.com 037//------------------------------------------------------------------------------ 038 039public class DmlEffectStyle extends OfficeOpenXMLTag 040{ 041 private XMLTag mEffectList; 042 043 //########################################################################### 044 // CONSTRUCTORS 045 //########################################################################### 046 047 //--------------------------------------------------------------------------- 048 public DmlEffectStyle(OfficeOpenXmlDocument inParentDoc) 049 { 050 super(DmlXML.EFFECT_STYLE, inParentDoc); 051 init(); 052 } 053 054 //--------------------------------------------------------------------------- 055 private void init() 056 { 057 // Initialize the effect list 058 mEffectList = new XMLTag(DmlXML.EFFECT_LIST); 059 addSubtag(mEffectList); 060 } 061 062 //########################################################################### 063 // PUBLIC METHODS 064 //########################################################################### 065 066 //--------------------------------------------------------------------------- 067 public DmlEffectStyle addEffect(DmlEffect inValue) 068 { 069 mEffectList.addSubtag(inValue); 070 071 return this; 072 } 073}