Getting BOTH start and end points of a mouse drag

I looked up the api's for MouseMotionListener and I couldn't find any way to get both the start and end coordinates of a drag. Any ideas?
Thanks in advance.

I think it'll still work, just perform two jobs in the event handler -- one to register the event to test for drag, continued by whatever you wanted to do with that capture.
I can't think of some case that it wouldn't. However there might be just special cases. Perhaps you would like to tell us what you intend to do.

Similar Messages

  • How to change both start and end dates for an business event (or any object

    Hi all.
    We are in the case to change the validity dates for several business events in training management.
    The special point is that both, start and end date, have to be changed.
    In example, business event 00000001 is valid from 2010.01.01 to 2010.01.31 and shoud be "moved" from 2010.05.01 to 2010.05.31.
    So if i run RHBEGDA0 report to change start date first, it doesn't work propperly because new start date is bigger than old enddate.
    Next thing we thought is to change end date first, using RHGRENZ1, and then change the start date, with the report RHBEGDA0. Problem with this solution is that a business event duration shoud be calculated taking care of free days (weekends and day ofs).
    Is there any better solution for this?
    Thanks in advance for your help.
    Best regards.

    Hi,
    I gueass the best solution is to use PV1A t-code.
    You can write an LSMW for this t-code if the number of business events to be maintained is huge.
    Regards,
    Dilek

  • Drawing small, short curves in Photoshop draws straight line between start and end points

    I recently installed Windows 8 Professional, Photoshop and the latest Wacom Bamboo tablet drivers and have been experiencing this issue. I've turned off windows flicks and ink. This only happens in Photoshop with the brush tool and I can't seem to find a setting that this corresponds to.
    Basically, when I draw small, short curves (particularly letters like 'c' and 'h'), when I lift up my pen, Photoshop automatically connects the end and start points together with a straight line ('c' almost becomes 'o' or 'a'). I'm not holding the shift or any modifier keys. I've tried googling this issue, but I have no idea how to phrase it properly to get any results.
    Here's an image of what I'm talking about (the top was drawn with the pencil tool, the bottom with the brush tool which demonstrates the issue. I've highlighted the start and end points with red dots):
    ANy ideas? :/

    Is caps lock on?

  • TS1702 Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a

    Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a blur.

    Do you have a question? This is a user to user help forum. Apple is not here only other users like yourself. You don't report problems to Apple here.
    By the way, it might help if you indicated where you are located.
    To complain to Apple use http://www.apple.com/feedback/ipad.html

  • Getting the start  and end dates of the week

    Hi,
    I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
    Thanks

    There is no simple way. It has to be a math calculation.
    There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
    Hope this helps to get you started.
    - Venkat Dhurjati.

  • Custom text component with different start and end points for each line

    I'm trying to create a custom component extending textArea in which each individual line in the textArea would have different start and end points.  For example, the start/end points for line 1 might be 20 pixels in the front and 35 pixels at the end but start/end points for line 2 might be 25 pixels in front and 20 pixels at the end, etc.  These boundary values would be passed in.  The width of the entire textArea component would be a fixed size.  The result would be something like this:
         Jack and Jill
              ran up the hill
      to fetch a pail of water
    depending on the boundary values of each individual line of course.  The custom component would take a string and render it in the text component with the appropriate individual line start and end points.  I'm trying to do this by adding the text component to the display with the passed in string and then adding in spaces in the beginning of each line and adding a "/n" at the end of the line wherever appropriate based on the start and end values for that line.
    Just wondering if I'm on the right track and if anyone has any advice on this.

    > Applying the marker places the same icon on all lines of the graph and I need a different one for each
    What do you have selected when you assign the marker? It
    shouldn't apply to all the markers on the whole graph unless you have all the existing markers selected when you apply the new one.
    Assigning marker designs is exactly analogous to assigning bar graph designs.
    If you have a single marker selected when you assign the new design, it will apply to only that graph data point.
    If you use the group select tool (or option-click with the direct select tool) to reclick on an already-selected marker until all the markers for the same line are selected, and then assign a design, the new design will apply only to the selected line. (You can extend the graph by adding more rows, and the new data points will inherit the marker for the line they are on.)
    The thread linked to below demonstrates in more detail how the marker designs are scaled:
    http://www.adobeforums.com/cgi-bin/webx/.3bc10970/0

  • Custom Control Help: Draw a line and output start and end points

    I'm looking to find or make a custom control (or simple subVI) that will appear as a 100x100 unit grid and allow me to draw a line from one point to another on that grid. It will then output the (x,y) of the starting and end point of that line on the grid.  Any help or ideas?
    Thanks,
    Steve
    LabVIEW 2009 SP1
    Solved!
    Go to Solution.

    What you basically want is a loop with an event structure where you process Mouse Down, Move and Up events for your controls. There are any number of ways of implementing something like this, but this one will probably be the simplest:
    Use a multicolumn listbox or a table for your grid. Hide the scrollbars and headers.
    You can use the ActiveCell property with -2,-2 to select all cells. You can then use the cell size property to set the exact size of the cell.
    Next, you put a picture control on top of the table and color its background transparent so that the table shows through. You use property node to make sure the two are aligned to exactly the same spot and size.
    You use the mouse events on the picture control to detect the clicks and moves.
    You use the table's Point to Row Column method to translate the event's position data to a cell.
    You use the picture control VIs to draw the line on the picture based on that data.
    You can even color the selected cells in the table using the table properties.
    If you want to simplify things somewhat, you can also use the timeout event instead of the Mouse Move event to draw the line, but then you'll need to keep the timeout value in a shift register and reset it to -1 (no timeout) when the Mouse Up event happens.
    I would also suggest processing Mouse Enter and Leave events to change the cursor and cancel if the user leaves in the middle of dragging.
    Try to take over the world!

  • How can I get the start and end of a date range?

    Post Author: RobR
    CA Forum: Formula
    Greetings!
    I have a report whose records are selected if a date field is within the date range returned by the LastFullWeek function.  I want the header for that report to print the first and last dates in that range.  I don't see a way to extract those dates from a date range.  How do I do it?
    Also, I think it would be nice to be able to walk through a date range using a for loop, something along the lines of the following:
    for (thisDate in LastFullWeed)(    do something;)
    but I didn't see syntax like that in the help system.  If I could do this, then I could get the first and last date.  Is this possible?
    Thank you!
    RobR

    Post Author: SKodidine
    CA Forum: Formula
    If all you want is the starting date and ending date of the function LastFullWeek, then all you have to do is this:
    minimum(LastFullWeek) & '          ' & maximum(LastFullWeek);
    On a side note, from your post: for (thisDate in LastFullWeed)  Whatcha smokin'  Willis?? 

  • Campaing Report that gives me both start and end dates

    hello topliners,
    I am looking to pull a report analysis of all the campaigns to get their start date and their end date. But all the reports only give me the start date, is there a way to get the end date to show on the report?
    Thanks

    Hi,
    I gueass the best solution is to use PV1A t-code.
    You can write an LSMW for this t-code if the number of business events to be maintained is huge.
    Regards,
    Dilek

  • Get week start and end dates

    I'm currently coding a calendar where I want to diplay all
    event for the current week.
    Can anyone tell me how to get the dates to use in the query?
    Thanks

    When I run this:
    <cfscript>
    Offset = (DayOfWeek(Now()) - 1) * -1;
    Date1 = dateadd("d", offset, now());
    Date2 = dateadd("d", 7, Date1);
    </cfscript>
    <cfdump var="#date1# and #date2#">
    I get this:
    {ts '2009-01-18 10:58:34'} and {ts '2009-01-25 10:58:34'}
    Looks like I should have only added 6 days for date2, but
    that's minor. How did you manage to get 2009-02-01?

  • Get Start and End times for each step in a job

    Can someone tell me how to get the start and end times for each step in a background job?  Table TBTCP only stores the time that the step was saved in a background job.  Table TBTCO stores the times for the entire job and not each individual step.
    Thanks.
    Ryan

    Hi,
    Please check this tables and FM perhaps they may help
    TBTCJSTEP  - Background Job Step Overview
    TBTCR          - Batch scheduler execution time
    TBTCS          - Background Processing: Time Schedule Table
    GET_JOB_RUNTIME_INFO
    Regards,
    Ferry Lianto

  • SSRS Bar Chart grouping date series into Months, setting scaler start and end ranges

    I've been trying to solve this issue for a few days now without writing a sql script to create a "blank" for all of missing data points so that I get a bar for each month.  I have date series (by day) data points grouped by two items
    that creates a set of bar charts.  EG:  one chart per product in the tablix detail grouped to site level.
    My issue is I would like the start and end of the charts to be the same for all charts and the only way I get it to work is with a chart that continues to show each date on the chart. 
    EG:
    I have the graph start and end points set and scaling by month as I would like but each bar is a day instead of aggregating to a month level.   My issue I hope to find a workaround for is if I go to Category Groups and define the grouping
    to group with a year and month function the series is no longer treated as date data and I cannot control scaling.  It works fine if all months have activity, but I can't figure out how to always have all charts start at "May 2012" in this example. 
    The only start and end point that I've been able to get to work once doing this are integer based, eg normal start would be 1 for each graph, but 1 doesn't equate to the same month from chart to chart.
    I hope SSRS can provide the solution.  I do know I can write a query that creates a ZERO value for each month/product/site but I don't want to leave the client with a query like that to support.
    -cybertosis

    Hi cybertosis,
    If I understand correctly, you want to display all month category label in the X-Axis. You have configure the Scalar Axis, however, it cannot display the requirement format.
    In your case, if we want the specific data format, we can configure Number property to set the corresponding Category data format. Please refer to the following steps:
    Right click the X-Axis, select Horizontal Axis Properties.
    Click Number in the left pane. Click Date option in the Category dialog box.
    Then, select Jan 2000 option.
    Please refer to the following screenshot below:
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Editing Loop Start and End times via automation / MIDI controllers?

    I'm trying to play a sample in EXS24 and have the Sample Start, Loop Start and End times manipulated over the course of the song. I've tried to open up the EXS sample editor, click on the numerical value of the Loop Start, and then attempt to Learn Automation. All it does is assign the knob for the instrument Volume Level. Is there any way to do this? It's basically how an Akai S612 works: http://www.vintagesynth.com/akai/s612.shtml
    I switched gears and tried it also with Battery, and there's a way to map the Start and End times in there, but it's not seeming to work as I've intended. I can't seem to make the loops move as they should and there's ways to use up to 4 loops, but not a way to target each loop's start and end points via separate controllers.
    I could use my S-612 [and probably will], but in moments where I don't have one available, I'd love to find a solution to this.
    Thanks,
    +odd

    Anyone with any thoughts? would be great to solve this.

  • How can I control the video playback start and end time?

    I'd like to be able to start a video/audio playback at a particular point in time say 3 seconds from the starts of the video and play it for only 3 seconds. How can I set the unique start and end points rather than play the whole video. I'd also like to be able to do this using the SeriesElement so I can set the start and end play points for a series of stacked videos. How can this be achieved?

    Not sure I understand the question.  Can't you just append the param to the URL?  Like so:
    var url = new URL("http://video-research/video.f4v?start_time=500");
    If your question is more about playing a subclip of a progressive video, that's not something OSMF has support for.  You'd need to write a server script which checks for that parameter and then returns the relevant portion of the requested file.  (This is typically referred to as "pseudo-streaming", if you Google that term you'll find a wealth of info.)

  • How to get start and end time of an ESB instance in SOA 10.1.3.4

    Hi All,
    I am using soa 10.1.3.4 and want to track the esb instance start and end time. (For example, in case of bpel we can query the cube instance table to get creation and modify time of an instance. )
    How to get that in esb?
    Thank you.
    Regards,
    Satish

    Hi Satish
    You may enable instance tracking option on the ESB Console and track the instances audit information and also from the logs(log.xml) when ESB loggers are set to DEBUG mode.
    Regards
    A

Maybe you are looking for

  • ADF master-detail master selection not updating detail tables properly

    Hi All, I am using JDev version : 11.1.2.0.0 I created new Fusion Web Application Module. In that module I created a master-detail data model and added them to a page fragment with a query panel. When I run it as a separate module, It works perfectly

  • Web services API call to join a user to a cost centre

    I can't find the call for this, does anyone know it please? thanks in advance. J

  • Error while booting after fresh install

    Hi, I decided to reinstall Arch on my laptop. So I first used gcdisk to make my partitions, I have 4 (/ , boot, home, var). I made sure to make a fifth partition of 2mb for bios booting with grub at the beginning of my disk. I chose jfs filesystem fo

  • My system can't detect Videocam thru firewire

    I have tried to connect my videocam to my PC thru firewire. After connect, I on my Videocam (set to video mode) but XP can't detect any new device. ??? I have tried lugging the 6 pin firewire to the back of the CPU and also onto the optional IEEE 139

  • Maximum number of service in a database?

    Somebody can tell me if there is a maximum number of service I can use in a database? Those services are create with dbms_service or "srvctl add service" or dbca. Those services are set in the database parameter SERVICE_NAME automatically by the Clus