How to make a rectangle in a XY graph & this rectangle can be Drag and Zomm by Mouse

I have a curve display in a XY graph, that is simple.
But
   My customer want one or tree rectangle display in this graph also, these rectangle can be drag, Zoom,  such as below pic,
the problem is how to use mouse control these Rect, Drag to move, Drag corner to Zoom.  thanks a lot

Hi,
First learn how to plot your rectangles (several segments).
Then use a structure event with XYGraph => mouse down to check when user begin the drag
Use the same structure event with XYGraph => mouse move to update your graph during movement.
Best Regards
V-F

Similar Messages

  • How can I drag and move my mouse to 'scrub' away a layer

    Hi,
    I'm trying to make an interactive animation where when the user clicks and moves the mouse around an area, the opacity of that part of the layer decreases and the user gets to see the background layer. It's similar to the idea of using a brush to clean a dirty window.
    Can anyone advise on what is the best way to tackle this? Any help is much appreciated!

    Check out this post  which uses canvas:
    http://stackoverflow.com/questions/16270902/canvas-eraser-for-html5

  • I have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    i have a seagate 1tb hard drive and a 16gb memory stick, how do i transfer avi files from one to another as the click drag and drop wont work, please help?

    Greetings,
    What happens when you drag it?
    Make sure the drive you are moving the files to has enough available space to receive the file:
    Click on the movie file and go to File >  Get Info and note the "size"
    Check the drive to which you are moving the file to make sure it has enough available space: https://idisk.me.com/madisonfile-Public/web/finder-drive-available-space-and-for mat.html
    Also note the format of the drive you are copying too.  If it is not Mac OS Extended or FAT (not recommended unless you are taking it to a windows computer) then that may be the issue.
    Hope that helps.

  • Does anyone know how to set up a macbook pro so that other computers can join me and use my internet connection?

    Does anyone know how to set up a macbook pro so that other computers can join me and use my internet connection?

    Have you set up any security on the Mac Connection Sharing?
    Sorry but I don't use that so I'm not familiar with the settings.
    But if you haven't setup and security the iPhone might not mind but I know most Windows computers do not like to connect to Open WiFi. and make sure it is WPA or WPA2.
    Then again it may be a setting in the connection sharing like some type of MAC filtering or it may simply be that Mac OS X connection sharing only allows one connection at a time. Try disconnecting your phone and then connect the PC.
    As to Linc's response about Windows.
    Windows basically does care about connecting to open, unsecured, WiFi. But it will normally pop up a windows asking "Are myou sure you want to connect to this open network". And a simple click on yes will get you connected and an IP address.
    So this is clearly a Mac OS X problem.

  • How can I install and use a mouse on an iPad.

    How can I install and use a mouse on an iPad?

    This has come up a number of times over the years...you cannot use a mouse with an iOS device such as the iPad since there is no cursor to move around.  Interface has to be via the touch screen.

  • How can I drag and drop a Tidal job into another group?

    How can I drag and drop a Tidal job into another group? In Tidal Help, it says-
    In the Jobs pane, press and hold the Ctrl key and at the same time right-click and either individually select individual jobs within a job group or drag your mouse cursor over a block of jobs that you wish to select. You can only move multiple jobs between job groups if the jobs being moved are on the same level.
    Keeping the right mouse button depressed, drag the cursor to the job group that you wish to move the jobs to and release the mouse button.
    When moving jobs from one job group to another, you must decide if the moved jobs keep their original job group attributes or assume the calendar and agent characteristics of its new job group.
    A confirmation dialog, offers three inheritance options for the jobs moved to the "new" job group parent. Select one of the following options:
    However, when I attempt to follow those instructions, it doesn't work at all and there is no indication that it's even trying (i.e., I don't see the selected job following my cursor at all and all I get is the normal menu when you right click anywhere on the screen.)
    Is there another way to do this or is there a master setting that needs to be changed so that ability is enabled?
    Thanks.

    Go into edit mode for the job group group and just manually edit the section for Parent job/Group.
    Cheers

  • How can I drag and drop an icon/image into a panel??

    Dear Friends:
    How can I drag and drop an icon/image from one panel into another target panel at any position in target panel at my will??
    any good example code available??
    I search for quite a while, cannot find a very good one.
    please help
    Thanks
    Sunny

    [url http://java.sun.com/developer/JDCTechTips/2003/tt0318.html#1]DRAGGING TEXT AND IMAGES WITH SWING

  • I can't remember my security questions and have used the maximum number of tries, how do I find out what my answers are so I can log in and buy some music?

    I can't remember my security questions and have used the maximum number of tries, how do I find out what my answers are so I can log in and buy some music?

    From a Kappy  post
    The Best Alternatives for Security Questions and Rescue Mail
    1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!

    Can someone please help me with this query:
    How do you disable "FILE IN USE" pop-ups so you can actually edit and delete PDFs?!
    I continue to have a pop saying that either the file in open somewhere in the serve- which it is not- and I cannot delete a particular pdf or edit it.
    It's incredibly frustrating and in the end I end up having four files with different names because it won't let me edit the original file!!!!

    Hi Amila1,
    Are the pdfs stored on a network location?
    If so is the Preview pane turned ON?
    Please check the doc: http://kb.globalscape.com/KnowledgebaseArticle10862.aspx
    Regards,
    Rave

  • How can we restrict the type of components that can be dragged and dropped from the sidekick CQ

    how can we restrict the type of components that can be dragged and dropped from the sidekick CQ

    Generally drop the components at parasys. The components allowed on the parsys is control via the design mode of the page.So restrict components at the design of the parsys. http://dev.day.com/docs/en/cq/current/wcm/working_with_cq_wcm/using_edit_designandpreviewm odes.html#Design%20Mode

  • How do I import music using homeshare with iTunes 11...I can see the shared libraries but I can't drag and drop and there is no import button.  Thanks!

    How do I import music using homeshare with iTunes 11...I can see the shared libraries but I can't drag and drop and there is no import button.  Thanks!

    Yes, that appears how Mavericks works right now. However, you can open the Address Panel, select all your contacts, then click the To (or CC, or Bcc) buttons to move the selection to the address field.
    If it is not already in the Toolbar, right-click on the Toolbar and select Customize Toolbar…
    Then, drag the address panel up to wherever you want it.
    You may also want to add it to the New Message window in the same way.

  • How to make the values of a combination graph (bar and line) visible always

    Hi ,
    I am using jdev 11.1.1.6
    i have created a combination graph which has a bar and line.
    The data with respect to bar and graph were only visible when i keep the mouse pointer on it.
    i need to set the values visible always.
    kindly let me know how to make it.
    In pie graph its by default showing the data always.
    regards
    Siva

    Hi Sameh Nassar,
    Thanks for the input, am using the combination graph and i dont have this property added till now.
    i tried adding them manually in source but it didn't work. so I assume that this property is good with pie chart alone.
    please correct me if am wrong.
    This is my combination graph structure.
        <dvt:comboGraph id="comboGraph1"
                          value="#{bindings.testVO1.graphModel}"
                          subType="COMBINATION_VERT_ABS_2Y" shortDesc="Graph 1">
            <dvt:background>
              <dvt:specialEffects/>
            </dvt:background>
            <dvt:graphPlotArea/>
            <dvt:seriesSet markerDisplayed="true">
              <dvt:series lineWidth="0"/>
            </dvt:seriesSet>
            <dvt:o1Axis/>
            <dvt:y1Axis/>
            <dvt:y2Axis/>
            <dvt:legendArea automaticPlacement="AP_NEVER"/>
            <dvt:graphTitle text="Combination graph"/>
            <dvt:o1Title text="x axis"/>
            <dvt:y1Title text="y1 axis"/>
             <dvt:y2Title text="y2 axis"/>
          </dvt:comboGraph>
    regards
    Siva

  • How to make the new Array start at the same position as the previous and randomise only the newObjec

    So i am currently trying to make 5 boxes/ships (3Blue and 2 Green)appear  in a random position(1st-Gree,2nd- Blue,3rd-blue,4th-Green,5th-Green or in some other random way) i the upper corner of the stage.Make them move down.Then make a new 5 boxes and position them in the same starting position as the previous 5 and make only them get randomised (not with the previous 5,what it is doing at the moment).And do this while they are moving down.  so the code so far i have is this :
    import flash.events.Event;
    var shipCount:Number;
    var shipCount2:Number;
    var shipArray:Array = new Array();
    var shipArrayPosition:Array = new Array();
    var counter:int = 0
    var positionsX:Array = ["50","100","150","200","250",]
    addEventListener(Event.ENTER_FRAME, everyFrame)
    function everyFrame(ev:Event):void{
              counter++
              if(counter % 70 == 0){
                             doShips()
              positionShips()
              trace(shipArray.length )
    function doShips() {
              shipCount = 3;
              shipCount2 = 2;
              var gap = 10;
              for (var i:int = 0; i < shipCount; i++) {
                        var s = new Ship;
                        shipArray.push(s);
                        //s.x = s.width/2 + (s.width* i) + gap*i
                        //addChild(s)
                        //shipArrayPosition.push(s);
              for (var j:int = 0; j < shipCount2; j++) {
                        s = new Ship2;
                        shipArray.push(s);
              var array:Array=new Array();
              while (shipArray.length>0) {
                        var index:uint = Math.floor(Math.random() * shipArray.length);
                        array.push(shipArray[index]);
                        shipArray.splice(index,1);
              shipArray = array;
              //shipsArray has been randomized
              for (var k:int = shipArray.length - 1; k >= 0; k--) {
                        shipArray[k].x = positionsX[k]
                        addChild(shipArray[k])
    function positionShips() {
              for (var i:int = shipArray.length - 1; i >= 0; i--) {
                        shipArray[i].moveDown() //what the code in the Ship and Ship2 class does -> only: this.y += 3
    and how to make them stay at one position.Not to move in any X position when the new 5 are added

    This one is more efficient yet because it removes ships that moved out of view:
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    var numShips:int = 5;
    var shipCount:int = 3;
    var shipArray:Vector.<Sprite> = new Vector.<Sprite>();
    var counter:int = 0
    var positionsX:Array = [];
    init();
    function init():void
              // populate positions
              for (var i:int = numShips - 1; i >= 0; i--)
                        positionsX.push(50 * i);
              addEventListener(Event.ENTER_FRAME, everyFrame);
    function everyFrame(e:Event):void
              counter++
              if (counter % 70 == 0)
                        doShips();
              positionShips();
              trace(shipArray.length);
    function doShips():void
              var gap = 10;
              var s:MovieClip;
              var shipsLine:Sprite = new Sprite();
              shipsLine.cacheAsBitmap = true;
              addChild(shipsLine);
              shipArray.push(shipsLine);
              shuffle(positionsX);
              for (var i:int = numShips - 1; i >= 0; i--)
                        s = i < shipCount ? new Ship() : new Ship2();
                        s.x = positionsX[i] + gap;
                        shipsLine.addChild(s);
              shipsLine.y = -shipsLine.height;
    function shuffle(a:Array):void
              for (var i:int = a.length - 1; i >= 0; i--)
                        var r:int = Math.floor(Math.random() * (i + 1));
                        var t:Object = a[r];
                        a[r] = a[i];
                        a[i] = t;
    function positionShips():void
              for each (var shipLine:Sprite in shipArray)
                        shipLine.y += 3;
                        // remove line that moved out of stage
                        if (shipLine.y > stage.stageHeight + shipLine.height)
                                  removeChild(shipLine);
                                  shipArray.splice(shipArray.indexOf(shipLine), 1);

  • How to make sure, on success action 'Open another project' works on both ipad and desktop devices

    If I have a project with a open another project in a new window action set to a button in that project, will only placing the swf and htm files of the newly opened project within the published folder of the parent project be enough for allowing the parent project to be played successfully both in desktop and mobile devices like ipad? To allow this, I presume multiscreen.html file located within the published folder of the parent project is the file to be used. But, since swf files can't be played on mobile devices, do I need to place the multiscreen.html file located within the published folder of the newly opened project into the published folder location of the parent project? The parent project folder location already has multiscreen.html file specific to that project and if the multiscreen.html file of the newly opened project need to be added to the published folder location of the parent project(which also has multiscreen.html file), how do I go about doing this? Can I just rename the mulscreen.html file of the newly opened project to say something different like multiscreen1.html and add this file along with the swf and htm file into the published folder location of the parent project, so that it works for both desktop or mobile devices.

    From what I'm hearing, you're probably wise to have a copy of the file in both locations.  One in the same folder as the SWF, and the other in with the HTML5 files.  What I don't know is exactly where in the HTML5 folders your file would need to be.  It might need to be at the same level as the index.html.  I haven't tested this.
    You should be able to figure out the answer to a lot of your questions just by testing things out on content uploaded to a web server.  At the end of the day, if it works, it works.

  • HT2518 how do i or can i drag and drop files from one external drive to another ???HOW

    how do i drag and drop files from one external drive to another, i cannt get both drives to open up. only one at a time.. i have alot to learn i know but that is where i am at the time...

    You posted here so would assume you are also talking about running Windows.
    Are the drives NTFS and use on Windows?
    Are they Mac HFS formatted?
    You likely will need NTFS for OS X in one case. to mount PC and use under Mac OS Lion
    MacDrive to mount and WRITE to HFS drives under Windows

Maybe you are looking for

  • PROBLEM IN mrp

    Dear cons          we have one material type i.e- FERT(finished). under this material type we have 10 no. of material. we want to create only one P.R by taking this 10 no. of material. that means we will create a P.R  &  this P.R contains 10 no. of l

  • T60-2623-D​6U Screen reddish for a few seconds when activated

    In the last couple of weeks, I've noticed that my LCD is noticably reddish when first activated, returning to normal hue within 15 seconds or so.  Based on my research I assume that either the lamp or the inverter is about to go.  What I would like t

  • How can I send ipod videos on iphone through MMS

    I recently sent some videos, mp4 from itunes on my macbook to my iphone ipod.  I would like to share them with others through MMS, email or text message but can't see a send button anywhere on the video.  Is there any way to send these videos to othe

  • Is It Too Late to Create a Version Set?

    I have several photos that I edited and saved, but I did not save them as version sets.  Now I would like to convert each of them to a version set -- the edited photo on top of the original photo.  Is it too late to do that? Thanks for any suggestion

  • Mail application on OSX lion

    Hi,I always find my mail application stuck whenever I open.Every time I have to force quit it.Can any one give suggestions.