From: <de...@us...> - 2008-09-11 22:20:23
|
Revision: 3911 http://fudaa.svn.sourceforge.net/fudaa/?rev=3911&view=rev Author: deniger Date: 2008-09-11 22:20:32 +0000 (Thu, 11 Sep 2008) Log Message: ----------- Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java 2008-09-11 22:14:11 UTC (rev 3910) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java 2008-09-11 22:20:32 UTC (rev 3911) @@ -1,7 +1,6 @@ package org.fudaa.ebli.visuallibrary; import java.awt.Dimension; -import java.awt.Graphics2D; import java.awt.Rectangle; import java.util.EnumSet; @@ -65,25 +64,25 @@ * de l editeur html * @param g */ - public void decoupeEcriture(String text, Graphics2D g) { - - int espaceLignes = 10; - - if(text==null || text.length()==0) - return; - - Rectangle rec = getClientArea(); - int indiceDep=0; - int espaceAffichable = Math.min((int) (rec.width / 5), text.length()); - - for (int i = 0; indiceDep + espaceAffichable < text.length(); i++) { - g.drawString(text.substring(indiceDep, indiceDep + espaceAffichable), rec.x, rec.y + i * espaceLignes); - indiceDep = indiceDep + espaceAffichable; - - } - - - } +// public void decoupeEcriture(String text, Graphics2D g) { +// +// int espaceLignes = 10; +// +// if(text==null || text.length()==0) +// return; +// +// Rectangle rec = getClientArea(); +// int indiceDep=0; +// int espaceAffichable = Math.min((int) (rec.width / 5), text.length()); +// +// for (int i = 0; indiceDep + espaceAffichable < text.length(); i++) { +// g.drawString(text.substring(indiceDep, indiceDep + espaceAffichable), rec.x, rec.y + i * espaceLignes); +// indiceDep = indiceDep + espaceAffichable; +// +// } +// +// +// } public BuPanel createEditorComponent( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |