From: <had...@us...> - 2008-10-15 09:50:57
|
Revision: 4066 http://fudaa.svn.sourceforge.net/fudaa/?rev=4066&view=rev Author: hadouxad Date: 2008-10-15 09:50:47 +0000 (Wed, 15 Oct 2008) Log Message: ----------- mise en place du calque Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java 2008-10-15 09:49:39 UTC (rev 4065) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/sig/layer/FSigVisuPanel.java 2008-10-15 09:50:47 UTC (rev 4066) @@ -9,8 +9,11 @@ import java.awt.Color; import java.awt.Frame; +import java.io.File; +import java.io.IOException; import java.util.ArrayList; import java.util.List; +import java.util.Map; import javax.swing.JComponent; @@ -28,6 +31,9 @@ import org.fudaa.ebli.commun.EbliFormatter; import org.fudaa.ebli.commun.EbliSelectionMode; import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; +import org.fudaa.fudaa.commun.save.FudaaFilleVisuPersistence; +import org.fudaa.fudaa.commun.save.FudaaSaveZipLoader; +import org.fudaa.fudaa.commun.save.FudaaSaveZipWriter; import org.fudaa.fudaa.sig.FSigAttibuteTypeManager; import com.memoire.bu.BuMenu; @@ -48,6 +54,11 @@ ThemeMenu theme_; + public void setActive(boolean _active) { + } + + + protected final FudaaCommonImplementation impl_; /** @@ -212,4 +223,35 @@ getController().updateInfoComponent(); } + /** + * Methode qui permet de charger un calque fsigVisuPanel + */ + public void loadCalque(File f, Map params) { + + + try { + (new FudaaFilleVisuPersistence(this, getImpl())).restore(getImpl(), new FudaaSaveZipLoader(f), getImpl() + .getMainProgression()); + } catch (IOException e) { + e.printStackTrace(); + } + + + } + + /** + * Sauvegarde le calque au for\xE9at zip. + */ + public void saveCalque(File _f) { + + try { + (new FudaaFilleVisuPersistence(this, getImpl())).saveIn(new FudaaSaveZipWriter(_f), getImpl() + .getMainProgression()); + } catch (IOException e) { + e.printStackTrace(); + } + + } + + } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |