<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>Hola Cesar muy agradecido por tu respuesta, pero tengo una unica duda<BR>
cuando creo mi plantilla(.gvt)&nbsp; he inserto textos,vista no se como configurarlos para que la<BR>
getFFrameByTag(<FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>"provinciatag"</FONT></FONT><FONT size=2>,layout, frames) </FONT>reconozca el primer parametro "<FONT color=#2a00ff>provinciatag</FONT>"<BR>
&nbsp;<BR>
mas claro que es "<FONT color=#2a00ff>provinciatag", </FONT><FONT color=#000000>supongo que debe ser una texto al cual&nbsp;le asigno</FONT><BR>
<FONT color=#000000>un valor por codigo, como puedo hacer para&nbsp;configurar ese parametro en mi plantilla(.gvt)&nbsp;y para que despues lo </FONT><BR>
<FONT color=#000000>llame desde codigo</FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR>
<FONT color=#000000>por ejemplo:</FONT><BR>
<FONT color=#000000></FONT>&nbsp;<BR><FONT color=#000000>
<P align=left>IFFrame texto=getFFrameByTag(<FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>"provinciatag"</FONT></FONT><FONT size=2>,layout, frames); </P>
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</FONT><FONT color=#2a00ff size=2><FONT color=#2a00ff size=2>"PROVINCIA :"</FONT></FONT><FONT size=2>+fg.getProvincia()); </FONT></P>
<P align=left>&nbsp;</P>
<P align=left>en ese codigo asignas el valor de que te da <FONT size=3>fg.getProvincia()); </FONT><FONT color=#000000 size=2>ha </FONT></FONT><FONT color=#000000 size=3>provinciatag</FONT></P>
<P align=left><FONT color=#000000>como lo configuro en mi plantilla.</FONT></P>
&nbsp;<BR>
Atte.<BR>
Robert Zavaleta<BR>

<HR id=stopSpelling>
Date: Tue, 15 Sep 2009 09:21:47 +0200<BR>From: cescriba@gmail.com<BR>To: gvsig_desarrolladores@listserv.gva.es<BR>Subject: Re: [Gvsig_desarrolladores] fichas automatizadas<BR><BR><BR>
<DIV>Hola Robert.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Yo he resuelto el problema de fichas automatizadas en la versión 1.1.2 de gvSIG.</DIV>
<DIV>Yo tengo un objeto cuyas propiedades almacenan la información que se va a mostrar en la ficha (fichagrafica).</DIV>
<DIV>este objeto se lo paso a mi ficha gráfica.</DIV>
<DIV>La extensión hace una instancia a un objeto MuestraFichaGrafica. el método mostrar se encarga de mostrar la ficha gráfica. El fichero .gvt ha de existir previamente. Lo generas desde gvSIG como usuario.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#3f5fbf><FONT color=#3f5fbf>
<P align=left>/**</P></FONT></FONT>
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Muestra</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>la</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Ficha</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Gráfica</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>del</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>tipo</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>solicitado</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>en</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>función</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>de</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>la</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>selección</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>del</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>usuario</FONT></FONT></U> 
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Si</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>tipo</FONT></FONT></U>=1 <FONT color=#7f7f9f><FONT color=#7f7f9f>--&gt;</FONT></FONT> <FONT color=#3f5fbf><FONT color=#3f5fbf>El</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>usuario</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>quiere</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>sacar</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>ficha</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>gráfica</FONT></FONT></U> <FONT color=#3f5fbf><FONT color=#3f5fbf>General</FONT></FONT> 
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Si</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>tipo</FONT></FONT></U>=2 <FONT color=#7f7f9f><FONT color=#7f7f9f>--&gt;</FONT></FONT> <FONT color=#3f5fbf><FONT color=#3f5fbf>El</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>usuario</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>quiere</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>sacar</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>ficha</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>gráfica</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>De</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Parcela</FONT></FONT></U> 
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Si</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>tipo</FONT></FONT></U>=3 <FONT color=#7f7f9f><FONT color=#7f7f9f>--&gt;</FONT></FONT> <FONT color=#3f5fbf><FONT color=#3f5fbf>El</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>usuario</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>quiere</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>sacer</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>ficha</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>gráfica</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>De</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Capas</FONT></FONT></U> <FONT color=#3f5fbf><FONT color=#3f5fbf>o</FONT></FONT> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>de</FONT></FONT></U> <FONT color=#3f5fbf><FONT color=#3f5fbf>DosCapas</FONT></FONT> 
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*</FONT></FONT> 
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*</FONT></FONT> <B><FONT color=#7f9fbf><FONT color=#7f9fbf>@author</FONT></FONT></B> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>César</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Escribano</FONT></FONT></U> <U><FONT color=#3f5fbf><FONT color=#3f5fbf>Hernández</FONT></FONT></U> 
<P align=left></P><FONT color=#3f5fbf><FONT color=#3f5fbf>*/</FONT></FONT><B><FONT color=#7f0055><FONT color=#7f0055> 
<P align=left>public</P></FONT></FONT></B><B><FONT color=#7f0055><FONT color=#7f0055>class</FONT></FONT></B> MuestraFichaGrafica { 
<P align=left></P>
<P align=left>File </P><FONT color=#0000c0><FONT color=#0000c0>directorioRelativo</FONT></FONT> = <B><FONT color=#7f0055><FONT color=#7f0055>null</FONT></FONT></B>; 
<P align=left>String </P><FONT color=#0000c0><FONT color=#0000c0>rutaPlantilla</FONT></FONT>=<FONT color=#2a00ff><FONT color=#2a00ff>""</FONT></FONT>; 
<P align=left>File </P><FONT color=#0000c0><FONT color=#0000c0>xmlFile</FONT></FONT> =<B><FONT color=#7f0055><FONT color=#7f0055>null</FONT></FONT></B>; 
<P align=left>FileReader </P><FONT color=#0000c0><FONT color=#0000c0>reader</FONT></FONT>=<B><FONT color=#7f0055><FONT color=#7f0055>null</FONT></FONT></B>; 
<P align=left></P>
<P align=left></P>
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>public</FONT></FONT></B> MuestraFichaGrafica(String nombrePlantilla) { 
<P align=left></P><FONT color=#0000c0><FONT color=#0000c0>directorioRelativo</FONT></FONT> = <B><FONT color=#7f0055><FONT color=#7f0055>new</FONT></FONT></B> File(<FONT color=#2a00ff><FONT color=#2a00ff>""</FONT></FONT>); 
<P align=left></P><FONT color=#0000c0><FONT color=#0000c0>rutaPlantilla</FONT></FONT>=<FONT color=#0000c0><FONT color=#0000c0>directorioRelativo</FONT></FONT>.getAbsolutePath()+<FONT color=#2a00ff><FONT color=#2a00ff>"\\"</FONT></FONT>+nombrePlantilla; 
<P align=left></P><FONT color=#0000c0><FONT color=#0000c0>xmlFile</FONT></FONT> = <B><FONT color=#7f0055><FONT color=#7f0055>new</FONT></FONT></B> File(<FONT color=#0000c0><FONT color=#0000c0>rutaPlantilla</FONT></FONT>);<FONT color=#3f7f5f><FONT color=#3f7f5f> 
<P align=left>// try {</P>
<P align=left>// reader = new FileReader(xmlFile);</P>
<P align=left>// } catch (FileNotFoundException e) {</P></FONT></FONT>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>// </FONT></FONT><B><FONT color=#7f9fbf><FONT color=#7f9fbf>TODO</FONT></FONT></B><FONT color=#3f7f5f><FONT color=#3f7f5f> Auto-generated catch block 
<P align=left>// e.printStackTrace();</P>
<P align=left>// }</P></FONT></FONT>
<P align=left></P>
<P align=left>}</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Fin <U>del</U> constructor</FONT></FONT> 
<P align=left></P>
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>public</FONT></FONT></B> <B><FONT color=#7f0055><FONT color=#7f0055>void</FONT></FONT></B> mostrar(FichaGrafica fg,<B><FONT color=#7f0055><FONT color=#7f0055>int</FONT></FONT></B> tipo){ 
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>try</FONT></FONT></B> { 
<P align=left></P><FONT color=#0000c0><FONT color=#0000c0>reader</FONT></FONT> = <B><FONT color=#7f0055><FONT color=#7f0055>new</FONT></FONT></B> FileReader(<FONT color=#0000c0><FONT color=#0000c0>xmlFile</FONT></FONT>); 
<P align=left></P>
<P align=left>XmlTag tag;</P>
<P align=left></P>
<P align=left>tag = (XmlTag) XmlTag.<I>unmarshal</I>(</P><FONT color=#0000c0><FONT color=#0000c0>reader</FONT></FONT>); 
<P align=left></P>
<P align=left>Project p =((ProjectExtension)PluginServices.<I>getExtension</I>(ProjectExtension.</P><B><FONT color=#7f0055><FONT color=#7f0055>class</FONT></FONT></B>)).getProject(); 
<P align=left></P>
<P align=left></P>
<P align=left>Layout layout;</P>
<P align=left></P>
<P align=left>layout = Layout.<I>createLayout</I>(</P><B><FONT color=#7f0055><FONT color=#7f0055>new</FONT></FONT></B> XMLEntity(tag),p); 
<P align=left></P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Recorremos</U> <U>los</U> frames <U>del</U> layout y <U>los</U> <U>cargamos</U> <U>en</U> <U>un</U> array</FONT></FONT> 
<P align=left>IFFrame[] frames=layout.getLayoutContext().getFFrames();</P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>provinciatag</U></FONT></FONT> 
<P align=left>IFFrame texto=getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"provinciatag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"PROVINCIA :"</FONT></FONT>+fg.getProvincia()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>operadortag</U></FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"operadortag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"OPERADOR :"</FONT></FONT>+fg.getOperador()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>projcstag</U></FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"projcstag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"SIST. REF.:"</FONT></FONT>+fg.getProjcs()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>datumtag</U></FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"datumtag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"DATUM :"</FONT></FONT>+fg.getDatum()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>spheroidtag</U></FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"spheroidtag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"ELIPSOIDE :"</FONT></FONT>+fg.getSpheroid()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>projectiontag</U></FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"projectiontag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"PROYECCIÓN:"</FONT></FONT>+fg.getProjection()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>escalatag</U></FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"escalatag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"ESCALA : 1 / "</FONT></FONT>+fg.getEscalaV1()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>vistatag</U> e <U>imponer</U> <U>la</U> <U>escala</U> anterior</FONT></FONT> 
<P align=left>IFFrame vista=getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"vistatag"</FONT></FONT>,layout, frames); 
<P align=left>ProjectView pv=(ProjectView)p.getDocumentsByType(ProjectViewFactory.</P><I><FONT color=#0000c0><FONT color=#0000c0>registerName</FONT></FONT></I>).get(0); 
<P align=left>((FFrameView)vista).setView(pv);</P>
<P align=left>((FFrameView)vista).setTypeScale(FFrameView.</P><I><FONT color=#0000c0><FONT color=#0000c0>MANUAL</FONT></FONT></I>); 
<P align=left>((FFrameView)vista).setScale(Double.<I>valueOf</I>(fg.getEscalaV1()).doubleValue());</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Transformamos</U> el String <U>escala</U> a <U>tipo</U> double</FONT></FONT> 
<P align=left>((FFrameView)vista).refresh(); </P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>fechatag</U></FONT></FONT> 
<P align=left>IFFrame fecha = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"fechatag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)fecha).clearText();</P><FONT color=#3f7f5f><FONT color=#3f7f5f>
<P align=left>// Date date=new Date();</P>
<P align=left>// ((FFrameText)<U>fecha</U>).addText("FECHA :"+DateFormat.getDateInstance().format(date));</P></FONT></FONT>
<P align=left>((FFrameText)fecha).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"FECHA :"</FONT></FONT>+fg.getFecha()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag <U>logotag</U></FONT></FONT> 
<P align=left>String rutaEscudo = </P><FONT color=#0000c0><FONT color=#0000c0>directorioRelativo</FONT></FONT>.getAbsolutePath()+<FONT color=#2a00ff><FONT color=#2a00ff>"\\images\\logo_indra.png"</FONT></FONT>; 
<P align=left>IFFrame escudo=getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"logotag"</FONT></FONT>,layout,frames); 
<P align=left>((FFramePicture)escudo).load(rutaEscudo);</P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>
<P align=left>// ********** //<U>Si</U> <U>se</U> <U>quiere</U> <U>sacar</U> <U>una</U> <U>ficha</U> <U>gráfica</U> <U>De</U> <U>Parcela</U> (<U>Tipo</U> 2) // *********</P></FONT></FONT>
<P align=left></P>
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>if</FONT></FONT></B> (tipo==2){ 
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//<U>Dar</U> valor <U>al</U> tag escalatag</FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"escalaparcelatag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"ESCALA : 1 / "</FONT></FONT>+fg.getEscalaV2()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Dar valor al tag vistaparcelatag</FONT></FONT> 
<P align=left>vista=getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"vistaparcelatag"</FONT></FONT>,layout, frames); 
<P align=left>pv=(ProjectView)p.getDocumentsByType(ProjectViewFactory.</P><I><FONT color=#0000c0><FONT color=#0000c0>registerName</FONT></FONT></I>).get(1); 
<P align=left>((FFrameView)vista).setView(pv);</P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//((FFrameView)vista).setTypeScale(FFrameView.AUTOMATICO);</FONT></FONT> 
<P align=left>((FFrameView)vista).setTypeScale(FFrameView.</P><I><FONT color=#0000c0><FONT color=#0000c0>MANUAL</FONT></FONT></I>); 
<P align=left>((FFrameView)vista).setScale(Double.<I>valueOf</I>(fg.getEscalaV2()).doubleValue());</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Transformamos el String escala a tipo double</FONT></FONT> 
<P align=left>((FFrameView)vista).refresh(); </P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Dar valor al tag codparcelatag</FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"codparcelatag"</FONT></FONT>,layout,frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(fg.getCodParcela());</P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Dar valor al tag areaparcelatag</FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"areaparcelatag"</FONT></FONT>,layout,frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(fg.getAreaParcela());</P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Dar valor al tag perimetro</FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"perimetroparcelatag"</FONT></FONT>,layout,frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(fg.getPerimetroParcela());</P>
<P align=left></P>
<P align=left></P>
<P align=left>}</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Fin del if de Tipo = 2.</FONT></FONT> 
<P align=left></P>
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>if</FONT></FONT></B> (tipo==3){ 
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Dar valor al tag escalatag</FONT></FONT> 
<P align=left>texto = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"escalatag"</FONT></FONT>,layout, frames); 
<P align=left>((FFrameText)texto).clearText();</P>
<P align=left>((FFrameText)texto).addText(</P><FONT color=#2a00ff><FONT color=#2a00ff>"ESCALA : 1 / "</FONT></FONT>+fg.getEscalaV2()); 
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Dar valor al tag vistatag e imponer la escala anterior </FONT></FONT>
<P align=left>vista=getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"vistatag"</FONT></FONT>,layout, frames); 
<P align=left>pv=(ProjectView)p.getDocumentsByType(ProjectViewFactory.</P><I><FONT color=#0000c0><FONT color=#0000c0>registerName</FONT></FONT></I>).get(1); 
<P align=left>((FFrameView)vista).setView(pv);</P>
<P align=left>((FFrameView)vista).setTypeScale(FFrameView.</P><I><FONT color=#0000c0><FONT color=#0000c0>MANUAL</FONT></FONT></I>); 
<P align=left>((FFrameView)vista).setScale(Double.<I>valueOf</I>(fg.getEscalaV2()).doubleValue());</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Transformamos el String escala a tipo double</FONT></FONT> 
<P align=left>((FFrameView)vista).refresh(); </P>
<P align=left></P>
<P align=left>IFFrame leyenda = getFFrameByTag(</P><FONT color=#2a00ff><FONT color=#2a00ff>"leyendatag"</FONT></FONT>,layout,frames); 
<P align=left>((FFrameLegend)leyenda).setViewing(1);</P>
<P align=left></P>
<P align=left></P>
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Añadir el código necesario específico para fichas gráficas tipo 3 (plantillacapas.gvt)</FONT></FONT> 
<P align=left>}</P>
<P align=left></P>
<P align=left>ProjectMap pmap = ProjectFactory.<I>createMap</I>(</P><FONT color=#2a00ff><FONT color=#2a00ff>"Ficha"</FONT></FONT>); 
<P align=left>layout.setProjectMap(pmap);</P>
<P align=left>PluginServices.<I>getMDIManager</I>().addWindow(layout);</P>
<P align=left></P>
<P align=left>} </P><B><FONT color=#7f0055><FONT color=#7f0055>catch</FONT></FONT></B> (OpenException e) { 
<P align=left></P><FONT color=#3f7f5f><FONT color=#3f7f5f>// </FONT></FONT><B><FONT color=#7f9fbf><FONT color=#7f9fbf>TODO</FONT></FONT></B><FONT color=#3f7f5f><FONT color=#3f7f5f> Auto-generated catch block</FONT></FONT> 
<P align=left>e.printStackTrace();</P>
<P align=left>} </P><B><FONT color=#7f0055><FONT color=#7f0055>catch</FONT></FONT></B> (ValidationException e1) { 
<P align=left>e1.printStackTrace();</P>
<P align=left>} </P><B><FONT color=#7f0055><FONT color=#7f0055>catch</FONT></FONT></B> (FileNotFoundException e) { 
<P align=left>e.printStackTrace();</P>
<P align=left>} </P><B><FONT color=#7f0055><FONT color=#7f0055>catch</FONT></FONT></B> (org.exolab.castor.xml.MarshalException e) { 
<P align=left>e.printStackTrace();</P>
<P align=left>}</P>
<P align=left>}</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Fin de la funcion mostrar</FONT></FONT> 
<P align=left></P>
<P align=left>&nbsp;</P>
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>private</FONT></FONT></B> IFFrame getFFrameByTag(String string,Layout layout,IFFrame[] frames) { 
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>for</FONT></FONT></B> (<B><FONT color=#7f0055><FONT color=#7f0055>int</FONT></FONT></B> i = 0; i &lt; frames.<FONT color=#0000c0><FONT color=#0000c0>length</FONT></FONT>; i++) { 
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>if</FONT></FONT></B>(frames[i].getTag()!=<B><FONT color=#7f0055><FONT color=#7f0055>null</FONT></FONT></B> &amp;&amp; frames[i].getTag().equals(string)){ 
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>return</FONT></FONT></B> frames[i]; 
<P align=left>}</P>
<P align=left>}</P>
<P align=left></P><B><FONT color=#7f0055><FONT color=#7f0055>return</FONT></FONT></B> <B><FONT color=#7f0055><FONT color=#7f0055>null</FONT></FONT></B>; 
<P align=left>}</P><FONT color=#3f7f5f><FONT color=#3f7f5f>//Fin del método getFFrameByTag</FONT></FONT> 
<P align=left></P>
<P align=left>&nbsp;</P>
<P align=left>}</P></DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><BR>&nbsp;</DIV>
<DIV class=EC_gmail_quote>El 15 de septiembre de 2009 00:23, Elder Robert Zavaleta Veneros <SPAN dir=ltr>&lt;<A href="mailto:erobert_zv@hotmail.com">erobert_zv@hotmail.com</A>&gt;</SPAN> escribió:<BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV><BR>Hola nuevamente:<BR>alguien me puede ayudar o decirme como crear&nbsp;fichas automatizadas se que se crea con el documento MAPAS<BR>pero quisiera crearme una plantilla y pasarle datos desde una extencion que estoy desarrollando 
<DIV class=EC_im><BR>&nbsp;<BR>gracias de ante mano:<BR>&nbsp;<BR>atte.<BR>Robert Zavaleta&nbsp;&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>
<HR>
From: <A href="mailto:erobert_zv@hotmail.com">erobert_zv@hotmail.com</A><BR></DIV>To: <A href="mailto:gvsig_desarrolladores@listserv.gva.es">gvsig_desarrolladores@listserv.gva.es</A>; <A href="mailto:gvsig_desarrolladores@runas.cap.gva.es">gvsig_desarrolladores@runas.cap.gva.es</A><BR>Subject: fichas automatizadas<BR>Date: Thu, 10 Sep 2009 13:37:56 -0500 
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR>Hola nuevamente:<BR>una consulta revisando la docuemntacion del portal, he visto que se puden crear fichas automatizadas(reportes),<BR>me podrian ayudar con este nuevo reto.<BR>&nbsp;<BR>gracias de ante mano:<BR>&nbsp;<BR>atte.<BR>Robert Zavaleta&nbsp;&nbsp;<BR>&nbsp;<BR>
<HR>
From: <A href="mailto:erobert_zv@hotmail.com">erobert_zv@hotmail.com</A><BR>To: <A href="mailto:gvsig_desarrolladores@runas.cap.gva.es">gvsig_desarrolladores@runas.cap.gva.es</A><BR>Subject: RE: imprimir mapas<BR>Date: Wed, 9 Sep 2009 13:56:47 -0500<BR><BR>hola a todos:<BR>favor&nbsp;ayuden con&nbsp;lo expuesto<BR>&nbsp;<BR>atte.<BR>Robert Zavaleta&nbsp;<BR><BR>&nbsp;<BR>
<HR>
From: <A href="mailto:erobert_zv@hotmail.com">erobert_zv@hotmail.com</A><BR>To: <A href="mailto:gvsig_desarrolladores@runas.cap.gva.es">gvsig_desarrolladores@runas.cap.gva.es</A><BR>Subject: imprimir mapas<BR>Date: Tue, 8 Sep 2009 17:15:10 -0500<BR><BR>hola a todos:<BR>una consulta estoy&nbsp;intentando desarrollar una extencion en gvSIG que va ha permir <BR>imprimir un mapa, lo estoy desarrollando con la clase FFRAME, pero no se como configurar <BR>la plantilla(.gvt)&nbsp; para que reciba para los parametros por codigo.<BR>&nbsp;<BR>agradezco&nbsp; de ante mano su ayuda<BR>&nbsp;<BR>Robert Zavaleta<BR>&nbsp;<BR><BR>
<HR>
See all the ways you can stay connected <A href="http://www.microsoft.com/windows/windowslive/default.aspx">to friends and family</A><BR>
<HR>
check out the rest of the Windows Live™. More than mail–Windows Live™ goes way beyond your inbox. <A href="http://www.microsoft.com/windows/windowslive/">More than messages</A><BR>
<HR>
Share your memories online with anyone you want <A href="http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1">anyone you want.</A><BR>
<HR>
See all the ways you can stay connected <A href="http://www.microsoft.com/windows/windowslive/default.aspx">to friends and family</A></DIV></DIV></DIV><BR>_______________________________________________<BR>gvSIG_desarrolladores mailing list<BR><A href="mailto:gvSIG_desarrolladores@listserv.gva.es">gvSIG_desarrolladores@listserv.gva.es</A><BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores</A><BR><BR></BLOCKQUOTE></DIV><BR><br /><hr />check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
 <a href='http://www.microsoft.com/windows/windowslive/' target='_new'>More than messages</a></body>
</html>