See the line between cursors on a graph

Hello

I have a graph simple intensity with two sets of sliders on it, called 1 and 2 cursor cursor.  I would like to make a distinction between the sliders so that when the user moves a cursor can see a line superimposed on the graph.  Please see the attachment where 1 cursor is green and cursor 2 is purple.  I used Paint to draw the black line on the graph that I want to add.  Thank you!

Steve

Looks like you have a graph of intensity. Easier would be e to use the overlay "draw pictures.

A simple example is shown here.

Of course, in your situation, you get the coordinates of the cursor to set the line. For example, use an event 'move cursor' to recalculate.

Tags: NI Software

Similar Questions

  • The line between two labels

    Hello world

    I wrote this little program where iam creating two label and I can drag this label and this works perfectly.
    I also try to include a line between this label. I am not getting the correct result because I see my tag, but not the line. (I know that my program is incomplete to separating it from the label, since I can't see the line with label iam not able to proceed)

    I am a newbie so my code is perhaps not too professional. Hoping to find a few tips.
    import java.awt.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import java.awt.geom.Line2D;
    
    import javax.swing.*;
    
    @SuppressWarnings("serial")
    public class test extends JFrame implements MouseListener, MouseMotionListener  {
    
    private JPanel panel = new JPanel(null);   
    private JLabel label1 = new JLabel();
    private JLabel label2 = new JLabel();
    private int mouseX = 200;
    private int mouseY = 100;
    private boolean drag = false;
    
    
    public test() {
        this.add(panel);
        panel.setBackground(Color.WHITE);
    
        panel.add(label1);
        label1.setOpaque(true);
        label1.setBackground(Color.BLUE);
        label1.setBounds(mouseX, mouseY, 100, 50);
        label1.addMouseMotionListener(this);
        label1.addMouseListener(this);
    
        panel.add(label2);
        label2.setOpaque(true);
        label2.setBackground(Color.RED);
        label2.setBounds(mouseX + 200, mouseY, 100, 50);
        label2.addMouseMotionListener(this);
        label2.addMouseListener(this);
          
    }
    
    @Override
    public void mousePressed(MouseEvent e) {
        if (e.getSource() == label1) {
            drag = true;
        }
        if (e.getSource() == label2) {
            drag = true;
        }
    }
    
    
    
    @Override
    public void mouseReleased(MouseEvent e) {
        drag = false;
    }
    
    @Override
    public void mouseDragged(MouseEvent e) {
          if (drag == true)
        {
            JComponent jc = (JComponent)e.getSource();
            jc.setLocation(jc.getX()+e.getX(), jc.getY()+e.getY());
        }
    }
    
    public void mouseMoved(MouseEvent e) {}
    public void mouseEntered(MouseEvent e) {}
    public void mouseExited(MouseEvent e) {}
    public void mouseClicked(MouseEvent e) {}
    
    public void paint(Graphics g) {
        Graphics2D g2 = (Graphics2D) g;
        Line2D lin = new Line2D.Float(100, 100, 250, 260);
        g2.draw(lin);
        super.paint(g2);
    }
    
    public static void main(String[] args) {
        test frame = new test();
        frame.setVisible(true);
        frame.setSize(600, 400);
        frame.setResizable(false);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       
       
    }
    }
    Thanks for all your time and help.

    Outside of the Netbeans IDE is also there another tool that can help in creating faster GUI swing application.
    public void paint(Graphics g) {
        super.paint(g);
        Graphics2D g2 = (Graphics2D) g;
        Line2D lin = new Line2D.Float(100, 100, 250, 260);
        g2.draw(lin);
    }
    

    Also I suggest

    public void mousePressed(MouseEvent e) {
        if (e.getSource() == label1 || e.getSource() == label2) {
            drag = true;
        }
    }
    
  • By aligning the lines between pages in InDesign CS5

    Hi all

    After many fruitless hours of Googling, I'm really, really hoping to find help here with a small matter of InDesign CS5 I'll have. I'll try and keep this brief.

    I am designing a book in InDesign CS5, which has chapters that run one after the other. Considering that in most of the books, a new chapter will start on a new page, here they flow together. For each chapter title, I use a font called: Orial, size 18. For the main text, I use Adobe Garamond Pro, size 12. When I have two solid pages of 12-point Adobe Garamond Pro, all right. The alignment of the lines on the two pages are level with one another. It's just what I want.

    However, if I have a double page and a page has a title Orial 18pt (in all the Adobe Garamond Pro 12pt), that things get mean, as you can see in the image below:

    hdkhfkdhfkhskf.jpg

    As you can see, the lines on page 79 are not leveled with those on page 78. Is there a way to get around this?

    Thanks much for any help you can offer. I'm rather tear my hair out here!

    I'm rather new to InDesign (as is clearly obvious, I know)

    In fact, it was not obvious in your first posting - it is now, but it does explain why you turn on the grid and immediately exclaim that it was exactly what you wanted.

    Skip steps a lot (making the paragraph styles, for example) but at least that, you should get started:

    1) turn on all the stuff the view so you can see what you're doing:

    View-> display-> Normal Mode

    View-> options-> the contours of the block see the

    View-> grid-> see the baseline grid

    2) turn on snap-to-base-grid on all text

    It's easy if you used paragraph styles. It's also easy if your entire book is a long story with connected text frames. If, when you use the text selection cursor, you can press Control-A (or Edit-> Select all) and select all of your text, you can simply click here:

    (3) to set the height of your desired grid (it's in the preferences)

    Now, if each image on each page is controlled by itself (not related to previous and subsequent frames), you can just replace it in the paragraph Style, under "spacing of dashes &." If your images are not linked, and you do not use a paragraph style, you need to select it all the & turn snap to grid on for each page in your document.

    So this should align each line in your doc to the grid. If this does not happen, after what happens, and we're going to understand what is happening.

  • Why SESSION 1 can see the line update?

    --- SESSION 1
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL> update test set name = 'D' where id = 1;
    1 rows updated
    SQL> 
    SQL> rem  uncommitted this transaction
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          D
    2          B
    3          C
    
    ---- SESSION 2
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL>
    SQL>
    Question:
    Why SESSION 1 can see the line update? If the transaction had not been validated. before you see the updated row, which the database to submit to win the line?
    I know that SESSION 2 can not see the update line, since it occurs compatible read.

    Lonion wrote:

    --- SESSION 1
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL> update test set name = 'D' where id = 1;
    1 rows updated
    SQL>
    SQL> rem  uncommitted this transaction
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          D
    2          B
    3          C
    
    ---- SESSION 2
    SQL>
    SQL> select * from test;
    ID         NAME
    -----     --------
    1          A
    2          B
    3          C
    SQL>
    SQL>
    

    Question:
    Why SESSION 1 can see the line update? If the transaction had not been validated. before you see the updated row, which the database to submit to win the line?

    SESSION 1 can see the data that changed since the SESSION 1 fact change.

    I know that SESSION 2 can not see the update line, since it occurs compatible read.

  • Get the lines between colors in Illustrator

    Hello

    I have a problem and I'm looking for some advice. I dropped a raster image in Illustrator (AI) and with the trace function, has turned into a vector image which looks great on my monitor. However, when I load the vector file in PDF format and then open the PDF file, I see a small, light, grey hairlines between colors.

    I do a product for a customer label. He wants a photo (JPEG) for the background. Printing wants vector images to CMYK.

    I am fairly new to HAVE and probably not using 'approved methods' although I took what I thought, is a logical step to achieve my goal.

    I took the JPEG RGB, converted into a .tiff to CMYK. I also tried to convert the JPEG in .bmp and .esp - all in CMYK mode, before moving to HAVE. I also tried putting the JPEG directly in I.

    I dropped these images in Illustrator separately and Live tracks on each. At this point, each attempt gave me excellent vector images in CMYK mode, but went wobbly when I transfer to PDF.

    Curiously, when I make a hard copy of this PDF on a Hi ground digital printer (2400 dpi), the lines do not appear. However, I am still very concerned about these lines, because I send a power off to work on offset printing. I'm sure that the printer will panic if he sees these lines and I am even more worried that these lines may appear in the print process four colors.

    A local graphics person I spoke with that suggested I'd find my solution to scout, but I fiddled a little this feature and could not solve the problem. Although I still wonder if maybe it's where I could find the solution, because when I hit Expand the blue path lines seem to match with the troublesome gray lines.

    Someone else told me to hit Expand and then turn off the Stroke. I think that I did it correctly, but there is no difference. I also didn't see any difference when I applied to the maximum value for the race. Other attempts to find a cure included deselected Resample, then re - sample with a resolution of 300.

    This is driving me crazy and I hope I can find help.

    Matt

    Here's a quick and easy way to get rid of these lines.  Place the image raster in illustrator.  Then click on copy.  Then direct route on the image use, using the preset of 8 colors.  This will give you a very simple version of the photo.  Click on expand.  Then click on paste in front to put a new copy of the raster on the top of the first image.  Use the tracing once again, but this time with a screening of high resolution.  Click on expand.  This should solve the problem.

    You see, these lines are only tiny spaces between the vector objects.  By creating two vector images in the same frame, the bottom a slightly simpler from the top edge, you can get rid of these lines.

    I hope this helps!

  • draw the line between black pixel: coordinates of the selected pixels?

    Hello

    I want to build a script that can check a Photoshop file and:

    -find the black pixel

    -for each black pixel, looking for an another black pixel at a maximum distance of 5 pixels

    -then draw a line between the two black pixels.

    I wrote this script below (my first script...), but it's VERY slow (and my final image is VERY large), I think because I test the color for each pixel in the image.

    So an alternative would be to select a black pixel with the wand, then the script record all the details of the selected pixels, then my script wil test only the pixels (less than 1% of the pixels are black in my image).

    Is this possible with JavaScript?

    Thank you for your answer!

    Marc

    function main(){
     var startRulerUnits = app.preferences.rulerUnits;
     app.preferences.rulerUnits = Units.PIXELS;
    
    
     var myHeight = app.activeDocument.height;
     var myWidth = app.activeDocument.width;
    
    
    // Find black pixel
     for(var i=5; i<myWidth; i++) {
      for(var j=5; j<myHeight; j++) {
       activeDocument.colorSamplers.removeAll()
       var sampler = activeDocument.colorSamplers.add([new UnitValue (i, 'px'), new UnitValue (j, 'px')]);
       if (sampler.color.rgb.hexValue === "000000") {
    
    
    // For each black pixel, search another black pixel below left up to 5 pixels
        for (var m=i-5; m<i; m++) {
         for (var n=j+1; n<j+5; n++) {
          activeDocument.colorSamplers.removeAll()
          var test = activeDocument.colorSamplers.add([new UnitValue (m, 'px'), new UnitValue (n, 'px')]);
          if (test.color.rgb.hexValue === "000000") {
    
    
    // Then draw a black line between the two black pixels
           var FillColour = new SolidColor;
           FillColour.rgb.hexValue = '000000';
           var ad=activeDocument;
           ad.selection.select([[m,n],[i,j],[m,n+1],[i,j+1]], SelectionType.REPLACE, 0, true);
           ad.selection.fill(FillColour);
           ad.selection.deselect()
          }
         }
    
    
    // For each black pixel, search another black pixel below right up to 5 pixels
         for (var m=i+1; m<i+5; m++) {
          for (var n=j; n<j+5; n++) {
           activeDocument.colorSamplers.removeAll()
           var test = activeDocument.colorSamplers.add([new UnitValue (m, 'px'), new UnitValue (n, 'px')]);
           if (test.color.rgb.hexValue === "000000") {
    
    
    // Then draw a black line between the two black pixels
            var FillColour = new SolidColor;
            FillColour.rgb.hexValue = '000000';
            var ad=activeDocument;
            ad.selection.select([[i,j],[m,n],[m,n+1],[i,j+1]], SelectionType.REPLACE, 0, true);
            ad.selection.fill(FillColour);
            ad.selection.deselect()
           }
          }
         }
        }
       }
      }
     }
    }
    main();
    
    

    If someone wants to do the same thing, the ImageJ software works very well on very large images (1 billion pixels) by the process according to > binary > close

  • Unable to see the lines in tableview

    I tried to add lines to my table dynamically using ObservableList , but it is not visible in the table. I tried to print the data in ObservableList which prints as expected. I even tried to initialize but not visible.

    I used the generator (1.1) of the scene and 7.4 of NetBeans.

    FX:ID is all right, I understand.

    Code snippets

    @FXML

    TableView table < person > final privacy; Nobody is a class with the string two variables firstName and lastName

    @FXML

    Private final TableColumn < person, String > firstNameColumn;

    @FXML

    Private final TableColumn < person, String > lastNameColumn;

    ObservableList < person > special finals;

    ......

    () {

    This.Persons is FXCollections.observableArrayList (new Person ("Lijo", "José"));.

    table = new TableView <>();

    firstNameColumn = new TableColumn ("first name");

    lastNameColumn = new TableColumn ("name");

    firstNameColumn.setCellValueFactory (new PropertyValueFactory < person, String >("firstName"));

    lastNameColumn.setCellValueFactory (new PropertyValueFactory < person, String >("lastName"));

    table.setItems (persons);

    Assert table.getItems () is people;

    ....

    Add Boolean = persons.add (new Person (firstNameField.getText (), lastNameField.getText ()));

    System.out.println ("Adding line..." + add);

    table.setItems (persons);

    ....

    < fx:id TableView = 'table' layoutX "26.0" = on = "14.0" prefHeight = "186,0" prefWidth = "200.00009999999747" >
    < columns >
    < TableColumn id = "firstNameColumn" prefWidth = "100.0" text = "First name" fx:id = "firstNameColumn" / >
    < TableColumn id = "lastNameColumn" prefWidth = "100.0" text = "Last Name" fx:id = "lastNameColumn" / >
    < / columns >
    < / TableView >

    Help, please!

    Thanks in advance

    Lijo Jose

    You have to put the lines

            firstNameColumn.setCellValueFactory( new PropertyValueFactory("firstName"));
            lastNameColumn.setCellValueFactory( new PropertyValueFactory("lastName"));
    

    back in.

    I think that you will need the Person class to be public for these lines work.

  • See the line number error container

    Hello

    I am new to Oracle SQL Developer, I use the version 3.0.0.4 on Windows XP 32 Bit, connected to an Oracle 11 g server.

    I have a statement of "CREATE or REPLACE VIEW FORCE" that shows me an error ("error at line 0 in command: CREATE or REPLACE...") ") when I run it directly in SQL Developer. Unfortunately the error message does not indicate in what line the error occurs (I have activated the display of line numbers).

    Can Developer SQL show me the line number that contains the error?

    Thank you!

    Developer SQL can display the line number, but for some instructions a number of line is not available. CREATE VIEW is one of them.

    Try taking the select statement of create view and it works separately. That should give better diagnoses.

  • on the timeline, I want to be able to see the line of the Red time cursor in all layers

    When I scrub the timeline, it's really useful to be able to see where the time slider is in relation to the layers, how should I do this?

    The update of the corrections after effects CC 2015 (13.5.1) is available, and it solves this problem: http://adobe.ly/1Il5JYe

  • How do I see the lines not loaded by interface errors

    Hello, I have a simple interface, I'm loading of data within the same oracle database from one scheme to another scheme.
    But I see less 3 rows.
    Can some body please advice how to see lines that are not loaded, which justified etc..

    Thank you

    Hello

    You can also see in the ODI opening model--> right click on your target--> Check--> error data store...
    It shows you the E table $ table _ for this specific data store. For each rejected row, you can see all of the columns more the reason for the rejection.

    It will be useful,

    Jerome en

  • How to see the lines of my adpater code SOP in my log files

    Hello
    I'm not able to see my SOP lines in the log files when my adapter is running. Its strange but it's true. I changed the log.properties file to debug for adapters.
    What I have to deal with any other configuration change?
    Please suggest.

    Thank you
    Kalpana.

    Name your Java Code?

    with the superior version of the jdk

    If this most recent version is supported with IOM, then no problem at all. Have you tried with the restart of the server?

  • How do I mix the light gray and dark gray so that the line between the two disappears?

    I have a picture with a line of demarcation light gray and dark gray.

    Is it possible to use a mask with a gradient to mix the two? Not a gradient on the whole picture, but only on the bottom?

    I think that's what I'm asking: how to apply a gradient to a layer mask so that it influences only the mask and not the entire photo?

    If there is a better way for me to ask the question, I would like to know the terminology.

    Thanks for your help.

    To change your picture as below;

    a: I created a new layer and use the tool degraded with forefront and background colors picked on your wall floor and to. This has created a gradient using your background color. Note the gradient does not top down but a little more the third middle.

    b. I created a layer on this new layer mask to reveal everything, but then set a black white gradient at the bottom, just so that the shadow detail would come by

    c. I made a selection of the box then on the gradient layer mask - filled that black - so that the box appeared.

    The layers panel is shown below

    Dave

  • The line between foreground and background layers

    Hi all

    I'm sure this question has been asked and answered, but no matter how I word in search engines I have just never a solution that corresponds exactly to my question, or a solution that solved my problem.

    The question that I meet is when I do a black and white photo and bring out a color by selecting color with the magic switch areas. Once I have the selected color box I have reverse and put the rest of the black and white image, or I have create a new duplicated layer and will remove the content in a single layer and possibly merge the layers of color and black and white to make my final image.

    My problem is that I always get a white space between the colors and images in black and white or layers. I tried to use the option menu edge refine, but never, this solves the problem as the feather and moving edge option do not cover the gap, they just move.

    I resorted to the use of the tool concealer to hide the row, or to merge the layers of color and black and white. The problem with that is some times it is in a very visible place and the Healing Brush tool doesn't always look great. In other words, you can tell that I merged two colors or images together.

    I also have this problem when I use the tool of selection on images I blur portions of. It seems to happen at any time, I use the toold selection and I guess that there is a standard way to avoid this.

    No known photoshop elements fighters advice or tactics would be greatly appreciated. Usually, I can understand this kind of things out, but I can't simply solve this problem.

    Thanks in advance!

    I use 11 items if this information is useful at all.

    Instead of using one of the selection tools, try to select the object with a mask. With the mask, you can hide in paint with a black brush, revealing (and correct) with a white brush. I use PSEv.8, so I have to take hostage an adjustment layer mask, but your version of the program has a buit of mask.

    Here is a picture of a brick wall for demonstration

    http://www.pixentral.com/show.php?picture=1bPkncRl9f24RslkWKdP0NyaYIt9N1

    Try this:

    • Open image file
    • Duplicate the background layer
    • Convert the background copy layer black and white
    • Apply the mask. Left click on the mask
    • Paint with a black brush where you want to reveal the color. If you go too far, correct with a white brush
  • See the line where counter is ZERO?

    I'm counting the number of entries in each UNI.
    However, I do not get a count to 0

    I would like to return to be:
    UNI     Entries
    POL     1
    GYM     3
    XXX     0
    THE ID TABLE
    CREATE TABLE DAN_GR
    (ID    VARCHAR2(8),
    UNI    VARCHAR2(8)) 
    
    INSERT INTO DAN_GR (ID,UNI) VALUES (1,'POL');
    INSERT INTO DAN_GR (ID,UNI) VALUES (2,'GYM');
    INSERT INTO DAN_GR (ID,UNI) VALUES (3,'GYM');
    INSERT INTO DAN_GR (ID,UNI) VALUES (4,'GYM');
    TABLE OF THE BANK
    CREATE TABLE DAN_BANK2
    (UNI    VARCHAR2(8)) 
    
    INSERT INTO DAN_BANK2 (UNI) VALUES ('POL');
    INSERT INTO DAN_BANK2 (UNI) VALUES ('SYM');
    INSERT INTO DAN_BANK2 (UNI) VALUES ('XXX');
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi

    It looks like a typo in in the sample data; The SYMBOL should have GYM? If so, you get your o/p desired, if not for SYM you will get 0 as count of output.

    select uni,
                (
                  select count(b.id) --count(b.id)
                    from dan_gr b
                   where b.uni = a.uni
                ) cnt
      from dan_bank2 a;
    
    UNI      CNT
    -------- ----------------------
    POL      1
    GYM      3
    XXX      0      
    
  • I would like to see the integration between the bridge and creative cloud for metadata management

    It seems to me that there should be a shipment to the creative cloud option in bridge, and the option should include filters to send or bring down metadata from your file when it sends, so you can control what metadata is in your shared folder. The workflow that I imagine is a Bridge preferences, where you can check what metadata is sent to the creative cloud, then add creative cloud to export to the right click menu or him give his own entry in right click menu. Then whenever you send anything to creative cloud, it obeys the Bridge settings regarding metadata. In this way, the bridge remains the central place to manage all your CS metadata, either on your computer or in the cloud.

    We take it is a feedback to further improve our product Adobe Bridge & CCM.

    In the meantime you can also access the demand for functionality in fillink wishform form in the link below:

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Thank you

    Florian

Maybe you are looking for

  • Patches of Toshiba Service Station closes after starting after the installation of 3

    Hello We recently have a "patch day" Toshiba Service station. I think from my memory that the patches are released earlier, but I installed them on April 23, 2010. There are three patches, and so that I can restore from the system recovery, it was: -

  • Sansa headphones anyone?

    Hallo, I am looking to buy original earphones for Sansa e200 series: http://i45.tinypic.com/2h4gnr4.jpg apparently the Sansa Express had been sold with the same set of headphones as well? http://i49.Tinypic.com/332clxf.jpg Also, what other players ha

  • Which current HP printers (Photosmart?) have removable print heads for cleaning?

    After my 6515 Photosmart suffered a premature death due to a clogged printhead black, I did a lot of research to know what to buy to replace. I looked at other brands, too, and unfortunately, there aren't has no easy answers anywhere. I feel that I a

  • Download pots API and source

    Is there a place to download the API and source of pots for the lib of RIM? I find the API behind online a lot, and it would be good to have a source JAR to work in my IDE.

  • nature of audit never fit when try to download and activate MS Office 2007

    VERIVICATION CODE FAILS WHEN TRYING TO INSTALL MS OFFICE... PRODUCT KEY STRAIGHT... VERIVICATION FAIL... HE SAID DOENST MATCH... TRY SEVERAL TIMES SINCE THEN WITH DIFFERENT CHARACTER... ALWAYS THE SAME ANSWER... "Please enter the characters exactly a