|
Re: Help with GraphPinScene and adding of Pins: msg#00068java.netbeans.modules.graph.user
You can set the a layout for any widget. This might be a good place to start. http://www.netbeans.org/download/dev/javadoc/org-netbeans-api-visual/org/netbeans/api/visual/widget/doc-files/documentation.html#Layout It sounds like you are using IconWidget as the Nodes. So you would just set the IconWidget's layout as show below. If you end having control over the constructor of the Widget, you can also set the layout there. Then when you add any children ie pin widgets of some sort) to that node widget they should fall into you desired layout. Widget w1 = new Widget (scene); w1.setBorder (BorderFactory.createLineBorder (1, Color.RED)); w1.setLayout (LayoutFactory.createVerticalFlowLayout ()); Remember, if you decide to play the pins in very specific location (ie you don't want to use one of the predefined layouts ), you can simply set the preferred location rather than modifying the layout. Regards, Joelle Rajan Subramanian wrote: Hi,
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Help with GraphPinScene and adding of Pins, Rajan Subramanian |
|---|---|
| Next by Date: | Re: Help with GraphPinScene and adding of Pins, Rajan Subramanian |
| Previous by Thread: | Help with GraphPinScene and adding of Pins, Rajan Subramanian |
| Next by Thread: | Re: Help with GraphPinScene and adding of Pins, Rajan Subramanian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |