From: <de...@us...> - 2008-08-07 21:44:31
|
Revision: 3736 http://fudaa.svn.sourceforge.net/fudaa/?rev=3736&view=rev Author: deniger Date: 2008-08-07 21:44:40 +0000 (Thu, 07 Aug 2008) Log Message: ----------- maj vue 2d Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java 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-07 21:44:21 UTC (rev 3735) +++ branches/Prepro-0.92-SNAPSHOT/ebli/test/org/fudaa/ebli/all/TestGraphe2.java 2008-08-07 21:44:40 UTC (rev 3736) @@ -7,19 +7,11 @@ */ package org.fudaa.ebli.all; -import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; -import java.awt.Font; -import java.awt.Graphics2D; import java.awt.Point; -import java.awt.Rectangle; -import java.awt.geom.AffineTransform; -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; import javax.swing.JMenuBar; @@ -28,56 +20,42 @@ import javax.swing.JTree; import javax.swing.WindowConstants; import javax.swing.table.DefaultTableModel; -import javax.swing.text.Utilities; -import javax.swing.tree.TreePath; -import org.fudaa.ctulu.CtuluResource; +import org.fudaa.ctulu.CtuluUIDefault; import org.fudaa.ctulu.gui.CtuluLibSwing; -import org.fudaa.ctulu.image.CtuluLibImage; import org.fudaa.ctulu.iterator.LogarithmicNumberIterator; -import org.fudaa.ebli.courbe.EGAxe; +import org.fudaa.ebli.calque.BVueCalque; +import org.fudaa.ebli.calque.ZCalqueLigneBrisee; +import org.fudaa.ebli.calque.ZEbliCalquesPanel; +import org.fudaa.ebli.calque.edition.ZCalqueLigneBriseeEditable; import org.fudaa.ebli.courbe.EGAxeHorizontal; import org.fudaa.ebli.courbe.EGAxeVertical; import org.fudaa.ebli.courbe.EGCourbeChild; import org.fudaa.ebli.courbe.EGCourbeModelDefault; import org.fudaa.ebli.courbe.EGFillePanel; import org.fudaa.ebli.courbe.EGGraphe; -import org.fudaa.ebli.courbe.EGGrapheModelListener; import org.fudaa.ebli.courbe.EGGrapheTreeModel; import org.fudaa.ebli.courbe.EGGroup; -import org.fudaa.ebli.courbe.EGObject; -import org.fudaa.ebli.tableau.EbliGrapheValeur; import org.fudaa.ebli.trace.TraceLigne; import org.fudaa.ebli.trace.TraceLigneModel; -import org.fudaa.ebli.visuallibrary.EbliCheckBoxNodeEditor; -import org.fudaa.ebli.visuallibrary.EbliCheckBoxTreeRenderer; import org.fudaa.ebli.visuallibrary.EbliNodeDefault; import org.fudaa.ebli.visuallibrary.EbliScene; import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorDblFleche; import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorFleche; -import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorGraphe; -import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorLegende; import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorRectangle; -import org.fudaa.ebli.visuallibrary.EbliWidgetCreatorVue2d; import org.fudaa.ebli.visuallibrary.EbliWidgetDBLFleche; -import org.fudaa.ebli.visuallibrary.EbliWidgetGraphe; -import org.fudaa.ebli.visuallibrary.EbliWidgetJXTree; -import org.fudaa.ebli.visuallibrary.EbliWidgetJXTreeModel; -import org.fudaa.ebli.visuallibrary.WidgetLegendeManager; -import org.fudaa.ebli.visuallibrary.WidgetLegendeManagerOLD; -import org.jdesktop.swingx.JXTree; +import org.fudaa.ebli.visuallibrary.calque.EbliWidgetCreatorVueCalque; +import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorGraphe; +import org.fudaa.ebli.visuallibrary.graphe.EbliWidgetCreatorLegende; +import org.fudaa.ebli.visuallibrary.tree.EbliCheckBoxNodeEditor; +import org.fudaa.ebli.visuallibrary.tree.EbliCheckBoxTreeRenderer; +import org.fudaa.ebli.visuallibrary.tree.EbliWidgetJXTree; +import org.fudaa.ebli.visuallibrary.tree.EbliWidgetJXTreeModel; import org.netbeans.api.visual.action.ActionFactory; import org.netbeans.api.visual.border.BorderFactory; -import org.netbeans.api.visual.graph.GraphScene; import org.netbeans.api.visual.laf.LookFeel; -import org.netbeans.api.visual.layout.LayoutFactory; import org.netbeans.api.visual.model.ObjectState; import org.netbeans.api.visual.widget.ComponentWidget; -import org.netbeans.api.visual.widget.ImageWidget; -import org.netbeans.api.visual.widget.LabelWidget; -import org.netbeans.api.visual.widget.LayerWidget; -import org.netbeans.api.visual.widget.Widget; -import org.netbeans.api.visual.widget.general.IconNodeWidget; import com.memoire.bu.BuBorderLayout; import com.memoire.bu.BuPanel; @@ -89,281 +67,250 @@ */ public final class TestGraphe2 { - private TestGraphe2() { - super(); - } + private TestGraphe2() { + super(); + } - /** - * @param _args - * non utilise - */ - public static void main(final String[] _args) { - final EGGrapheTreeModel grapheModel = new EGGrapheTreeModel(); - final EGGraphe g = new EGGraphe(grapheModel); - final EGAxeHorizontal x = new EGAxeHorizontal(false); - x.setTitre("temps"); - x.setUnite("sec"); - x.setBounds(0.0001, 1000000); - x.setAxisIterator(new LogarithmicNumberIterator()); - x.setGraduations(true); - g.setXAxe(x); - EGGroup gr = new EGGroup(); - gr.setTitle("gr 1"); - EGCourbeModelDefault m = new EGCourbeModelDefault(new double[] { - 0.0001, 3, 4, 1000000 }, new double[] { 10000, 4, 5, 3 }); - EGCourbeChild c = new EGCourbeChild(gr); - m.setTitle("toto bleue"); - c.setModel(m); - c.setAspectContour(Color.cyan); + private static EGGraphe createGraphe() { + final EGGrapheTreeModel grapheModel = new EGGrapheTreeModel(); + final EGGraphe g = new EGGraphe(grapheModel); + final EGAxeHorizontal x = new EGAxeHorizontal(false); + x.setTitre("temps"); + x.setUnite("sec"); + x.setBounds(0.0001, 1000000); + x.setAxisIterator(new LogarithmicNumberIterator()); + x.setGraduations(true); + g.setXAxe(x); + EGGroup gr = new EGGroup(); + gr.setTitle("gr 1"); + EGCourbeModelDefault m = new EGCourbeModelDefault(new double[] { 0.0001, 3, 4, 1000000 }, new double[] { 10000, 4, + 5, 3 }); + EGCourbeChild c = new EGCourbeChild(gr); + m.setTitle("toto bleue"); + c.setModel(m); + c.setAspectContour(Color.cyan); - gr.addEGComponent(c); + gr.addEGComponent(c); - m = new EGCourbeModelDefault(new double[] { 0.0002, 5, 7, 900000 }, - new double[] { 0.001, 1, 3, 4 }); - c = new EGCourbeChild(gr); - c.setAspectContour(Color.RED); - m.setTitle("toto rouge"); - c.setModel(m); + m = new EGCourbeModelDefault(new double[] { 0.0002, 5, 7, 900000 }, new double[] { 0.001, 1, 3, 4 }); + c = new EGCourbeChild(gr); + c.setAspectContour(Color.RED); + m.setTitle("toto rouge"); + c.setModel(m); - gr.addEGComponent(c); + gr.addEGComponent(c); - EGAxeVertical y = new EGAxeVertical(); - y.setGraduations(true); - y.setGrille(new TraceLigneModel(TraceLigne.LISSE, 1, Color.LIGHT_GRAY)); - y.setDroite(true); - y.setAxisIterator(new LogarithmicNumberIterator()); - y.setBounds(0.0001, 10000); - y.setLineColor(Color.blue); - y.setTitre("essai 2"); - gr.setAxeY(y); - grapheModel.add(gr); - gr = new EGGroup(); - gr.setTitle("gr 2"); - m = new EGCourbeModelDefault(new double[] { 1, 8, 9, 10 }, - new double[] { 10, 4, 2, 24 }); - c = new EGCourbeChild(gr); - c.setAspectContour(Color.yellow); - m.setTitle("toto jaune"); - c.setModel(m); - gr.addEGComponent(c); - y = new EGAxeVertical(); - y.setGraduations(true); - y.setBounds(0, 55); - y.setTitre("essai 1"); - gr.setAxeY(y); - gr.addEGComponent(c); - m = new EGCourbeModelDefault(new double[] { 1, 3, 4, 5 }, new double[] { - 14, 54, 25, 43 }); - c = new EGCourbeChild(gr); - m.setTitle("toto vert"); - c.setAspectContour(Color.green); - c.setModel(m); - gr.addEGComponent(c); - grapheModel.add(gr); - final JFrame f = new JFrame(); - f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); - f.setSize(new Dimension(1024, 768)); - final BuPanel p = new BuPanel(); - p.setLayout(new BuBorderLayout()); + EGAxeVertical y = new EGAxeVertical(); + y.setGraduations(true); + y.setGrille(new TraceLigneModel(TraceLigne.LISSE, 1, Color.LIGHT_GRAY)); + y.setDroite(true); + y.setAxisIterator(new LogarithmicNumberIterator()); + y.setBounds(0.0001, 10000); + y.setLineColor(Color.blue); + y.setTitre("essai 2"); + gr.setAxeY(y); + grapheModel.add(gr); + gr = new EGGroup(); + gr.setTitle("gr 2"); + m = new EGCourbeModelDefault(new double[] { 1, 8, 9, 10 }, new double[] { 10, 4, 2, 24 }); + c = new EGCourbeChild(gr); + c.setAspectContour(Color.yellow); + m.setTitle("toto jaune"); + c.setModel(m); + gr.addEGComponent(c); + y = new EGAxeVertical(); + y.setGraduations(true); + y.setBounds(0, 55); + y.setTitre("essai 1"); + gr.setAxeY(y); + gr.addEGComponent(c); + m = new EGCourbeModelDefault(new double[] { 1, 3, 4, 5 }, new double[] { 14, 54, 25, 43 }); + c = new EGCourbeChild(gr); + m.setTitle("toto vert"); + c.setAspectContour(Color.green); + c.setModel(m); + gr.addEGComponent(c); + grapheModel.add(gr); + return g; + } - g.setPreferredSize(new Dimension(200, 300)); - g.setSize(g.getPreferredSize()); - final JTree t = new JTree(grapheModel); - t.setSelectionModel(grapheModel.getSelectionModel()); - t.setRootVisible(false); + /** + * @param _args + * non utilise + */ + public static void main(final String[] _args) { + EGGraphe g = createGraphe(); + final EGFillePanel pn = new EGFillePanel(g); - Box boxEast = Box.createVerticalBox(); - boxEast.add(new BuScrollPane(t)); - p.add(new JScrollPane(boxEast), BuBorderLayout.EAST); - - f.setContentPane(p); - final EGFillePanel pn = new EGFillePanel(g); + // creation de la scene EBLI + EbliScene scene = new EbliScene(); - // creation de la scene EBLI - EbliScene scene = new EbliScene(); + // -- construction du jtree - - - - - - - - //-- construction du jtree - - //etape 1 construction du model - EbliWidgetJXTreeModel model=new EbliWidgetJXTreeModel(1/*,scene*/); - - //etape 2 SUPER IMPORTANT: ajout du model comme listener de la scene - scene.addEbliNodeListener(model); - - - //etape 3 creation du jtree - EbliWidgetJXTree tree=new EbliWidgetJXTree(model); - - EbliCheckBoxTreeRenderer renderer = new EbliCheckBoxTreeRenderer(); - tree.setCellRenderer(renderer); - tree.setCellEditor(new EbliCheckBoxNodeEditor(tree)); - tree.setEditable(true); - p.add(tree,BuBorderLayout.WEST); - - - - - - - - // ajout graphe - // GrapheWidget graphe=new GrapheWidget(scene,null,g); - // graphe.setPreferredSize(new Dimension(300, 300)); - // scene.addWidget(graphe); - - - //-- creation d un noeud Graphe --// - EbliNodeDefault node = new EbliNodeDefault(); - node.setCreator(new EbliWidgetCreatorGraphe(g)); - node.setTitle("Graphe"); - node.setD(new Dimension(300, 300)); - node.setP(new Point(4, 4)); - scene.addNode(node); + // etape 1 construction du model + EbliWidgetJXTreeModel model = new EbliWidgetJXTreeModel(1/* ,scene */); - //-- creation d un noeud legende --// - EbliNodeDefault nodeLegende = new EbliNodeDefault(); - nodeLegende.setTitle("Legende"); - nodeLegende.setCreator(new EbliWidgetCreatorLegende(g)); - nodeLegende.setD(new Dimension(100, 100)); - scene.addNode(nodeLegende); + // etape 2 SUPER IMPORTANT: ajout du model comme listener de la scene + scene.addEbliNodeListener(model); - - - //-- creation de la vue calque - TestZCalquePoint test = new TestZCalquePoint(); - test.getVueCalque().setPreferredSize(new Dimension(200, 200)); - node = new EbliNodeDefault(); - node.setTitle("Vue Calque"); - node.setCreator(new EbliWidgetCreatorVue2d(test.getVisuPanel())); - node.setD(new Dimension(200, 200)); - // scene.addNode(node); - //scene.addChild(new ComponentWidget(scene, test.getVisuPanel().getVueCalque())); + // etape 3 creation du jtree + EbliWidgetJXTree tree = new EbliWidgetJXTree(model); - - - //-- ajout du rectangle --// - EbliNodeDefault nodeRect = new EbliNodeDefault(); - nodeRect.setTitle("Rectangle"); - nodeRect.setCreator(new EbliWidgetCreatorRectangle("Test recangle")); -// nodeRect.setD(new Dimension(100, 100)); - nodeRect.setP(new Point(350,125)); - scene.addNode(nodeRect); + EbliCheckBoxTreeRenderer renderer = new EbliCheckBoxTreeRenderer(); + tree.setCellRenderer(renderer); + tree.setCellEditor(new EbliCheckBoxNodeEditor(tree)); + tree.setEditable(true); - - //-- ajout du fleche double sens diagonale--// - node = new EbliNodeDefault(); - node.setTitle("Fleche Double"); - node.setCreator(new EbliWidgetCreatorDblFleche(EbliWidgetDBLFleche.ORIENTATION_DIAG1)); - node.setD(new Dimension(100, 100)); - node.setP(new Point(450,125)); - scene.addNode(node); - - - //-- ajout du fleche double sens nord--// - node = new EbliNodeDefault(); - node.setTitle("Fleche Double"); - node.setCreator(new EbliWidgetCreatorDblFleche(EbliWidgetDBLFleche.ORIENTATION_WEST)); - node.setD(new Dimension(100, 100)); - node.setP(new Point(450,125)); - scene.addNode(node); - - - //-- ajout du fleche sens unique--// - node = new EbliNodeDefault(); - node.setTitle("Fleche"); - node.setCreator(new EbliWidgetCreatorFleche(0)); - node.setD(new Dimension(100, 100)); - node.setP(new Point(250,525)); - scene.addNode(node); - - - - + // ajout graphe + // GrapheWidget graphe=new GrapheWidget(scene,null,g); + // graphe.setPreferredSize(new Dimension(300, 300)); + // scene.addWidget(graphe); - - // WidgetLegendeManagerOLD.createWidgetLegendeGraphe(this, visu, courbe, - // graphe.getClientArea()); + // -- creation d un noeud Graphe --// + EbliNodeDefault node = new EbliNodeDefault(); + node.setCreator(new EbliWidgetCreatorGraphe(g)); + node.setTitle("Graphe"); + node.setD(new Dimension(300, 300)); + node.setP(new Point(4, 4)); + scene.addNode(node); - /* - // ajout iconenode - IconNodeWidget iconNode = new IconNodeWidget(scene); - iconNode.setImage(CtuluResource.CTULU.getImage("crystal_non")); - iconNode.setLabel("MyIconNode"); - // this.addChild (iconNode); - iconNode.getActions().addAction( - ActionFactory.createCenteredZoomAction(1.1)); - iconNode.getActions().addAction(ActionFactory.createPanAction()); - // assign HoverAction - the actual hovered widget is held by the scene - iconNode.getActions().addAction(scene.createWidgetHoverAction()); - // MoveAction has to be after the hover action - // otherwise MoveAction will always consume the event and HoverAction - // will never be invoked - iconNode.getActions().addAction(ActionFactory.createMoveAction()); - iconNode.setPreferredLocation(new Point(400, 150)); -*/ - - JTable table = new JTable(); - table.setModel(new DefaultTableModel(new Object[][] { { "11", "12" }, - { "21", "22" } }, new Object[] { "First", "Second" })); - ComponentWidget widgetJtable = new ComponentWidget(scene, - new JScrollPane(table)) { - public void notifyStateChanged(ObjectState previousState, - ObjectState newState) { - LookFeel lookFeel = getScene().getLookFeel(); + // -- creation d un noeud legende --// + EbliNodeDefault nodeLegende = new EbliNodeDefault(); + nodeLegende.setTitle("Legende"); + nodeLegende.setCreator(new EbliWidgetCreatorLegende(g)); + nodeLegende.setD(new Dimension(100, 100)); + scene.addNode(nodeLegende); - setBorder(BorderFactory.createResizeBorder(10)); + // -- creation de la vue calque + final TestModelLigneBrisee m = TestModelLigneBrisee.buildDefault(); + ZCalqueLigneBrisee br = new ZCalqueLigneBrisee(m); + br.setLineModel(0, new TraceLigneModel(TraceLigne.LISSE, 5, Color.RED)); + BVueCalque vueC = new BVueCalque(br); + vueC.setSize(new Dimension(200, 200)); + node = new EbliNodeDefault(); + node.setTitle("Vue Calque"); +// JFrame fr = new JFrame(); - } - }; - widgetJtable.setBorder(BorderFactory.createResizeBorder(10)); - widgetJtable.setPreferredLocation(new Point(500, 300)); - widgetJtable.getActions().addAction(ActionFactory.createResizeAction()); - //scene.addChild(widgetJtable); - - - // fin - p.add(new JScrollPane(scene.createView()), BuBorderLayout.CENTER); + ZEbliCalquesPanel ebliCalquesPanel = new ZEbliCalquesPanel(br, new CtuluUIDefault()); +// fr.setContentPane(ebliCalquesPanel); +// ebliCalquesPanel.setPreferredSize(new Dimension(400, 400)); +// fr.setPreferredSize(new Dimension(400, 400)); +// fr.setVisible(true); + node.setCreator(new EbliWidgetCreatorVueCalque(ebliCalquesPanel)); + scene.addNode(node); + // scene.addChild(new ComponentWidget(scene, + // test.getVisuPanel().getVueCalque())); - // ajout de la vue sattelite en bas \xE4 gauche - boxEast.add(scene.createSatelliteView()); + // -- ajout du rectangle --// + EbliNodeDefault nodeRect = new EbliNodeDefault(); + nodeRect.setTitle("Rectangle"); + nodeRect.setCreator(new EbliWidgetCreatorRectangle("Test recangle")); + // nodeRect.setD(new Dimension(100, 100)); + nodeRect.setP(new Point(350, 125)); + scene.addNode(nodeRect); - final JMenu menu = new JMenu(); - menu.setName("essai"); - menu.setText("essai"); - pn.fillSpecificMenu(menu); - final JMenuBar b = new JMenuBar(); - b.add(menu); - f.setJMenuBar(b); - f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + // -- ajout du fleche double sens diagonale--// + node = new EbliNodeDefault(); + node.setTitle("Fleche Double"); + node.setCreator(new EbliWidgetCreatorDblFleche(EbliWidgetDBLFleche.ORIENTATION_DIAG1)); + node.setD(new Dimension(100, 100)); + node.setP(new Point(450, 125)); + scene.addNode(node); - // f.pack(); - f.show(); - scene.setFont(CtuluLibSwing.getMiniFont()); - g.computeMarges(scene.getGraphics()); - g.fullRepaint(); - - - - - -//-- ajout par la suite --/ -/* - node = new EbliNodeDefault(); - node.setTitle("BOUDOUM"); - node.setCreator(new EbliWidgetCreatorRectangle("BOUDOUM")); - - node.setD(new Dimension(100, 100)); - node.setP(new Point(450,20)); - scene.addNode(node); - */ - - p.doLayout(); - } + // -- ajout du fleche double sens nord--// + node = new EbliNodeDefault(); + node.setTitle("Fleche Double"); + node.setCreator(new EbliWidgetCreatorDblFleche(EbliWidgetDBLFleche.ORIENTATION_WEST)); + node.setD(new Dimension(100, 100)); + node.setP(new Point(450, 125)); + scene.addNode(node); + + // -- ajout du fleche sens unique--// + node = new EbliNodeDefault(); + node.setTitle("Fleche"); + node.setCreator(new EbliWidgetCreatorFleche(0)); + node.setD(new Dimension(100, 100)); + node.setP(new Point(250, 525)); + scene.addNode(node); + + // WidgetLegendeManagerOLD.createWidgetLegendeGraphe(this, visu, courbe, + // graphe.getClientArea()); + + /* + * // ajout iconenode IconNodeWidget iconNode = new IconNodeWidget(scene); + * iconNode.setImage(CtuluResource.CTULU.getImage("crystal_non")); + * iconNode.setLabel("MyIconNode"); // this.addChild (iconNode); + * iconNode.getActions().addAction( + * ActionFactory.createCenteredZoomAction(1.1)); + * iconNode.getActions().addAction(ActionFactory.createPanAction()); // + * assign HoverAction - the actual hovered widget is held by the scene + * iconNode.getActions().addAction(scene.createWidgetHoverAction()); // + * MoveAction has to be after the hover action // otherwise MoveAction will + * always consume the event and HoverAction // will never be invoked + * iconNode.getActions().addAction(ActionFactory.createMoveAction()); + * iconNode.setPreferredLocation(new Point(400, 150)); + */ + + JTable table = new JTable(); + table.setModel(new DefaultTableModel(new Object[][] { { "11", "12" }, { "21", "22" } }, new Object[] { "First", + "Second" })); + ComponentWidget widgetJtable = new ComponentWidget(scene, new JScrollPane(table)) { + public void notifyStateChanged(ObjectState previousState, ObjectState newState) { + + setBorder(BorderFactory.createResizeBorder(10)); + + } + }; + widgetJtable.setBorder(BorderFactory.createResizeBorder(10)); + widgetJtable.setPreferredLocation(new Point(500, 300)); + widgetJtable.getActions().addAction(ActionFactory.createResizeAction()); + // scene.addChild(widgetJtable); + + final JFrame f = new JFrame(); + f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); + f.setSize(new Dimension(1024, 768)); + final BuPanel p = new BuPanel(); + p.setLayout(new BuBorderLayout()); + p.add(tree, BuBorderLayout.WEST); + g.setPreferredSize(new Dimension(200, 300)); + g.setSize(g.getPreferredSize()); + final JTree t = new JTree((EGGrapheTreeModel) g.getModel()); + t.setSelectionModel(((EGGrapheTreeModel) g.getModel()).getSelectionModel()); + t.setRootVisible(false); + + Box boxEast = Box.createVerticalBox(); + boxEast.add(new BuScrollPane(t)); + p.add(new JScrollPane(boxEast), BuBorderLayout.EAST); + + f.setContentPane(p); + // 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"); + pn.fillSpecificMenu(menu); + final JMenuBar b = new JMenuBar(); + b.add(menu); + f.setJMenuBar(b); + f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + + // f.pack(); + f.setVisible(true); + scene.setFont(CtuluLibSwing.getMiniFont()); + + // -- ajout par la suite --/ + /* + * node = new EbliNodeDefault(); node.setTitle("BOUDOUM"); + * node.setCreator(new EbliWidgetCreatorRectangle("BOUDOUM")); + * + * node.setD(new Dimension(100, 100)); node.setP(new Point(450,20)); + * scene.addNode(node); + */ + + p.doLayout(); + } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |