You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(9) |
Sep
(14) |
Oct
(19) |
Nov
(38) |
Dec
(77) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(31) |
Feb
(59) |
Mar
(56) |
Apr
(35) |
May
(79) |
Jun
(90) |
Jul
(50) |
Aug
(141) |
Sep
(56) |
Oct
(132) |
Nov
(78) |
Dec
(158) |
2005 |
Jan
(90) |
Feb
(71) |
Mar
(77) |
Apr
(159) |
May
(183) |
Jun
(127) |
Jul
(253) |
Aug
(104) |
Sep
(110) |
Oct
(207) |
Nov
(149) |
Dec
(102) |
2006 |
Jan
(92) |
Feb
(165) |
Mar
(214) |
Apr
(227) |
May
(130) |
Jun
(139) |
Jul
(74) |
Aug
(110) |
Sep
(136) |
Oct
(114) |
Nov
(112) |
Dec
(131) |
2007 |
Jan
(135) |
Feb
(212) |
Mar
(302) |
Apr
(239) |
May
(210) |
Jun
(163) |
Jul
(181) |
Aug
(288) |
Sep
(134) |
Oct
(228) |
Nov
(177) |
Dec
(106) |
2008 |
Jan
(113) |
Feb
(199) |
Mar
(131) |
Apr
(215) |
May
(105) |
Jun
(119) |
Jul
(140) |
Aug
(126) |
Sep
(139) |
Oct
(157) |
Nov
(105) |
Dec
(103) |
2009 |
Jan
(185) |
Feb
(181) |
Mar
(201) |
Apr
(221) |
May
(175) |
Jun
(172) |
Jul
(153) |
Aug
(108) |
Sep
(87) |
Oct
(24) |
Nov
(21) |
Dec
(27) |
2010 |
Jan
(10) |
Feb
(52) |
Mar
(75) |
Apr
(128) |
May
(150) |
Jun
(110) |
Jul
(71) |
Aug
(75) |
Sep
(65) |
Oct
(88) |
Nov
(95) |
Dec
(55) |
2011 |
Jan
(35) |
Feb
(54) |
Mar
(67) |
Apr
(75) |
May
(49) |
Jun
(57) |
Jul
(36) |
Aug
(30) |
Sep
(42) |
Oct
(10) |
Nov
(28) |
Dec
(39) |
2012 |
Jan
(70) |
Feb
(20) |
Mar
(32) |
Apr
(65) |
May
(29) |
Jun
(11) |
Jul
(13) |
Aug
(23) |
Sep
(22) |
Oct
(9) |
Nov
(13) |
Dec
(10) |
2013 |
Jan
(9) |
Feb
(9) |
Mar
(9) |
Apr
(7) |
May
(7) |
Jun
(2) |
Jul
(10) |
Aug
(2) |
Sep
(6) |
Oct
(5) |
Nov
(8) |
Dec
(3) |
2014 |
Jan
(17) |
Feb
(8) |
Mar
|
Apr
(3) |
May
|
Jun
(6) |
Jul
(6) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(3) |
Dec
(2) |
2015 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Jeffrey G. <gue...@gm...> - 2014-06-09 15:52:05
|
Hi Tom, We’ve picked JavaFX because we write applications in Java and want to use the new JavaFX UI framework ( the one that replaces Swing) from Oracle. It’s powerful and fun to use. Were you thinking about JavaFX 1, the sort of javascript-like language used to build UIs? JavaFX, in it’s current implementation starts with 2.x and as of Java 8 is part of the JDK. As someone whose name is on lots of the jung source, what do you think about our desire to breath new life into jung? Cheers, Jeff On Jun 8, 2014, at 10:46 AM, Tom Nelson <tho...@gm...> wrote: > Why choose JavaFX instead of javascript? > > Tom Nelson > > > On Fri, Jun 6, 2014 at 1:03 PM, Jeffrey Guenther <gue...@gm...> wrote: > Hi JUNG Devs, > > I'm looking to get a hold of the JUNG developers. I've been in contact with a couple other developers who are interested in updating JUNG for JavaFX. We'd like to use JUNG in our JavaFX applications and would like to improve the framework as we bump into issues. Our long-term goal is to update JUNG to work within the JavaFX and Java 8+ conventions (observable properties, lambdas, etc) > > What is the development status of JUNG? Who is currently responsible for the project? Would you be open to allowing us to continue developing JUNG under the JUNG name? We would maintain the 2.x series and start with a new version 3.x or 4.x for the update, depending if the guava collections version was ever officially released. > > We think JUNG is a great library and want keep it alive as JavaFX takes the place of Swing. > > Cheers, > Jeff > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > |
From: Tom N. <tho...@gm...> - 2014-06-08 17:46:07
|
Why choose JavaFX instead of javascript? Tom Nelson On Fri, Jun 6, 2014 at 1:03 PM, Jeffrey Guenther <gue...@gm... > wrote: > Hi JUNG Devs, > > I'm looking to get a hold of the JUNG developers. I've been in contact > with a couple other developers who are interested in updating JUNG for > JavaFX. We'd like to use JUNG in our JavaFX applications and would like to > improve the framework as we bump into issues. Our long-term goal is to > update JUNG to work within the JavaFX and Java 8+ conventions (observable > properties, lambdas, etc) > > What is the development status of JUNG? Who is currently responsible for > the project? Would you be open to allowing us to continue developing JUNG > under the JUNG name? We would maintain the 2.x series and start with a new > version 3.x or 4.x for the update, depending if the guava collections > version was ever officially released. > > We think JUNG is a great library and want keep it alive as JavaFX takes > the place of Swing. > > Cheers, > Jeff > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > |
From: James A. <ja...@ti...> - 2014-06-08 16:50:09
|
I'm only and end-user, but like what you are offering. Good luck! Jim On Jun 6, 2014, at 1:03 PM, Jeffrey Guenther <gue...@gm...> wrote: > Hi JUNG Devs, > > I'm looking to get a hold of the JUNG developers. I've been in contact with a couple other developers who are interested in updating JUNG for JavaFX. We'd like to use JUNG in our JavaFX applications and would like to improve the framework as we bump into issues. Our long-term goal is to update JUNG to work within the JavaFX and Java 8+ conventions (observable properties, lambdas, etc) > > What is the development status of JUNG? Who is currently responsible for the project? Would you be open to allowing us to continue developing JUNG under the JUNG name? We would maintain the 2.x series and start with a new version 3.x or 4.x for the update, depending if the guava collections version was ever officially released. > > We think JUNG is a great library and want keep it alive as JavaFX takes the place of Swing. > > Cheers, > Jeff > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech_______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support |
From: Jeffrey G. <gue...@gm...> - 2014-06-06 17:03:07
|
Hi JUNG Devs, I'm looking to get a hold of the JUNG developers. I've been in contact with a couple other developers who are interested in updating JUNG for JavaFX. We'd like to use JUNG in our JavaFX applications and would like to improve the framework as we bump into issues. Our long-term goal is to update JUNG to work within the JavaFX and Java 8+ conventions (observable properties, lambdas, etc) What is the development status of JUNG? Who is currently responsible for the project? Would you be open to allowing us to continue developing JUNG under the JUNG name? We would maintain the 2.x series and start with a new version 3.x or 4.x for the update, depending if the guava collections version was ever officially released. We think JUNG is a great library and want keep it alive as JavaFX takes the place of Swing. Cheers, Jeff |
From: Joshua O'M. <jos...@gm...> - 2014-04-28 22:18:35
|
At this point, StackOverflow is probably a better place to ask these kinds of questions. That said, looking at the code: https://code.google.com/p/jung/source/browse/branches/guava/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/subLayout/TreeCollapser.java?r=19 I don't immediately see anything that would cause the behavior that you describe. Which makes me wonder whether it's possible that you're somehow making two calls to TreeCollapser.collapse(). If you can provide a self-contained example (preferably one that doesn't include UI elements) that demonstrates this error, it would probably make it easier to track down. On Sun, Apr 27, 2014 at 6:28 PM, James Allen <ja...@ti...> wrote: > Does anyone have any ideas what might be causing this? It's an old bug > that I "fixed" by disabling double-click, but now the feature is needed. > > Thanks, > Jim > > On Apr 21, 2014, at 11:01 PM, James Allen <ja...@ti...> wrote: > > Hello, > > I have a strange thing occurring in my Jung2 graph; when I try to > collapse the picked node (via a double-click) the TreeCollapser is > collapsing the Parent of the picked node. > > I'm using the following method, and I have confirmed, via logger, that the > picked node being sent to the TreeCollapser is the correct node. For some > reason the parent of the picked node is collapsed. > > Thanks. I appreciate any help. > > Jim > > public void collapsePickedNode() > { > Collection<String> picked = new HashSet<String>(vv > .getPickedVertexState().getPicked()); > String root = null; > if(picked.size() == 1) > if ((root = picked.iterator().next()) instanceof String) { > root = picked.iterator().next(); > logger.info("root: " + root); > try { > if (((DelegateForest<String, Integer>)graph).isLeaf(root)) return; > } catch (NullPointerException npe) { > //logger.error("Ignorable exception when trying to collapse"); > return; > } > try { > treeCollapser.collapse(vv.getGraphLayout(), (Forest<String, Integer>) > graph, root); > } catch (InstantiationException e) { > e.printStackTrace(); > } catch (IllegalAccessException e) { > e.printStackTrace(); > } > } > } > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > > http://p.sf.net/sfu/ExoPlatform_______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > -- jos...@gm.........sites.google.com/site/joshuaomadadhain/ Joshua O'Madadhain: Information Scientist, Musician, Philosopher-At-Tall It's that moment of dawning comprehension that I live for. -- Bill Watterson My opinions are too rational and insightful to be those of any organization. |
From: James A. <ja...@ti...> - 2014-04-28 01:29:18
|
Does anyone have any ideas what might be causing this? It's an old bug that I "fixed" by disabling double-click, but now the feature is needed. Thanks, Jim On Apr 21, 2014, at 11:01 PM, James Allen <ja...@ti...> wrote: > Hello, > > I have a strange thing occurring in my Jung2 graph; when I try to collapse the picked node (via a double-click) the TreeCollapser is collapsing the Parent of the picked node. > > I'm using the following method, and I have confirmed, via logger, that the picked node being sent to the TreeCollapser is the correct node. For some reason the parent of the picked node is collapsed. > > Thanks. I appreciate any help. > > Jim > > public void collapsePickedNode() > { > Collection<String> picked = new HashSet<String>(vv.getPickedVertexState().getPicked()); > String root = null; > if(picked.size() == 1) > if ((root = picked.iterator().next()) instanceof String) { > root = picked.iterator().next(); > logger.info("root: " + root); > try { > if (((DelegateForest<String, Integer>)graph).isLeaf(root)) return; > } catch (NullPointerException npe) { > //logger.error("Ignorable exception when trying to collapse"); > return; > } > try { > treeCollapser.collapse(vv.getGraphLayout(), (Forest<String, Integer>)graph, root); > } catch (InstantiationException e) { > e.printStackTrace(); > } catch (IllegalAccessException e) { > e.printStackTrace(); > } > } > } > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform_______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support |
From: James A. <ja...@ti...> - 2014-04-22 03:20:55
|
Hello, I have a strange thing occurring in my Jung2 graph; when I try to collapse the picked node (via a double-click) the TreeCollapser is collapsing the Parent of the picked node. I'm using the following method, and I have confirmed, via logger, that the picked node being sent to the TreeCollapser is the correct node. For some reason the parent of the picked node is collapsed. Thanks. I appreciate any help. Jim public void collapsePickedNode() { Collection<String> picked = new HashSet<String>(vv.getPickedVertexState().getPicked()); String root = null; if(picked.size() == 1) if ((root = picked.iterator().next()) instanceof String) { root = picked.iterator().next(); logger.info("root: " + root); try { if (((DelegateForest<String, Integer>)graph).isLeaf(root)) return; } catch (NullPointerException npe) { //logger.error("Ignorable exception when trying to collapse"); return; } try { treeCollapser.collapse(vv.getGraphLayout(), (Forest<String, Integer>)graph, root); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } } } |
From: Hussain Al-M. <hus...@gm...> - 2014-02-21 10:11:30
|
Do you want to visit a node only once in every walk? If so, then you need a stack of visited nodes. You can start at any node, then pick a node from the list of successor nodes. You can randomise the list by using Collections.shuffle method, if a node is visited, try another one until you reach a dead end. On Friday, 21 February 2014, Ahmed Abdeen Hamed <ahm...@gm...> wrote: > Hello friends, > > I am wondering if I can do a random walk that starts with a vertex and > randomly selects the next node until a given path lengths is satisfied. I > would truly appreciate some examples. > > Thanks very much, > > -Ahmed > -- (\__/) (='.'=) (")_(") |
From: Ahmed A. H. <ahm...@gm...> - 2014-02-21 05:44:37
|
Hello friends, I am wondering if I can do a random walk that starts with a vertex and randomly selects the next node until a given path lengths is satisfied. I would truly appreciate some examples. Thanks very much, -Ahmed |
From: Joshua O'M. <jos...@gm...> - 2014-02-19 15:56:06
|
Have you looked at GraphEditorDemo? That should get you most if not all the way there. Joshua On Feb 19, 2014 7:33 AM, "Prof. Wilson Lourenço" < pro...@gm...> wrote: > Good morning, > > I am a student in the Master of Engineering production and need to create > a tool for teaching algorithms routing. > > I need an example of how to create a dynamic graph. > > The student must click the mouse and add vertices and edges dynamically. > > I thank you for your help, > Wilson Lourenco > |
From: Frédéric V. <fre...@mi...> - 2014-02-17 13:52:36
|
it seems that SparseMultiGraph (instead of SparseGraph) solved my problem ! Le 17/02/14 12:49, Frédéric Vergnaud a écrit : > Hi all, > When trying to apply EdgeBetweenness clustering algorithm on a > directed graph, two things happened : > 1) when removing edge by coloring it in light gray, the predicate > colors strokes, but also removes arrows : how can I add it back ? > 2) when slidding the number of edges to remove, for example 10, the > algorithme remove 11 edges, making my app crashing, with a > IllegalArgumentException (Invalid number of edges passed in) > The second thing seems to be linked with the fact that it's a directed > graph, because when I transform my graph and make it undirected, all > works fine, like in the demo ... > > I really don't understand, and tried a lot of thing ... > > Thanks for your help ! > > Fred > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > > > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Frédéric V. <fre...@mi...> - 2014-02-17 11:49:06
|
Hi all, When trying to apply EdgeBetweenness clustering algorithm on a directed graph, two things happened : 1) when removing edge by coloring it in light gray, the predicate colors strokes, but also removes arrows : how can I add it back ? 2) when slidding the number of edges to remove, for example 10, the algorithme remove 11 edges, making my app crashing, with a IllegalArgumentException (Invalid number of edges passed in) The second thing seems to be linked with the fact that it's a directed graph, because when I transform my graph and make it undirected, all works fine, like in the demo ... I really don't understand, and tried a lot of thing ... Thanks for your help ! Fred -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Joshua O'M. <jos...@gm...> - 2014-02-15 00:01:27
|
JUNG does not have a built-in mechanism to remove cycles from a graph. You can implement whatever algorithm that you like using the JUNG libraries, of course. Good luck! Joshua O'Madadhain On Fri, Feb 14, 2014 at 1:39 PM, Haluk Dogan <hlk...@gm...> wrote: > Hi, > > I want to convert my directed graph to directed acyclic graph. I know > Feedback Vertex Set algorithm can do this. However, I couldn't see its > method in Jung. > > Is there any other way to do this by using Jung? > > Thanks. > > -- > HD > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > -- jos...@gm.........sites.google.com/site/joshuaomadadhain/ Joshua O'Madadhain: Information Scientist, Musician, Philosopher-At-Tall It's that moment of dawning comprehension that I live for. -- Bill Watterson My opinions are too rational and insightful to be those of any organization. |
From: Haluk D. <hlk...@gm...> - 2014-02-14 21:39:21
|
Hi, I want to convert my directed graph to directed acyclic graph. I know Feedback Vertex Set algorithm can do this. However, I couldn't see its method in Jung. Is there any other way to do this by using Jung? Thanks. -- HD |
From: Frédéric V. <fre...@mi...> - 2014-02-13 17:17:24
|
Hi all ! I have a graph with vertices and edges. Each edge has a weight (the frequency of the link) and is directed. I want to apply EdgeBetweenness algorithm on it, but I dont know how to take in account the edges weights ? I've read something on Transform, but Transform are only for vizualisation, right or not ? I think I have to apply an algorithm on each edge frequency first (Voltage ? PageRank ? something else), and then use it for clustering, but I don't know how ... Can you tell me ? Many thanks for your response and all your work ! Fred |
From: Frédéric V. <fre...@mi...> - 2014-01-28 14:19:56
|
Simply perfect ! Just what I expected ! Here's the last part of the code, after having imported the part from stackoverflow, for those who may be interested : DefaultModalGraphMouse graphMouse = new DefaultModalGraphMouse(); modePanel.add(graphMouse.getModeComboBox()); JComboBox comboBox = graphMouse.getModeComboBox(); final ToString toString = new ToString() { public String toString(final Object object) { final Mode mode = (Mode) object; if (mode == Mode.TRANSFORMING) return "custom transforming "; else return "custom picking"; } }; comboBox.setRenderer(new ToStringListCellRenderer(comboBox .getRenderer(), toString)); Many thanks for your help ! Fred Le 28/01/14 14:48, Tom Nelson a écrit : > You may need to do something like this: > > http://stackoverflow.com/questions/5661556/jcombobox-setting-label-and-value > > After you create the GraphMouse, you can call getModeComboBox, then > set the listCellRendererComponent to internationalize the labels for you. > > Tom > > > > > On Tue, Jan 28, 2014 at 7:24 AM, Frédéric Vergnaud > <fre...@mi... > <mailto:fre...@mi...>> wrote: > > I've tried to extends AbstractModalGraphMouse in a > myAbstractModalGraphMouse class > I'm forced to implement loadPlugins(), that is the only abstract > void) and I've looked over AbstractModalGraphMouse, and I found > that getModeMenu() is not abstract, so I can't rewrite it ... > So did you mean directly in YOUR code in > AbstractModalGraphMouse.java ? > Is there not a better way ? > > > Le 28/01/14 10:50, Tom Nelson a écrit : >> sorry, I meant the JRadioButtonMenuItem constructor >> >> >> On Tue, Jan 28, 2014 at 4:49 AM, Tom Nelson >> <tho...@gm... <mailto:tho...@gm...>> wrote: >> >> Override getModeMenu() in AbstractModalGraphMouse. >> Change only the JRadioButton constructor to assign the names >> you want. >> >> Tom Nelson >> >> >> On Tue, Jan 28, 2014 at 4:27 AM, Frédéric Vergnaud >> <fre...@mi... >> <mailto:fre...@mi...>> wrote: >> >> Unfortunately, I think the Enum you pointed me are not >> the texts showed in the combobox, but the actions to >> specify by ie : >> >> graphMouse.setMode(ModalGraphMouse.Mode.PICKING) >> >> So if I modify this Enum, I'd have to modify the mode >> calls ... not a good idea ! >> >> I've tried this : >> >> final DefaultModalGraphMouse<Vertex, Edge> graphMouse = >> new DefaultModalGraphMouse<Vertex, Edge>(); >> JMenu menuMouseComboBox = graphMouse.getModeMenu(); >> Component[] comps = menuMouseComboBox.getMenuComponents(); >> JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; >> System.out.println(menu1 + " :: " + menu1.getText()); >> JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; >> System.out.println(menu2 + " :: " + menu2.getText()); >> >> wich outputs : >> >> javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] >> :: TRANSFORMING >> javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING >> >> >> So I did : >> >> menu1.setText("Toto"); >> menu2.setText("Titi"); >> >> But it does'nt work ... >> >> Any idea ? >> >> >> >> Le 27/01/14 19:36, Joshua O'Madadhain a écrit : >>> Those words are, I believe, taken from the enum >>> definition, which defines those two modes: >>> https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java >>> >>> The code probably just uses the name of the enum member >>> for the combobox rather than trying to do anything more >>> sophisticated. >>> >>> So, two options: >>> (0) Find the place where the combobox decides what to >>> render, and add a translation of the enum into the text >>> you desire. >>> (1) Change the names of those enums in the code. >>> >>> Hope this helps. >>> >>> >>> On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud >>> <fre...@mi... >>> <mailto:fre...@mi...>> wrote: >>> >>> Hi all ! >>> Is it possible to modify the text within the >>> graphmouse combobox, ie >>> change "TRANSFORMING" & "PICKING" by french words, >>> and how to do that ? >>> Thank you for your support ! >>> Regards. >>> Fred >>> >>> -- >>> Frédéric Vergnaud >>> CNRS UMR 7185 >>> Centre de Sociologie de l'Innovation -- Ecole des >>> Mines de Paris >>> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >>> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >>> http://www.csi.mines-paristech.fr >>> >>> >>> ------------------------------------------------------------------------------ >>> CenturyLink Cloud: The Leader in Enterprise Cloud >>> Services. >>> Learn Why More Businesses Are Choosing CenturyLink >>> Cloud For >>> Critical Workloads, Development Environments & >>> Everything In Between. >>> Get a Quote or Start a Free Trial Today. >>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Jung-support mailing list >>> Jun...@li... >>> <mailto:Jun...@li...> >>> https://lists.sourceforge.net/lists/listinfo/jung-support >>> >>> >>> >>> >>> -- >>> jos...@gm... >>> <mailto:jos...@gm...>......sites.google.com/site/joshuaomadadhain/ >>> <http://sites.google.com/site/joshuaomadadhain/> >>> Joshua O'Madadhain: Information Scientist, Musician, >>> Philosopher-At-Tall >>> It's that moment of dawning comprehension that I live >>> for. -- Bill Watterson >>> My opinions are too rational and insightful to be those >>> of any organization. >> >> -- >> Frédéric Vergnaud >> CNRS UMR 7185 >> Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris >> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >> http://www.csi.mines-paristech.fr >> >> >> ------------------------------------------------------------------------------ >> WatchGuard Dimension instantly turns raw network data >> into actionable >> security intelligence. It gives you real-time visual >> feedback on key >> security issues and trends. Skip the complicated setup - >> simply import >> a virtual appliance and go from zero to informed in seconds. >> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk >> >> >> _______________________________________________ >> Jung-support mailing list >> Jun...@li... >> <mailto:Jun...@li...> >> https://lists.sourceforge.net/lists/listinfo/jung-support >> >> >> > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Tom N. <tho...@gm...> - 2014-01-28 13:48:27
|
You may need to do something like this: http://stackoverflow.com/questions/5661556/jcombobox-setting-label-and-value After you create the GraphMouse, you can call getModeComboBox, then set the listCellRendererComponent to internationalize the labels for you. Tom On Tue, Jan 28, 2014 at 7:24 AM, Frédéric Vergnaud < fre...@mi...> wrote: > I've tried to extends AbstractModalGraphMouse in a > myAbstractModalGraphMouse class > I'm forced to implement loadPlugins(), that is the only abstract void) and > I've looked over AbstractModalGraphMouse, and I found that getModeMenu() is > not abstract, so I can't rewrite it ... > So did you mean directly in YOUR code in AbstractModalGraphMouse.java ? > Is there not a better way ? > > > Le 28/01/14 10:50, Tom Nelson a écrit : > > sorry, I meant the JRadioButtonMenuItem constructor > > > On Tue, Jan 28, 2014 at 4:49 AM, Tom Nelson <tho...@gm...>wrote: > >> Override getModeMenu() in AbstractModalGraphMouse. >> Change only the JRadioButton constructor to assign the names you want. >> >> Tom Nelson >> >> >> On Tue, Jan 28, 2014 at 4:27 AM, Frédéric Vergnaud < >> fre...@mi...> wrote: >> >>> Unfortunately, I think the Enum you pointed me are not the texts >>> showed in the combobox, but the actions to specify by ie : >>> >>> graphMouse.setMode(ModalGraphMouse.Mode.PICKING) >>> >>> So if I modify this Enum, I'd have to modify the mode calls ... not a >>> good idea ! >>> >>> I've tried this : >>> >>> final DefaultModalGraphMouse<Vertex, Edge> graphMouse = new >>> DefaultModalGraphMouse<Vertex, Edge>(); >>> JMenu menuMouseComboBox = graphMouse.getModeMenu(); >>> Component[] comps = menuMouseComboBox.getMenuComponents(); >>> JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; >>> System.out.println(menu1 + " :: " + menu1.getText()); >>> JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; >>> System.out.println(menu2 + " :: " + menu2.getText()); >>> >>> wich outputs : >>> >>> javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] :: TRANSFORMING >>> javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING >>> >>> >>> So I did : >>> >>> menu1.setText("Toto"); >>> menu2.setText("Titi"); >>> >>> But it does'nt work ... >>> >>> Any idea ? >>> >>> >>> >>> Le 27/01/14 19:36, Joshua O'Madadhain a écrit : >>> >>> Those words are, I believe, taken from the enum definition, which >>> defines those two modes: >>> >>> https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java >>> >>> The code probably just uses the name of the enum member for the >>> combobox rather than trying to do anything more sophisticated. >>> >>> So, two options: >>> (0) Find the place where the combobox decides what to render, and add a >>> translation of the enum into the text you desire. >>> (1) Change the names of those enums in the code. >>> >>> Hope this helps. >>> >>> >>> On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud < >>> fre...@mi...> wrote: >>> >>>> Hi all ! >>>> Is it possible to modify the text within the graphmouse combobox, ie >>>> change "TRANSFORMING" & "PICKING" by french words, and how to do that ? >>>> Thank you for your support ! >>>> Regards. >>>> Fred >>>> >>>> -- >>>> Frédéric Vergnaud >>>> CNRS UMR 7185 >>>> Centre de Sociologie de l'Innovation - Ecole des Mines de Paris >>>> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >>>> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >>>> http://www.csi.mines-paristech.fr >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >>>> Learn Why More Businesses Are Choosing CenturyLink Cloud For >>>> Critical Workloads, Development Environments & Everything In Between. >>>> Get a Quote or Start a Free Trial Today. >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Jung-support mailing list >>>> Jun...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jung-support >>>> >>> >>> >>> >>> -- >>> jos...@gm.........sites.google.com/site/joshuaomadadhain/ >>> Joshua O'Madadhain: Information Scientist, Musician, >>> Philosopher-At-Tall >>> It's that moment of dawning comprehension that I live for. -- Bill >>> Watterson >>> My opinions are too rational and insightful to be those of any >>> organization. >>> >>> >>> -- >>> Frédéric Vergnaud >>> CNRS UMR 7185 >>> Centre de Sociologie de l'Innovation - Ecole des Mines de Paris >>> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >>> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28http://www.csi.mines-paristech.fr >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> WatchGuard Dimension instantly turns raw network data into actionable >>> security intelligence. It gives you real-time visual feedback on key >>> security issues and trends. Skip the complicated setup - simply import >>> a virtual appliance and go from zero to informed in seconds. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk >>> >>> _______________________________________________ >>> Jung-support mailing list >>> Jun...@li... >>> https://lists.sourceforge.net/lists/listinfo/jung-support >>> >>> >> > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l'Innovation - Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28http://www.csi.mines-paristech.fr > > |
From: Frédéric V. <fre...@mi...> - 2014-01-28 12:24:41
|
I've tried to extends AbstractModalGraphMouse in a myAbstractModalGraphMouse class I'm forced to implement loadPlugins(), that is the only abstract void) and I've looked over AbstractModalGraphMouse, and I found that getModeMenu() is not abstract, so I can't rewrite it ... So did you mean directly in YOUR code in AbstractModalGraphMouse.java ? Is there not a better way ? Le 28/01/14 10:50, Tom Nelson a écrit : > sorry, I meant the JRadioButtonMenuItem constructor > > > On Tue, Jan 28, 2014 at 4:49 AM, Tom Nelson <tho...@gm... > <mailto:tho...@gm...>> wrote: > > Override getModeMenu() in AbstractModalGraphMouse. > Change only the JRadioButton constructor to assign the names you want. > > Tom Nelson > > > On Tue, Jan 28, 2014 at 4:27 AM, Frédéric Vergnaud > <fre...@mi... > <mailto:fre...@mi...>> wrote: > > Unfortunately, I think the Enum you pointed me are not the > texts showed in the combobox, but the actions to specify by ie : > > graphMouse.setMode(ModalGraphMouse.Mode.PICKING) > > So if I modify this Enum, I'd have to modify the mode calls > ... not a good idea ! > > I've tried this : > > final DefaultModalGraphMouse<Vertex, Edge> graphMouse = new > DefaultModalGraphMouse<Vertex, Edge>(); > JMenu menuMouseComboBox = graphMouse.getModeMenu(); > Component[] comps = menuMouseComboBox.getMenuComponents(); > JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; > System.out.println(menu1 + " :: " + menu1.getText()); > JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; > System.out.println(menu2 + " :: " + menu2.getText()); > > wich outputs : > > javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] :: > TRANSFORMING > javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING > > > So I did : > > menu1.setText("Toto"); > menu2.setText("Titi"); > > But it does'nt work ... > > Any idea ? > > > > Le 27/01/14 19:36, Joshua O'Madadhain a écrit : >> Those words are, I believe, taken from the enum definition, >> which defines those two modes: >> https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java >> >> The code probably just uses the name of the enum member for >> the combobox rather than trying to do anything more >> sophisticated. >> >> So, two options: >> (0) Find the place where the combobox decides what to render, >> and add a translation of the enum into the text you desire. >> (1) Change the names of those enums in the code. >> >> Hope this helps. >> >> >> On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud >> <fre...@mi... >> <mailto:fre...@mi...>> wrote: >> >> Hi all ! >> Is it possible to modify the text within the graphmouse >> combobox, ie >> change "TRANSFORMING" & "PICKING" by french words, and >> how to do that ? >> Thank you for your support ! >> Regards. >> Fred >> >> -- >> Frédéric Vergnaud >> CNRS UMR 7185 >> Centre de Sociologie de l'Innovation -- Ecole des Mines >> de Paris >> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >> http://www.csi.mines-paristech.fr >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything >> In Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Jung-support mailing list >> Jun...@li... >> <mailto:Jun...@li...> >> https://lists.sourceforge.net/lists/listinfo/jung-support >> >> >> >> >> -- >> jos...@gm... >> <mailto:jos...@gm...>......sites.google.com/site/joshuaomadadhain/ >> <http://sites.google.com/site/joshuaomadadhain/> >> Joshua O'Madadhain: Information Scientist, Musician, >> Philosopher-At-Tall >> It's that moment of dawning comprehension that I live for. >> -- Bill Watterson >> My opinions are too rational and insightful to be those of >> any organization. > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into > actionable > security intelligence. It gives you real-time visual feedback > on key > security issues and trends. Skip the complicated setup - > simply import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > > > _______________________________________________ > Jung-support mailing list > Jun...@li... > <mailto:Jun...@li...> > https://lists.sourceforge.net/lists/listinfo/jung-support > > > -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Frédéric V. <fre...@mi...> - 2014-01-28 10:16:03
|
Many thanks Tom ! I try right now ! Le 28/01/14 10:49, Tom Nelson a écrit : > Override getModeMenu() in AbstractModalGraphMouse. > Change only the JRadioButton constructor to assign the names you want. > > Tom Nelson > > > On Tue, Jan 28, 2014 at 4:27 AM, Frédéric Vergnaud > <fre...@mi... > <mailto:fre...@mi...>> wrote: > > Unfortunately, I think the Enum you pointed me are not the texts > showed in the combobox, but the actions to specify by ie : > > graphMouse.setMode(ModalGraphMouse.Mode.PICKING) > > So if I modify this Enum, I'd have to modify the mode calls ... > not a good idea ! > > I've tried this : > > final DefaultModalGraphMouse<Vertex, Edge> graphMouse = new > DefaultModalGraphMouse<Vertex, Edge>(); > JMenu menuMouseComboBox = graphMouse.getModeMenu(); > Component[] comps = menuMouseComboBox.getMenuComponents(); > JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; > System.out.println(menu1 + " :: " + menu1.getText()); > JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; > System.out.println(menu2 + " :: " + menu2.getText()); > > wich outputs : > > javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] :: > TRANSFORMING > javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING > > > So I did : > > menu1.setText("Toto"); > menu2.setText("Titi"); > > But it does'nt work ... > > Any idea ? > > > > Le 27/01/14 19:36, Joshua O'Madadhain a écrit : >> Those words are, I believe, taken from the enum definition, which >> defines those two modes: >> https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java >> >> The code probably just uses the name of the enum member for the >> combobox rather than trying to do anything more sophisticated. >> >> So, two options: >> (0) Find the place where the combobox decides what to render, and >> add a translation of the enum into the text you desire. >> (1) Change the names of those enums in the code. >> >> Hope this helps. >> >> >> On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud >> <fre...@mi... >> <mailto:fre...@mi...>> wrote: >> >> Hi all ! >> Is it possible to modify the text within the graphmouse >> combobox, ie >> change "TRANSFORMING" & "PICKING" by french words, and how to >> do that ? >> Thank you for your support ! >> Regards. >> Fred >> >> -- >> Frédéric Vergnaud >> CNRS UMR 7185 >> Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris >> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >> http://www.csi.mines-paristech.fr >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In >> Between. >> Get a Quote or Start a Free Trial Today. >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Jung-support mailing list >> Jun...@li... >> <mailto:Jun...@li...> >> https://lists.sourceforge.net/lists/listinfo/jung-support >> >> >> >> >> -- >> jos...@gm... >> <mailto:jos...@gm...>......sites.google.com/site/joshuaomadadhain/ >> <http://sites.google.com/site/joshuaomadadhain/> >> Joshua O'Madadhain: Information Scientist, Musician, >> Philosopher-At-Tall >> It's that moment of dawning comprehension that I live for. -- >> Bill Watterson >> My opinions are too rational and insightful to be those of any >> organization. > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply > import > a virtual appliance and go from zero to informed in seconds. > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Jung-support mailing list > Jun...@li... > <mailto:Jun...@li...> > https://lists.sourceforge.net/lists/listinfo/jung-support > > -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l'Innovation -- Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Tom N. <tho...@gm...> - 2014-01-28 09:50:50
|
sorry, I meant the JRadioButtonMenuItem constructor On Tue, Jan 28, 2014 at 4:49 AM, Tom Nelson <tho...@gm...>wrote: > Override getModeMenu() in AbstractModalGraphMouse. > Change only the JRadioButton constructor to assign the names you want. > > Tom Nelson > > > On Tue, Jan 28, 2014 at 4:27 AM, Frédéric Vergnaud < > fre...@mi...> wrote: > >> Unfortunately, I think the Enum you pointed me are not the texts showed >> in the combobox, but the actions to specify by ie : >> >> graphMouse.setMode(ModalGraphMouse.Mode.PICKING) >> >> So if I modify this Enum, I'd have to modify the mode calls ... not a >> good idea ! >> >> I've tried this : >> >> final DefaultModalGraphMouse<Vertex, Edge> graphMouse = new >> DefaultModalGraphMouse<Vertex, Edge>(); >> JMenu menuMouseComboBox = graphMouse.getModeMenu(); >> Component[] comps = menuMouseComboBox.getMenuComponents(); >> JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; >> System.out.println(menu1 + " :: " + menu1.getText()); >> JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; >> System.out.println(menu2 + " :: " + menu2.getText()); >> >> wich outputs : >> >> javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] :: TRANSFORMING >> javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING >> >> >> So I did : >> >> menu1.setText("Toto"); >> menu2.setText("Titi"); >> >> But it does'nt work ... >> >> Any idea ? >> >> >> >> Le 27/01/14 19:36, Joshua O'Madadhain a écrit : >> >> Those words are, I believe, taken from the enum definition, which defines >> those two modes: >> >> https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java >> >> The code probably just uses the name of the enum member for the >> combobox rather than trying to do anything more sophisticated. >> >> So, two options: >> (0) Find the place where the combobox decides what to render, and add a >> translation of the enum into the text you desire. >> (1) Change the names of those enums in the code. >> >> Hope this helps. >> >> >> On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud < >> fre...@mi...> wrote: >> >>> Hi all ! >>> Is it possible to modify the text within the graphmouse combobox, ie >>> change "TRANSFORMING" & "PICKING" by french words, and how to do that ? >>> Thank you for your support ! >>> Regards. >>> Fred >>> >>> -- >>> Frédéric Vergnaud >>> CNRS UMR 7185 >>> Centre de Sociologie de l'Innovation - Ecole des Mines de Paris >>> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >>> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >>> http://www.csi.mines-paristech.fr >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >>> Learn Why More Businesses Are Choosing CenturyLink Cloud For >>> Critical Workloads, Development Environments & Everything In Between. >>> Get a Quote or Start a Free Trial Today. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Jung-support mailing list >>> Jun...@li... >>> https://lists.sourceforge.net/lists/listinfo/jung-support >>> >> >> >> >> -- >> jos...@gm.........sites.google.com/site/joshuaomadadhain/ >> Joshua O'Madadhain: Information Scientist, Musician, >> Philosopher-At-Tall >> It's that moment of dawning comprehension that I live for. -- Bill >> Watterson >> My opinions are too rational and insightful to be those of any >> organization. >> >> >> -- >> Frédéric Vergnaud >> CNRS UMR 7185 >> Centre de Sociologie de l'Innovation - Ecole des Mines de Paris >> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28http://www.csi.mines-paristech.fr >> >> >> >> ------------------------------------------------------------------------------ >> WatchGuard Dimension instantly turns raw network data into actionable >> security intelligence. It gives you real-time visual feedback on key >> security issues and trends. Skip the complicated setup - simply import >> a virtual appliance and go from zero to informed in seconds. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> Jung-support mailing list >> Jun...@li... >> https://lists.sourceforge.net/lists/listinfo/jung-support >> >> > |
From: Tom N. <tho...@gm...> - 2014-01-28 09:50:02
|
Override getModeMenu() in AbstractModalGraphMouse. Change only the JRadioButton constructor to assign the names you want. Tom Nelson On Tue, Jan 28, 2014 at 4:27 AM, Frédéric Vergnaud < fre...@mi...> wrote: > Unfortunately, I think the Enum you pointed me are not the texts showed > in the combobox, but the actions to specify by ie : > > graphMouse.setMode(ModalGraphMouse.Mode.PICKING) > > So if I modify this Enum, I'd have to modify the mode calls ... not a good > idea ! > > I've tried this : > > final DefaultModalGraphMouse<Vertex, Edge> graphMouse = new > DefaultModalGraphMouse<Vertex, Edge>(); > JMenu menuMouseComboBox = graphMouse.getModeMenu(); > Component[] comps = menuMouseComboBox.getMenuComponents(); > JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; > System.out.println(menu1 + " :: " + menu1.getText()); > JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; > System.out.println(menu2 + " :: " + menu2.getText()); > > wich outputs : > > javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] :: TRANSFORMING > javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING > > > So I did : > > menu1.setText("Toto"); > menu2.setText("Titi"); > > But it does'nt work ... > > Any idea ? > > > > Le 27/01/14 19:36, Joshua O'Madadhain a écrit : > > Those words are, I believe, taken from the enum definition, which defines > those two modes: > > https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java > > The code probably just uses the name of the enum member for the combobox > rather than trying to do anything more sophisticated. > > So, two options: > (0) Find the place where the combobox decides what to render, and add a > translation of the enum into the text you desire. > (1) Change the names of those enums in the code. > > Hope this helps. > > > On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud < > fre...@mi...> wrote: > >> Hi all ! >> Is it possible to modify the text within the graphmouse combobox, ie >> change "TRANSFORMING" & "PICKING" by french words, and how to do that ? >> Thank you for your support ! >> Regards. >> Fred >> >> -- >> Frédéric Vergnaud >> CNRS UMR 7185 >> Centre de Sociologie de l'Innovation - Ecole des Mines de Paris >> 60, Boulevard Saint Michel , 75272 Paris Cedex 06 >> Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 >> http://www.csi.mines-paristech.fr >> >> >> >> ------------------------------------------------------------------------------ >> CenturyLink Cloud: The Leader in Enterprise Cloud Services. >> Learn Why More Businesses Are Choosing CenturyLink Cloud For >> Critical Workloads, Development Environments & Everything In Between. >> Get a Quote or Start a Free Trial Today. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >> _______________________________________________ >> Jung-support mailing list >> Jun...@li... >> https://lists.sourceforge.net/lists/listinfo/jung-support >> > > > > -- > jos...@gm.........sites.google.com/site/joshuaomadadhain/ > Joshua O'Madadhain: Information Scientist, Musician, Philosopher-At-Tall > It's that moment of dawning comprehension that I live for. -- Bill > Watterson > My opinions are too rational and insightful to be those of any > organization. > > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l'Innovation - Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28http://www.csi.mines-paristech.fr > > > > ------------------------------------------------------------------------------ > WatchGuard Dimension instantly turns raw network data into actionable > security intelligence. It gives you real-time visual feedback on key > security issues and trends. Skip the complicated setup - simply import > a virtual appliance and go from zero to informed in seconds. > > http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > > |
From: Frédéric V. <fre...@mi...> - 2014-01-28 09:27:34
|
Unfortunately, I think the Enum you pointed me are not the texts showed in the combobox, but the actions to specify by ie : graphMouse.setMode(ModalGraphMouse.Mode.PICKING) So if I modify this Enum, I'd have to modify the mode calls ... not a good idea ! I've tried this : final DefaultModalGraphMouse<Vertex, Edge> graphMouse = new DefaultModalGraphMouse<Vertex, Edge>(); JMenu menuMouseComboBox = graphMouse.getModeMenu(); Component[] comps = menuMouseComboBox.getMenuComponents(); JRadioButtonMenuItem menu1 = (JRadioButtonMenuItem) comps[0]; System.out.println(menu1 + " :: " + menu1.getText()); JRadioButtonMenuItem menu2 = (JRadioButtonMenuItem) comps[1]; System.out.println(menu2 + " :: " + menu2.getText()); wich outputs : javax.swing.JRadioButtonMenuItem[... text=TRANSFORMING] :: TRANSFORMING javax.swing.JRadioButtonMenuItem[... text=PICKING] :: PICKING So I did : menu1.setText("Toto"); menu2.setText("Titi"); But it does'nt work ... Any idea ? Le 27/01/14 19:36, Joshua O'Madadhain a écrit : > Those words are, I believe, taken from the enum definition, which > defines those two modes: > https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java > > The code probably just uses the name of the enum member for the > combobox rather than trying to do anything more sophisticated. > > So, two options: > (0) Find the place where the combobox decides what to render, and add > a translation of the enum into the text you desire. > (1) Change the names of those enums in the code. > > Hope this helps. > > > On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud > <fre...@mi... > <mailto:fre...@mi...>> wrote: > > Hi all ! > Is it possible to modify the text within the graphmouse combobox, ie > change "TRANSFORMING" & "PICKING" by french words, and how to do > that ? > Thank you for your support ! > Regards. > Fred > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l’Innovation – Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Jung-support mailing list > Jun...@li... > <mailto:Jun...@li...> > https://lists.sourceforge.net/lists/listinfo/jung-support > > > > > -- > jos...@gm.........sites.google.com/site/joshuaomadadhain/ > <http://sites.google.com/site/joshuaomadadhain/> > Joshua O'Madadhain: Information Scientist, Musician, > Philosopher-At-Tall > It's that moment of dawning comprehension that I live for. -- Bill > Watterson > My opinions are too rational and insightful to be those of any > organization. -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l’Innovation – Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Frédéric V. <fre...@mi...> - 2014-01-28 08:52:56
|
Oups, I didn't find this code, even if I've found the class ! Thanks for your quick answer ! I will try to modify the code now ! Many thanks and long life to jung ;) Le 27/01/14 19:36, Joshua O'Madadhain a écrit : > Those words are, I believe, taken from the enum definition, which > defines those two modes: > https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java > > The code probably just uses the name of the enum member for the > combobox rather than trying to do anything more sophisticated. > > So, two options: > (0) Find the place where the combobox decides what to render, and add > a translation of the enum into the text you desire. > (1) Change the names of those enums in the code. > > Hope this helps. > > > On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud > <fre...@mi... > <mailto:fre...@mi...>> wrote: > > Hi all ! > Is it possible to modify the text within the graphmouse combobox, ie > change "TRANSFORMING" & "PICKING" by french words, and how to do > that ? > Thank you for your support ! > Regards. > Fred > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l’Innovation – Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Jung-support mailing list > Jun...@li... > <mailto:Jun...@li...> > https://lists.sourceforge.net/lists/listinfo/jung-support > > > > > -- > jos...@gm.........sites.google.com/site/joshuaomadadhain/ > <http://sites.google.com/site/joshuaomadadhain/> > Joshua O'Madadhain: Information Scientist, Musician, > Philosopher-At-Tall > It's that moment of dawning comprehension that I live for. -- Bill > Watterson > My opinions are too rational and insightful to be those of any > organization. -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l’Innovation – Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |
From: Joshua O'M. <jos...@gm...> - 2014-01-27 18:36:58
|
Those words are, I believe, taken from the enum definition, which defines those two modes: https://code.google.com/p/jung/source/browse/trunk/jung/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/control/ModalGraphMouse.java The code probably just uses the name of the enum member for the combobox rather than trying to do anything more sophisticated. So, two options: (0) Find the place where the combobox decides what to render, and add a translation of the enum into the text you desire. (1) Change the names of those enums in the code. Hope this helps. On Mon, Jan 27, 2014 at 6:32 AM, Frédéric Vergnaud < fre...@mi...> wrote: > Hi all ! > Is it possible to modify the text within the graphmouse combobox, ie > change "TRANSFORMING" & "PICKING" by french words, and how to do that ? > Thank you for your support ! > Regards. > Fred > > -- > Frédéric Vergnaud > CNRS UMR 7185 > Centre de Sociologie de l’Innovation – Ecole des Mines de Paris > 60, Boulevard Saint Michel , 75272 Paris Cedex 06 > Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 > http://www.csi.mines-paristech.fr > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Jung-support mailing list > Jun...@li... > https://lists.sourceforge.net/lists/listinfo/jung-support > -- jos...@gm.........sites.google.com/site/joshuaomadadhain/ Joshua O'Madadhain: Information Scientist, Musician, Philosopher-At-Tall It's that moment of dawning comprehension that I live for. -- Bill Watterson My opinions are too rational and insightful to be those of any organization. |
From: Frédéric V. <fre...@mi...> - 2014-01-27 14:48:10
|
Hi all ! Is it possible to modify the text within the graphmouse combobox, ie change "TRANSFORMING" & "PICKING" by french words, and how to do that ? Thank you for your support ! Regards. Fred -- Frédéric Vergnaud CNRS UMR 7185 Centre de Sociologie de l’Innovation – Ecole des Mines de Paris 60, Boulevard Saint Michel , 75272 Paris Cedex 06 Tél 33(0)1.40.51.92.83 | Fax 33(0)43.54.56.28 http://www.csi.mines-paristech.fr |