Graphic - drawing nodes and edges, place elements and mouse event

Hello, I am new to Java. I would like to do the following:
show graphically a node and edge structure in star format, where each of the nodes, including the centre node, is a string.
The number of edges is varialbe, so I guess I have to divide the 360' arc into equally spaced angles, define the distance at which to place the nodes at the extremity and then draw n-lines from the centre node (also a string of characters) to each of the peripherical nodes (also a string of characters).
Additioanally, I would need a mouse click event, where by when I click on any of the nodes (including the periphery ones), an certain event is triggered, depending on which node I am clicking. Basically, something that recognise that the mouse is on top of a specific String when clicked (to make things more complex, I would need a left click or a righ click with pop-up menu of actions..but I guess, that's the easy part)
thanks to all for the help

My advice is to start learning Java:
http://java.sun.com/docs/books/tutorial/
... and using existing tools instead of re-inventing the wheel:
http://www.jgraph.com/jgraph.html

Similar Messages

  • Key and mouse event

    Hi all,
    anybody please tel me how can i access key and mouse events.here i don't have any GUI application.
    thanks in advance
    pradeep

    If you don't have a GUI application then no events will be generated.
    Or do you mean "GUI experience?" A quick google would have found you these:
    http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html
    http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html

  • Using LV Class Property Nodes in In-place Element structure causes the code to halt

    I have some code written in LV RT 2010 that uses property nodes from a LVOOP class that I created.  I am using access the property node from inside an in-place element structure.  When the code reaches the property node, LabVIEW stops running.  (as if the abort button was pressed).  I verified this behaviour using highlight execution.  When I remove the in-place structure code runs fine.
    Is this is know bug in LabVIEW?  Is there a CAR to resolve this created for a future release?

    Bob,
    I tried to reproduce the behavior you're seeing by recreating the Trigger and Trigger List classes, but I have not been able to reproduce it.  Please take a look at my version of the project in the attached zip file.  Take a look at Test.vi, and feel free to modify and repost it to show me how to make the problem occur.  I would like to file a CAR to make sure we get the problem fixed, but I will need to be able to reliably reproduce it first.
    On a similar note, you can get much better performance out of the Process Triggers VI by preallocating the list array, instead of using build array in a loop.  Take a look at Process Triggers2.vi in my project.  You can run Benchmark.vi to see the performance difference between the two different approaches.
    Chris M
    Attachments:
    triggerlist test.zip ‏165 KB

  • Linking graphics to sound and mouse activation

    Hello everyone,
    The following code shows nine colored rectangles:
    * Graphics Test
    import java.awt.*;
    import java.awt.event.*;
    public class GraphicsTest extends Frame
         public static void main(String[] args)
              //The frame constructor
              Frame myFrame = new Frame();
              myFrame.setSize(800,620);
              myFrame.setTitle("Test board");
              myFrame.setVisible(true);
              myFrame.setBackground(Color.black);
              Graphics myGraphics = myFrame.getGraphics();
              // add a listener to close the frame
              myFrame.addWindowListener(new WindowAdapter()
                   public void windowClosing(WindowEvent e)
                        System.exit(0);
              //add a listener for mouse pressed
              myFrame.addMouseListener(new MouseAdapter()
                   public void mousePressed(MouseEvent e)
                        System.out.println("Mouse pressed at x=" + e.getX() + ", y=" + e.getY());     
              //draw a white separation line in the middle of the page
              myGraphics.setColor(Color.white);
              myGraphics.drawLine(0,310,800,310);
              //the rectangles
              myGraphics.setColor(Color.white);
              myGraphics.fillRect(65,55,60,30);
              myGraphics.setColor(new Color(255,255,32));
              myGraphics.fillRect(145,55,60,30);
              myGraphics.setColor(new Color(255,42,0));
              myGraphics.fillRect(235,55,60,30);
              myGraphics.setColor(new Color(255,255,0));
              myGraphics.fillRect(345,55,60,30);
              myGraphics.setColor(new Color(107,199,90));
              myGraphics.fillRect(425,55,60,30);
              myGraphics.setColor(new Color(255,119,0));
              myGraphics.fillRect(30,335,60,30);
              myGraphics.setColor(new Color(195,0,195));
              myGraphics.fillRect(110,335,60,30);
              myGraphics.setColor(new Color(108,216,61));
              myGraphics.fillRect(190,335,60,30);
              myGraphics.setColor(new Color(60,161,255));
              myGraphics.fillRect(270,335,60,30);
    }Each rectangle symbolizes a sign (or letter) of the alphabet and its corresponding sound. For instance, the first rectangle, in white, of the upper row corresponds to the letter "a". The first rectangle, in orange, of the lower row corresponds to the letter "m". Clicking on a rectangle should make it possible to hear its corresponding sound. Moving the mouse from one rectangle to another should make it possible to build words. My first problem is how to link each rectangle with its corresponding sound, as pre-recorded in a sound file (in .wav or .au format) and how to activate this sound with a mouse click. My second, slightly more complex problem is how to control the motions of the cursor from one rectangle to another and the speed of the moves with a timer.
    Any help or hint on how to solve each or both of these problems will be very much appreciated.

    Satellite A505-S6005 
    ..the sound "burping" at me periodically. ... It's kind of like a digital croak or a stutter all rolled into one.  It now likes to do this exactly at midnight every night, when the CPU usage will spike, but I can't find anything running at that time..
     Maybe when the PC Health Monitor runs?   
       Document ID: 98082921
    -Jerry

  • Keyboard and mouse events during screen sharing

    I use OS X 10.6.8, my mom has 10.5.(8?).
    Screen sharing used to work fine. I am always viewing her screen.
    Lately, none of my keyboard presses or mouse clicks make it through the connection to her machine. I can 'influence' but not really control the placement of her cursor as viewed on my screen. She never sees the pointer move from wherever it was before I started trying to move it. I can see her screen fine, and even see some frame rate if she plays a video from an email message (but I don't get the audio stream). We can't continue talking while the video is playing though because our voice connection has too many dropouts.
    She did change from using Comcast to using AT&T Uverse several months ago. I can't remember exactly when the troubles started, but it could have been at the time of that switch. She is getting a lower speed connection than she used to.
    Are these issues strictly a problem of a too-slow connection, or is there something else to try. I'm most concerned about the keyboard and mouse loss, since that means I have to describe every action to her instead of doing anything myself. I can live without viewing videos over a screen sharing link...

    Hi,
    It is worth doing  Speed check at both ends
    http://www.speedtest.net/
    It may also pay to open the Connection Doctor (Video Menu) during a Audio or Video chat and checking the Bit rate and Framerate (on Video).
    iChat in 1-1 Video needs "Real World" speed of 256kbps  (it will manage according to Apple at 128kbps).
    This Min of 128kbps is the min for Screen Sharing as well.
    The Connection Doctor will show you what iChat is using (your Bit rate) NOT what the Internet Speed is measured at.
    It will be closer to the Upload Speed you have.
    iChat will tend to settle closer to the slower speed of whichever Buddy has the slowest Upload (plus a margin for variances in the ISP's feed/service)
    If the variances in the Internet Speed from the ISP varies too much then iChat will have difficulties.
    It will drop Audio (As far as you as concerned) as it will start dropping frames to smooth the video out.
    For this reason it can pay to go to iChat > Preferences > Video Section and try the Bandwidth Limit at 500kbps  (If for instance you have a 10Mbps Upload a 5% variance can be a whole 500kbps)
    With both ends at 500kbps you can be below the Variance factor.
    Try 200kbps if there still appear to be problems.
    NOTE:-
    iChat's responses are determined by the Internet Speed (Or at least the portion that computer is getting = Bandwidth) and what else the computer is doing.
    Depending on the Mac and it's Processor and the apps running at the time iChat may not get a decent use of the Processor.  (It is set to use it "last" a it were so Downloading, Playing Video elsewhere, or setting background tasks (Anit Virus scans, iMovie Rendering) may impinge on free Processor cycles).
    Try to eliminate as much as possible.
    <
    9:19 PM      Tuesday; July 19, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Capture key and mouse event

    Hi,
    What I want to do is..
    when users click on a item such as text item and press the 'Ctrl' key, a message will
    appear.
    How can I capture the event ?
    Thanks.
    Ivan

    Duplicate thread. Please see the other one at:
    <p>capture key and mouse event

  • DRAWING NODES and LINKS

    I am trying to draw a 3-d swing that shows nodes as circles and links between them. I have used AWT API for it, but I realised that i cannot use things like tooltips to see labels on the nodes. Also i have tried unsuccessfully to ensure that the links only touch the circumference of the nodes without showing inside the centre. How can I use swing to achieve this?

    Hey, check out this thread... You may find the final post of some use. I used something similar to it to transfer a file from the server to a my hard drive via an applet.
    http://forum.java.sun.com/thread.jsp?forum=22&thread=236396

  • Problem with JScrollPane and Mouse Event in JDK 1.4

    The folowing code works fine with JDK 1.3. But not with JDK 1.4. It has got a JPanel(main panel) which hosts JScrollPane which hosts another JPanel (drawing Panel). If I remove(do not add) JScrollPane to the main Panel and ad drawing panel directly to the main panel, it works.
    Thanks.
    In order to replicate the exact scenario, I have modified Sun's tutorial ScrollDemo2.java
    * This code is based on an example provided by John Vella,
    * a tutorial reader.
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class ScrollDemo2 extends JPanel {
    private Dimension size; // indicates size taken up by graphics
    private Vector objects; // rectangular coordinates used to draw graphics
    private final Color colors[] = {
    Color.red, Color.blue, Color.green, Color.orange,
    Color.cyan, Color.magenta, Color.darkGray, Color.yellow};
    private final int color_n = colors.length;
    JPanel drawingArea;
    public ScrollDemo2() {
    setOpaque(true);
    size = new Dimension(0,0);
    objects = new Vector();
    //Set up the instructions.
    JLabel instructionsLeft = new JLabel(
    "Click left mouse button to place a circle.");
    JLabel instructionsRight = new JLabel(
    "Click right mouse button to clear drawing area.");
    JPanel instructionPanel = new JPanel(new GridLayout(0,1));
    instructionPanel.add(instructionsLeft);
    instructionPanel.add(instructionsRight);
    class MyScrollPane extends JScrollPane
    MyScrollPane(JPanel drawingArea)
    super(drawingArea);
    public void grabFocus()
    super.grabFocus();
    public void requestFocus()
    super.requestFocus();
    protected void processFocusEvent(FocusEvent e)
    if ( e.getID() == FocusEvent.FOCUS_GAINED )
    int i = 0;
    else
    if( e.getID() == FocusEvent.FOCUS_LOST )
    int i = 0;
    super.processFocusEvent(e);
    //Set up the drawing area.
    drawingArea = new JPanel() {
    protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    Rectangle rect;
    for (int i = 0; i < objects.size(); i++) {
    rect = (Rectangle)objects.elementAt(i);
    g.setColor(colors[(i % color_n)]);
    g.fillOval(rect.x, rect.y, rect.width, rect.height);
    g.drawString("Hello",100,100);
    protected void processMouseEvent(MouseEvent pEvent)
    if(pEvent.getID() == pEvent.MOUSE_PRESSED)
    super.processMouseEvent(pEvent);
    else
    super.processMouseEvent(pEvent);
    drawingArea.setBackground(Color.LIGHT_GRAY);
    addMouseListener(new MyMouseListener());
    //Put the drawing area in a scroll pane.
    JScrollPane scroller = new MyScrollPane(drawingArea);
    scroller.setPreferredSize(new Dimension(200,200));
    setLayout(new BorderLayout());
    add(scroller, BorderLayout.CENTER);
    //If the above line is commented and the line bellow will be uncommented it works.
    //add(drawingArea, BorderLayout.CENTER);
    protected void processMouseEvent(MouseEvent pEvent)
    if(pEvent.getID() == pEvent.MOUSE_PRESSED)
    super.processMouseEvent(pEvent);
    else
    super.processMouseEvent(pEvent);
    class MyMouseListener extends MouseInputAdapter {
    final int W = 100;
    final int H = 100;
    public void mouseReleased(MouseEvent e) {
    boolean changed = false;
    if (SwingUtilities.isRightMouseButton(e)) {
    // This will clear the graphic objects.
    objects.removeAllElements();
    size.width=0;
    size.height=0;
    changed = true;
    } else {
    int x = e.getX() - W/2;
    int y = e.getY() - H/2;
    if (x < 0) x = 0;
    if (y < 0) y = 0;
    Rectangle rect = new Rectangle(x, y, W, H);
    objects.addElement(rect);
    drawingArea.scrollRectToVisible(rect);
    int this_width = (x + W + 2);
    if (this_width > size.width)
    {size.width = this_width; changed=true;}
    int this_height = (y + H + 2);
    if (this_height > size.height)
    {size.height = this_height; changed=true;}
    if (changed) {
    //Update client's preferred size because
    //the area taken up by the graphics has
    //gotten larger or smaller (if cleared).
    drawingArea.setPreferredSize(size);
    //Let the scroll pane know to update itself
    //and its scrollbars.
    drawingArea.revalidate();
    drawingArea.repaint();
    public static void main (String args[]) {
    JFrame frame = new JFrame("ScrollDemo2");
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}
    frame.setContentPane(new ScrollDemo2());
    frame.pack();
    frame.setVisible(true);

    I tried it . It didn't work.
    Thanks for the suggestionI've got it... I know that inside the paitComponet method you can't call setSize() in jdk1.4, but you could in previous versions... that has caused al lot of problems to me...
    Abraham

  • Problem with TrayIcon and mouse events

    Hi,
    I am trying to listen for a mouseEntered event on a TrayIcon.
    This is the code i am using:
    final TrayIcon icon = new TrayIcon(getImage(), "tray icon");
    final SystemTray tray = SystemTray.getSystemTray();
    try {
       tray.add(icon);
    }catch (AWTException e) {System.out.println("TrayIcon could not be added.");return;}
    icon.addMouseListener(new MouseAdapter() {
    @Override
    public void mouseEntered(MouseEvent e){
       System.out.println("works");
    }});The icon is correctly shown in the tray bar, but the mouse entered event is not working.
    I have to say that i am using the exactly same code to achieve the same effect on a JButton and it works without any problem.
    Is there anything wrong?
    Thanks,
    Nite

    is there a way to request my thread to be moved into Swing section? Well, the idea is to post the question in the proper forum in the first place.
    yes, but i didnt find anything related to my problem.Really, I found posted examples of using a MouseListener.
    Does your code work for other events or is the problem only related to mouseEntered() events (which may not be supported, I don't know since I don't have the proper API to use TrayIcons)?
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Then maybe others can test your code or see something else wrong.

  • In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity

    [The title of this forum is "Labview Ideas". Although this is NOT a direct suggestion for a change or addition to Labview, it seems appropriate to me to post it in this forum.]
    In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity
    I'd like to see NI actually start a round-table discussion about VI references, Data Value references, local variables, compiler optimizations, etc. I'm a C programmer; I'm used to pointers. They are simple, functional, and well defined. If you know the data type of an object and have a pointer to it, you have the object. I am used to compilers that optimize without the user having to go to weird lengths to arrange it. 
    The 'reference' you get when you right click and "Create Reference" on a control or indicator seems to be merely a shorthand read/write version of the Value property that can't be wired into a flow-of-control (like the error wire) and so causes synchronization issues and race conditions. I try not to use local variables.
    I use references a lot like C pointers; I pass items to SubVIs using references. But the use of references (as compared to C pointers) is really limited, and the implementation is insconsistent, not factorial in capabilites, and buggy. For instance, why can you pass an array by reference and NOT be able to determine the size of the array EXCEPT by dereferencing it and using the "Size Array" VI? I can even get references for all array elements; but I don't know how many there are...! Since arrays are represented internally in Labview as handles, and consist of basically a C-style pointer to the data, and array sizing information, why is the array handle opaque? Why doesn't the reference include operators to look at the referenced handle without instantiating a copy of the array? Why isn't there a "Size Array From Reference" VI in the library that doesn't instantiate a copy of the array locally, but just looks at the array handle?
    Data Value references seem to have been invented solely for the "In-Place Element Structure". Having to write the code to obtain the Data Value Reference before using the In-Place Element Structure simply points out how different a Labview reference is from a C pointer. The Labview help page for Data Value References simply says "Creates a reference to data that you can use to transfer and access the data in a serialized way.".  I've had programmers ask me if this means that the data must be accessed sequentially (serially)...!!!  What exactly does that mean? For those of use who can read between the lines, it means that Labview obtains a semaphore protecting the data references so that only one thread can modify it at a time. Is that the only reason for Data Value References? To provide something that implements the semaphore???
    The In-Place Element Structure talks about minimizing copying of data and compiler optimization. Those kind of optimizations are built in to the compiler in virtually every other language... with no special 'construct' needing to be placed around the code to identify that it can be performed without a local copy. Are you telling me that the Labview compiler is so stupid that it can't identify certain code threads as needing to be single-threaded when optimizing? That the USER has to wrap the code in semaphores before the compiler can figure out it should optimize??? That the compiler cannot implement single threading of parts of the user's code to improve execution efficiency?
    Instead of depending on the user base to send in suggestions one-at-a-time it would be nice if NI would actually host discussions aimed at coming up with a coherent and comprehensive way to handle pointers/references/optimization etc. One of the reasons Labview is so scattered is because individual ideas are evaluated and included without any group discussion about the total environment. How about a MODERATED group, available by invitation only (based on NI interactions with users in person, via support, and on the web) to try and get discussions about Labview evolution going?
    Based solely on the number of Labview bugs I've encountered and reported, I'd guess this has never been done, with the user community, or within NI itself.....

    Here are some articles that can help provide some insights into LabVIEW programming and the LabVIEW compiler. They are both interesting and recommended reading for all intermediate-to-advanced LabVIEW programmers.
    NI LabVIEW Compiler: Under the Hood
    VI Memory Usage
    The second article is a little out-of-date, as it doesn't discuss some of the newer technologies available such as the In-Place Element Structure you were referring to. However, many of the general concepts still apply. Some general notes from your post:
    1. I think part of your confusion is that you are trying to use control references and local variables like you would use variables in a C program. This is not a good analogy. Control references are references to user interface controls, and should almost always be used to control the behavior and appearance of those controls, not to store or transmit data like a pointer. LabVIEW is a dataflow language. Data is intended to be stored or transmitted through wires in most cases, not in references. It is admittedly difficult to make this transition for some text-based programmers. Programming efficiently in LabVIEW sometimes requires a different mindset.
    2. The LabVIEW compiler, while by no means perfect, is a complicated, feature-rich set of machinery that includes a large and growing set of optimizations. Many of these are described in the first link I posted. This includes optimizations you'd find in many programming environments, such as dead code elimination, inlining, and constant folding. One optimization in particular is called inplaceness, which is where LabVIEW determines when buffers can be reused. Contrary to your statement, the In-Place Element Structure is not always required for this optimization to take place. There are many circumstances (dating back years before the IPE structure) where LabVIEW can determine inplaceness and reuse buffers. The IPE structure simply helps users enforce inplaceness in some situations where it's not clear enough on the diagram for the LabVIEW compiler to make that determination.
    The more you learn about programming in LabVIEW, the more you realize that inplaceness itself is the closest analogy to pointers in C, not control references or data references or other such things. Those features have their place, but core, fundamental LabVIEW programming does not require them.
    Jarrod S.
    National Instruments

  • Dynamic creation of context nodes and ui elements

    Hi,
    I have created context nodes dynamically. And i also want to create UI elements dynamically wherein i want to bind the attribute from the context node to it. For example i want to create a drop down by index and bind one of the attributes in the context nodes that i have earlier created dynamically to it.  I do not know how to get the path to the attribute as i get IF_WD_CONTEXTNODE_INFO when i say get_child_node(). And the IF_WD_CONTEXTNODE_INFO does not have any method where in i can get IF_WD_CONTEXT_NODE from where i can get the path by get_meta_path( )
    Here is the code. The problem is to get the path which is the i/p to cl_wd_dropdown_by_idx=>new_dropdown_by_idx( ) method.
    DATA:
            lo_root_ui_elmnt              TYPE REF TO cl_wd_uielement_container,
            lo_drpdwn_by_idx              TYPE REF TO cl_wd_dropdown_by_idx,
            lo_txt_vw                     TYPE REF TO cl_wd_text_view,
            lo_qstn_node                  TYPE REF TO if_wd_context_node,
            lo_optn_node_info             TYPE REF TO if_wd_context_node_info,
            lv_optn_data_source_name      TYPE string,
            lt_child_nodes                TYPE wdr_context_child_map,
            lo_qstn_el                    TYPE REF TO if_wd_context_element,
            lo_optn_el                    TYPE REF TO if_wd_context_element,
            lv_text                       TYPE string,
            lo_qstn_node_info             TYPE REF TO if_wd_context_node_info.
      FIELD-SYMBOLS:
    *                 <ls_qstn>    LIKE LINE OF wd_this->mt_questions.
                    <ls_child_node>         LIKE LINE OF lt_child_nodes.
      lo_root_ui_elmnt ?= io_view->get_root_element( ).
      lt_child_nodes = wd_context->get_child_nodes( ).
    LOOP AT lt_child_nodes ASSIGNING <ls_child_node>.
       lo_qstn_node = <ls_child_node>-node.
        lo_qstn_el = lo_qstn_node->get_element( index = 1 ).
        lo_qstn_el->get_attribute(
              EXPORTING
                name = 'QUESTION_TEXT'
               IMPORTING
                 value = lv_text ).
        lo_txt_vw =   cl_wd_text_view=>new_text_view( view = io_view ).
        lo_txt_vw->set_text( value = lv_text  ).
        lo_qstn_node_info = lo_qstn_node->get_node_info( ).
        lo_optn_node_info = lo_qstn_node_info->get_child_node( 'OPTIONS' ).
    *    lv_optn_data_source_name = lo_optn_node_info->get_meta_path( withoutcontroller = abap_true ).
    *    CONCATENATE lv_optn_data_source_name '.' 'OPTION_TEXT' INTO lv_optn_data_source_name.
        lo_drpdwn_by_idx = cl_wd_dropdown_by_idx=>new_dropdown_by_idx(
                              bind_texts = lv_optn_data_source_name
                              view       = io_view ).
        lo_root_ui_elmnt->add_child( lo_txt_vw ).
        lo_root_ui_elmnt->add_child( lo_drpdwn_by_idx ).
      ENDLOOP.
    Regards,
    Madhura Lobo
    Edited by: Suhas Saha on Aug 2, 2011 11:04 AM

    Hi Madhura,
    Please check this thread and find Baskaran answer...
    create new child-node in supply-function
    Re: Creating Dynamic Node and Table
    Cheers,
    Kris.

  • Object and in place element structure

    Hi!
    I need some help!
    How can I do the following?
    In the 1.)  Set the new value here - make some changes takes effect the whole array, previously and take effect for the 2. wire?
    I have tried that in place element structure without any success.
    The reason is why I would like to do this is : I wanna avoid the always usage of get - set pairs when I am working with objects, tipically array of objects.
    so my goal is, how to see only 10 values in both arrays?
    My real problem is the following:
    I have an array with objects. The order of the objects is very important, can not be changed. I use a stack - algorithm on the elements. Randomly push many elements into the stack, and randomly pop them. When I pop, I wanna use a set-method on the object, (set something flag/property) . So I want this chage to take effect the memory .
    (If used a simle enable - indexing in the loop, I would lost the real order of the original array.)
    (maybe I can calculate the index of the element what I want to update, but I think there is more easier alternative to do that and I should use the get - set again...)
    +++ In God we believe, in Trance we Trust +++
    [Hungary]
    Solved!
    Go to Solution.

    The native LVOOP implementation is by-val and not by ref.as in most OOP implementations. If you are coming from an OOP background, think like: every time you branch a wire, it creates a clone of the object on the wire (or all the objects in the array in your case). As a general rule, this is the desired behaviour in about 80% of the cases (when using LabVIEW). So consider if you can't do it using a by-val implementation.
    There are several falvours of by-ref implementation, where you will have the same objects on both wires:
    * private data inside SEQ (single element queue, no replaced by the next one)
    * private data inside DVR (data value reference)
    * object inside DVR
    which implementation you choose is up to you. From your image/code, I'd place the object inside the DVR. You could create the DVR with the obj in the first for loop. In the secend for loop, index your elements and use the IPE to get the obj out of the DVR for your get-set operation and place it back.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Article - In Place Element Strucure - Saves Time and Prevents Bugs

    I hope you all enjoy it and find it useful: In Place Element Strucure - Saves Time and Prevents Bugs Thanks,
    -Jim
    [cross-post]

    This one deserves a place in the structures palette.
    For some reason I always open the array palette to select a "for loop"
    and selecting the N of the for to change the visibility of the label.
    A pity both don't work.
    But I also agree with Stephen that changing palettes should be done only when really needed.
    Every change proposal should have a lot of arguments. The more users LabvIEW has the more people need to agree on a change !!!!!
    Additions on the other hand and alternatives are welcome.
    greetings from the Netherlands

  • Display Checkbox along Tree node and its child elements

    Experts,
    I want to display a checkbox in front of the Tree displayed in the view. This is used for me to select the child item value for my selection condition.
    let say if the user selects the node, all the child elements will be used for search condition.
    Otherwise, if the node is expanded, then the checkbox selected in the child element will be used for search condition...
    Can u ppl suggest me how to design it, if possible can u share some sample code or procedure to customize the Tree as per the requirement...
    thanx in advance,
    James...

    hi
    please go through this
    <a href="http://integration  of  a  tree  structure  in  a  web  dynpro  table">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce</a>
    Thanks
    Smitha

  • Copy and paste text and graphics between Flash and Illustrator

    When copying text in Illustrator and pasting them to Flash, some text would become drawing objects and some remain text. A drawing object is not editable. If I import the AI file, then text remains text but the placement of graphics can be a little bit off sometimes.
    It's just not possible to copy-and-paste text and graphics from Flash to Illustrator.
    Is it just me? If not, when will Adobe have better integration between the 2?
    Thanks,

    Even though you can change your InDesign preferences for Clipboard Handling to allow formatted information to be pasted into InDesign from other programs, unfortunately Illustrator still won't allow you paste in text with formatting. This is due to how Illustrator and InDesign handle text differently. Even if you copy the text from Illustrator and paste it into a program like Word, which has a lot of different ways to handle formatted text, Illustrator just treats text differently than other Adobe applications.

Maybe you are looking for