/**
* License: GPL
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package mpicbg.trakem2.transform;
/**
* @author Stephan Saalfeld saalfeld@mpi-cbg.de
*/
public class CoordinateTransformList< E extends CoordinateTransform > extends mpicbg.models.CoordinateTransformList< E > implements CoordinateTransform
{
private static final long serialVersionUID = 8134060157022268181L;
//@Override
@Override
public void init( final String data )
{
throw new NumberFormatException( "There is no parameter based initialisation for " + this.getClass().getCanonicalName() );
}
//@Override
@Override
public String toXML( final String indent )
{
final StringBuilder xml = new StringBuilder( 160000 );
xml.append(indent).append("<ict_transform_list>");
for ( final mpicbg.models.CoordinateTransform t : transforms )
xml.append('\n').append( ( ( CoordinateTransform )t ).toXML( indent + "\t" ) );
return xml.append('\n').append(indent).append("</ict_transform_list>").toString();
}
//@Override
@Override
public String toDataString()
{
return "";
}
@Override
public CoordinateTransformList< E > copy()
{
final CoordinateTransformList< E > ctl = new CoordinateTransformList< E >();
for ( final E ct : transforms )
ctl.add( ( E )ct.copy() );
return ctl;
}
}