|
From: <had...@us...> - 2008-08-05 06:21:24
|
Revision: 3708
http://fudaa.svn.sourceforge.net/fudaa/?rev=3708&view=rev
Author: hadouxad
Date: 2008-08-05 06:21:31 +0000 (Tue, 05 Aug 2008)
Log Message:
-----------
AFFECT?\195?\137 - # 40: L?\195?\169gende pour les courbe 1d
http://mantis.genesis-groupe.com//view.php?id=40
Modified Paths:
--------------
branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/WidgetLegendeManager.java
branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java
Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/WidgetLegendeManager.java
===================================================================
--- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/WidgetLegendeManager.java 2008-08-04 22:00:16 UTC (rev 3707)
+++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/WidgetLegendeManager.java 2008-08-05 06:21:31 UTC (rev 3708)
@@ -106,6 +106,7 @@
//-- dessin du titre et des lignes --//
g.setFont(new Font("Serif",Font.PLAIN,rec.height/2));
+ g.setColor(courbe.getAspectContour());
g.drawString(courbe.getTitle(),rec.x + Hgap/2 , (int)(rec.y + rec.height/2));
//FIXME Comment je peux obtenir les icones et les lignes et les dimensionner?
}
Modified: branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java
===================================================================
--- branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java 2008-08-04 22:00:16 UTC (rev 3707)
+++ branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java 2008-08-05 06:21:31 UTC (rev 3708)
@@ -16,6 +16,7 @@
import java.awt.image.BufferedImage;
import java.util.Collections;
+import javax.swing.Box;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JMenu;
@@ -145,7 +146,10 @@
final JTree t = new JTree(grapheModel);
t.setSelectionModel(grapheModel.getSelectionModel());
t.setRootVisible(false);
- p.add(new BuScrollPane(t), BuBorderLayout.EAST);
+
+ Box boxEast=Box.createVerticalBox();
+ boxEast.add(new BuScrollPane(t));
+ p.add(boxEast, BuBorderLayout.EAST);
p.doLayout();
f.setContentPane(p);
final EGFillePanel pn = new EGFillePanel(g);
@@ -384,6 +388,11 @@
scene.addNode(g);
// fin
p.add(new JScrollPane(scene.createView()), BuBorderLayout.CENTER);
+
+ //ajout de la vue sattelite en bas \xE4 gauche
+ boxEast.add(scene.createSatelliteView());
+
+
final JMenu menu = new JMenu();
menu.setName("essai");
menu.setText("essai");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|