Disable mouse-drag "floating" after adjust video effects position.

While dragging my mouse to adjust keyframe position there is a "smooth floating" effect taking place after I stop dragging. I would like to disable this as I find it very frustrating. Any ideas?

You're correct, I've been looking all over for Mouse settings and I've yet to find anything. I don't have any alternative input device connected to my PC, just a Keyboard (G15) and Mouse (Razer Naga RZ01-0028). I am currently not utilizing the Razer Synapse software, which I am downloading now to see if that helps ease any issues. Here are my current rig details:
CPU
Core i7-930 D0 @ 4.0Ghz 1.28v 
corespeed: 2.8 Ghz MHz
idle_temperature: 70C Fahrenheit
load_temperature: 38C Fahrenheit
RAM
GeIL Black Dragon 6GB 
speed: 1333
Monitor
2 x Acer 22" 
Case
Cosmos S 
Motherboard
eVGA E758-A1 3-Way SLI 
Hard Drive
Crucial 128GB RealSSD C300 
Keyboard
Logitech G15 
Mouse
Razer Naga 
GraphicsGIGABYTE GTX 460 1GB SLI 
OS
Windows 8.1 x64 
Power
650 Watt Antec NeoPOWER 

Similar Messages

  • Scroll JTable in Scrollpane with mouse drag

    Hello developers !
    I'm trying to make a scrollable Jtable. The table have to be scrollable with the mouse drag event. But I have a "flashing" Problem. I can catch the Mouse events from the table (I'm listener the mouse motion and mouse events).
    When I receive a new mouse drag event, I set the new position from the viewport. The problem is, that the Table flash:
    For example:
    I drag the mouse to the bottom of the table. The mouse "y" position have to increase, but it doesn't:
    first motion event position (10, 10)
    second motion event position (10, 15)
    third motion event position (10, 12)
    etc..
    The position of the mouse event are in relation of the component position. I think, the problem is that I change the position of the view port and than the new mouse event is "on a wrong reference".
    Could someone help me? How could I make a work around for this Problem?

    I have the solution... it is easy.
    I post the solution because i spent two days making working around (changing viewport position other scrollbar values, etc).
    You dont need to implement the Autoscroll interface. The Autoscroll interface is for Drag and Drop classes.
    The key was the function JTable#scrollRectToVisible....
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class ScrollableTableFrame extends JFrame{
      protected ScrollableTable table;
      public ScrollableTableFrame() {
        super("Scrollable Table");
        setSize(600, 300);
        String data[][] = new String[40][40];
        String header[] = new String[40];
        for(int i = 0; i < 40; i++){
          header[i] = "Header " + i;
          for(int j = 0; j < 40; j++){
            data[i][j] = "(" + i + ", " + j +")";
        ScrollableTable table = new ScrollableTable(data, header);
        table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        JScrollPane sp = new JScrollPane();
        sp.getViewport().setBackground(table.getBackground());
        sp.getViewport().add(table);
        getContentPane().add(sp, BorderLayout.CENTER);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(400, 400);
        setVisible(true);
      public static void main(String args[]){
        new ScrollableTableFrame();
    class ScrollableTable extends JTable{
      private Point firstPressedPoint;
      public ScrollableTable(Object rowData[][], Object columnNames[]){
        super(rowData, columnNames);
      protected void processMouseEvent(MouseEvent e){
        int id = e.getID();
        switch(id) {
          case MouseEvent.MOUSE_PRESSED:
            firstPressedPoint = e.getPoint();
            break;
          case MouseEvent.MOUSE_RELEASED:
            firstPressedPoint = null;
            break;
          case MouseEvent.MOUSE_CLICKED:
          case MouseEvent.MOUSE_EXITED:
          case MouseEvent.MOUSE_ENTERED:
        super.processMouseEvent(e);
      protected void processMouseMotionEvent(MouseEvent e){
        if(e.getID() == MouseEvent.MOUSE_DRAGGED){
          Rectangle r = getVisibleRect();
          Point p = e.getPoint();
          int dx = (firstPressedPoint.x-p.x);
          int dy = (firstPressedPoint.y-p.y);
          Rectangle aRect = new Rectangle(r.x + dx, r.y + dy , r.width + dx, r.height + dy);
          scrollRectToVisible(aRect);
    }P.S.: jarshe, thank you for your help !!

  • Bug: lost selection after a mouse drag

    To reproduce:
    - select many entities in a diagram
    - move them a bit via mouse drag
    what happens
    - the group loses focus. If you've been unfortunate, you've selected non-contiguous entities (via CTRL-click over) and now they are somewhere in the diagram, behind other entities, etc. and you can't move them back because you lost the group selection.
    what should happen
    - after the move, the group is still selected
    Edited by: T. on Jun 6, 2011 5:06 AM

    I have seen this too. I discovered that once they are all selected (ctrl-A) you need to be careful to then click inside one of the entities to do the drag otherwise it does get messed up. Undo fixes it sometimes. Other times I have exited without saving to get back to a previous arrangement.

  • Who is the best app for video effects ?, some one like adobe after effects ? Thank u for ur help.

    Who is the best app for video effects ? Some one like adobe after effects ?

    Tweakers Page - What video card to use?

  • FCP X crashes after I look at my video effect plugins

    I recently downloaded some video effect plguins for final cut pro x. After I download them I opened up FCP x. When I looked at my new plugins, it glitched and went red (the plugin showed blank red), my FCP crashed and will crash whenever I look at the new video effect. How canm i fix this?
    Thanks

    would that delete my projects? I want to save my projects. There all on my mac hardrive. If I trash preferences will that delete my videos?

  • Mouse Dragging Function Disable Help plz!

    Anyone know how to disable the Dragging functions of the Mouse? I am attempting to Play World of Warcraft and it extremly difficult to move my Charcter around with the mouse dragging function on .....Please HELP
    Also I am using a Gamer Mouse not a Apple mouse . I cant be the only one who finds this annoying lolz

    Not sure, but you might want to take a look at SteerMouse which lets you configure your mouse in various ways.
    Other possibilities:
    ControllerMate
    USB Overdrive

  • Photo booth video effects not recording after upgrade to Lion

    I recently upgraded from s.leopard to Lion. Photobooth is working perfectly with the leopard until upgraded to lion, the video effects could not be used and recorded. It only appears in 1 sec when video recording.
    I have done the following already according to the forums I read.
    1. the 32 bit mode is not ticked.
    2. disk utility permissions.
    and still not working. Any advise? Thanks

    The same Lion-problem here. Everything looks just fine until I press record. Then the effect dissappears. I bought my 28" "BigMac" in february this year, and as the problem is mentioned about a year ago, it might be a major problem since no solution is mentioned anywhere.
    So, if you guys see or hear (or smell) anything in the direction of a solution, drop a note.

  • Is there a way to disable mouse acceleration in OSX Yosemite?

    i have used my dads iMac and MBP in the past and always noticed how bad the mouse response was in my opinion. Mind you, some people like the way the mouse responds in OSX and will probably have no idea what my issue is. That is mouse acceleration and the lack of option to disable it in the mouse settings panel. Here is a good explanation about what it is, also in the video is a visual example.
    "Mouse or cursor acceleration, to put it simply, makes the travel distance of your cursor on the screen reliant of the velocity of your physical mouse movement rather than just the distance that you move your mouse. So making one movement of the same distance at two different speeds will cause two different relative cursor movements, with quick movement causing the cursor to travel a greater distance."
    source:
    https://www.youtube.com/watch?v=16diwK6HWbI
    So the thing i want to accomplish, is making the physical mouse movement one-to-one with the cursor speed on the screen. As an example: moving my mouse 10 cm would always make my mouse on the screen go 1000 pixels, no matter how fast i move my mouse.
    I've had my mouse set up like that in windows and linux for quite some time now and i hope there is an easy way to set the mouse response like that in OSX as well.
    I want to make clear that this isn't just an issue in games where you want to have great mouse precision. I have become really accustomed to this way of mouse response in any type of application. So the problem lies not in any mouse settings of any game/program. The problem lies in how OSX translates physical mouse movement to cursor movement.
    Anyway, i ran into this issue about a year ago when i was using my dad's computer. i've had my own windows computer for some time now. An option to disable mouse acceleration in OSX Yosemite might have been implemented properly in the mean time. I have searched this community and found some old posts of people who had this same problem as me, but never read about any fix for it. The main reason i am asking this is because i am considering buying a Macbook.
    I'd rather not use any third party software, but if there is any out that that just works and is easy to use, let me know.

    Please don't be obnoxious to people like tbirdvet trying to help; nobody here owes you an answer, or anything else for that matter.
    Anyway, Yosemite seems to enable mouse acceleration by default. You can disable it to get a constant pixels pointer moves / meters mouse moved ratio by typing this in terminal:
         defaults write .GlobalPreferences com.apple.mouse.scaling -1
    you'll need to logout and log back in for changes to take effect. To restore the standard behaviour:
         defaults write .GlobalPreferences com.apple.mouse.scaling 2
    should do the trick.
    C.

  • Unusable video effects in fcpx

    fcpx 10.0.9, mac osx 10.8.5
    video effects do not respond when scrolling over them (after having selected a clip), or turn black or pink. no preview available.
    when moving them on top of a clip, they cannot be adjusted.
    not all effects have this problem. only the Looks effects.
    all settings of these effects are also set automatically to min. or max. when putting them on top of a clip.
    I have reïnstalled FCPX, Motion and Compressor, without result.
    It is also not possible to render or export/share the video directly within fxpx or compressor. Compressor scips all color corretion.
    I have to make an 10bit uncompressed file first, then import in compressor. Then it works...
    I cannot switch to fcpx 10.1, because ProTools is not working with Mavericks yet...
    anyone experienced this before?
    thanks

    done that. didn't help.
    just red something about a sony xdcam plugin.
    deleted that also.
    didn't work...

  • Unable to wake screen using magic mouse or trackpad after installing magic mouse

    Dear Everyone,
    I am using mbp 15 inch early 2011 with 2 GHZ intel i7 processor and a  4gb ram. I would like to tell you that i have installed the mac os x lion and quite happy with the improvement. however, there are same changes which i am not sure whether it is that my mac that causeing theproblem or the bug from the lion itself. i am unable to wake my mbp screen using my magic mouse or trackpad after installing lion. i believe that my mbp has not really enter sleep mode as i dont see the sleep indicator at the bottom right corner flickering. i also believe that it is only the screen that goes to sleep while the hard disk is not. Normally a single swing  of the magic mouse or a single swipe of the trackpad will normally wake the screen. in order to wake the screen now is only to click on the magic mouse or trackpad. furthermore, scrolliing page using magic mouse also become unusual after installing the lion. does any of u happen to come across these problems as well? Is there any other way to downgrade to snow leopard back? (i ask this in case that this issue really cannot be fixed). Please help me on this issue. Thank you very much for taking your time to read and reply this thread.
    Moonbasher (henry)

    First, Lion does not wake on mouse or trackpad movement, only clicks or keyboard presses.  This is presumably to avoid waking the computer from display or full sleep accidentally, and is just how Lion works.  It's going to take some getting used to, personally, but I've noticed my mac hasn't woken up on it's own.  Apparently moving about my apartment moves the mouse enough that Snow Leopard used to wake the iMac.  This is not a glitch, and unfortunately, a downgrade is a complicated matter, involving erasing the HD entirely, and restoring from a backup created in Snow Leopard and not used with Lion at all, or manually importing important bits of data, as libraries upgraded by new versions of Mail, iCal, etc will not be compatible with the old versions.
    In terms of your mouse scrolling, describe it in a bit more detail; Lion introduces "natural" scrolling, where instead of the mouse wheel moving the "window" over the contents, it moves the contents through the window, like scrolling on an iPhone or iPad.  In other words, think of your finger on the mouse as pressing on the page you're looking at and dragging it upward through the field of view.  I remember long ago thinking my very first scrolling mouse was backwards, and then adjusting to "down is down, up is up".  If this is the behavior you're experiencing, this also is the way Lion works.  This, however, can be changed in the mouse or trackpad preference pane in system preferences.  Simply deselect "natural" scrolling.
    In a more general sense, its usually not a good idea to do a major software upgrade on your primary machine unless you're willing to deal with some zero-day glitches.  It sounds like the issues you're having aren't actually glitches, and you should be happy for that, but in the future, you might want to wait a few weeks for other users with more experience with major OS launches to find those bugs and point them out to the community for Apple to fix.  In terms of an OS launch, I think this has been absolutely one of the best.  I'm seeing very few major glitches resulting in lost data, few things that would really destroy my personal workflows, and compatiblity issues with other products seems to be well documented or negligible.  It's also a bit hasty to assume that mere hours after launch Apple would have any ability to fix ACTUAL problems with the OS.  My recommendation would be to get used to the change; having to click the mouse at least means you'll never accidentally wake your machine bumping against your desk.

  • Cannot drop pictures into video effects window (not the usual problem)

    Hi there,
    I cannot drop jpgs into the video effects window. I checked http://discussions.apple.com/thread.jspa?messageID=5700460&#5700460 and http://discussions.apple.com/thread.jspa?messageID=7384222&#7384222 and they got me going, but my issue is slightly different.
    The plus sign appears when I click and drag the picture out of finder and into one of the open windows in video effects user backdrop window. When I release the mouse button, nothing is dragged to the location. I have tried different picture locations, moved them to the desktop first, and different picture locations, but no luck.
    Any ideas? I’ll run disk perms in the meantime in case it is something goofy, but if anyone has any ideas I’d be grateful. Just got my first Mac two days ago and love it so far

    Hi,
    Did the Pic file come from another computer ?
    Manually navigate to the Pic.
    Highlight it and do a "Get Info" (Apple Key and I together)
    DO you Own it and have Read and Write Access (near the bottom when you expand the various tabs).
    Make sure you are the Owner and have Read and Write access.
    9:03 PM Monday; December 8, 2008

  • Mouse Drag in JDialog produces Mouse Enter & Mouse Exit events in JFrame.

    Hi, all.
    Do I have a misconception here? When I drag the mouse in a modal JDialog, mouseEntered and mouseExited events are being delivered to JComponents in the parent JFrame that currently happens to be beneath that JDialog. I would not have expected any events to be delivered to any component not in the modal JDialog while that JDialog is displayed.
    I submitted this as a bug many months ago, and have heard nothing back from Sun, nor can I find anything similar to this in BugTraq.
    Here is sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * This class demonstrates what I believe are TWO bugs in Mouse Event handling in Swing
    * 1.1.3_1, 1.1.3_2, 1.1.3_3, and 1.4.0.
    * 1) When a MODAL JDialog is being displayed, and the cursor is DRAGGED from the JDialog
    *    into and across the parent JFrame, Mouse Enter and Mouse Exit events are given to
    *    the parent JFrame and/or it's child components.  It is my belief that NO such events
    *    should be delivered, that modal dialogs should prevent ANY user interaction with any
    *    component NOT in the JDialog.  Am I crazy?
    *    You can reproduce this simply by running the main() method, then dragging the cursor
    *    from the JDialog into and across the JFrame.
    * 2) When a MODAL JDialog is being displayed, and the cursor is DRAGGED across the JDialog,
    *    Mouse Enter and Mouse Exit events are given to the parent JFrame and/or it's child
    *    components.  This is in addition to the problem described above.
    *    You can reproduce this by dismissing the initial JDialog displayed when the main()
    *    method starts up, clicking on the "Perform Action" button in the JFrame, then dragging
    *    the cursor around the displayed JDialog.
    * The Mouse Enter and Mouse Exit events are reported via System.err.
    public class DragTest
        extends JFrame
        public static void main(final String[] p_args)
            new DragTest();
        public DragTest()
            super("JFrame");
            WindowListener l_windowListener = new WindowAdapter() {
                public void windowClosing(final WindowEvent p_evt)
                    DragTest.this.dispose();
                public void windowClosed(final WindowEvent p_evt)
                    System.exit(0);
            MouseListener l_mouseListener = new MouseAdapter() {
                public void mouseEntered(final MouseEvent p_evt)
                    System.err.println(">>> Mouse Entered: " + ((Component)p_evt.getSource()).getName() );
                public void mouseExited(final MouseEvent p_evt)
                    System.err.println(">>> Mouse Exited: " + ((Component)p_evt.getSource()).getName() );
            JPanel l_panel1 = new JPanel();
            l_panel1.setLayout( new BorderLayout(50,50) );
            l_panel1.setName("JFrame Panel");
            l_panel1.addMouseListener(l_mouseListener);
            JButton l_button = null;
            l_button = new JButton("JFrame North Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.NORTH);
            l_button = new JButton("JFrame South Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.SOUTH);
            l_button = new JButton("JFrame East Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.EAST);
            l_button = new JButton("JFrame West Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.WEST);
            l_button = new JButton("JFrame Center Button");
            l_button.setName(l_button.getText());
            l_button.addMouseListener(l_mouseListener);
            l_panel1.add(l_button, BorderLayout.CENTER);
            JButton l_actionButton = l_button;
            Container l_contentPane = this.getContentPane();
            l_contentPane.setLayout( new BorderLayout() );
            l_contentPane.add(l_panel1, BorderLayout.NORTH);
            JPanel l_panel2 = new JPanel();
            l_panel2.setName("JDialog Panel");
            l_panel2.addMouseListener(l_mouseListener);
            l_panel2.setLayout( new BorderLayout(50,50) );
            l_panel2.add( new JButton("JDialog North Button"),  BorderLayout.NORTH  );
            l_panel2.add( new JButton("JDialog South Button"),  BorderLayout.SOUTH  );
            l_panel2.add( new JButton("JDialog East Button"),   BorderLayout.EAST   );
            l_panel2.add( new JButton("JDialog West Button"),   BorderLayout.WEST   );
            l_panel2.add( new JButton("JDialog Center Button"), BorderLayout.CENTER );
            final JDialog l_dialog = new JDialog(this, "JDialog", true);
            WindowListener l_windowListener2 = new WindowAdapter() {
                public void windowClosing(WindowEvent p_evt)
                    l_dialog.dispose();
            l_dialog.addWindowListener(l_windowListener2);
            l_dialog.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
            l_dialog.getContentPane().add(l_panel2, BorderLayout.CENTER);
            l_dialog.pack();
            Action l_action = new AbstractAction() {
                { putValue(Action.NAME, "Perform Action (open dialog)"); }
                public void actionPerformed(final ActionEvent p_evt)
                    l_dialog.setVisible(true);
            l_actionButton.setAction(l_action);
            this.addWindowListener(l_windowListener);
            this.pack();
            this.setLocation(100,100);
            this.setVisible(true);
            l_dialog.setVisible(true);
    }(Too bad blank lines are stripped, eh?)
    Thanks in advance for any insights you may be able to provide.
    ---Mark

    I guess we can think of this as one problem. When mouse dragged, JFrame also (Parent) receives events. If i understood correctly, what happens here is, Modal dialog creates its own event pump and Frame will be having its own. See the source code of Dialog's show() method. It uses an interface called Conditional to determine whether to block the events or yield it to parent pump.
    Here is the Conditional code and show method code from java.awt.dialog for reference
    package java.awt;
    * Conditional is used by the EventDispatchThread's message pumps to
    * determine if a given pump should continue to run, or should instead exit
    * and yield control to the parent pump.
    * @version 1.3 02/02/00
    * @author David Mendenhall
    interface Conditional {
        boolean evaluate();
    /////show method
        public void show() {
            if (!isModal()) {
                conditionalShow();
            } else {
                // Set this variable before calling conditionalShow(). That
                // way, if the Dialog is hidden right after being shown, we
                // won't mistakenly block this thread.
                keepBlocking = true;
                if (conditionalShow()) {
                    // We have two mechanisms for blocking: 1. If we're on the
                    // EventDispatchThread, start a new event pump. 2. If we're
                    // on any other thread, call wait() on the treelock.
                    if (Toolkit.getEventQueue().isDispatchThread()) {
                        EventDispatchThread dispatchThread =
                            (EventDispatchThread)Thread.currentThread();
                           * pump events, filter out input events for
                           * component not belong to our modal dialog.
                           * we already disabled other components in native code
                           * but because the event is posted from a different
                           * thread so it's possible that there are some events
                           * for other component already posted in the queue
                           * before we decide do modal show. 
                        dispatchThread.pumpEventsForHierarchy(new Conditional() {
                            public boolean evaluate() {
                                return keepBlocking && windowClosingException == null;
                        }, this);
                    } else {
                        synchronized (getTreeLock()) {
                            while (keepBlocking && windowClosingException == null) {
                                try {
                                    getTreeLock().wait();
                                } catch (InterruptedException e) {
                                    break;
                    if (windowClosingException != null) {
                        windowClosingException.fillInStackTrace();
                        throw windowClosingException;
        }I didn't get exactly what is happening but this may help to think further

  • It is possible to adjust videos on Aperture?

    I have imported some videos on Aperture. I can not aply any adjustments. The message is Audio/Video (adjustment disabled) clicking "P" the message change in "quick preview on (adjustments disabled)". My question is: it is possible to adjust videos on Aperture

    There is not much what you can do with videos in Aperture. You can trim them, when you press the gear icon in the video controls, and if you add them to a slideshow you can add black-and-white effects. But other than that, you will have to fall back on an external video editor.
    I use iMovie to do basic preprocessing, since iMovie comes free with any new Mac, and has nice features like  stabilization, blue screen, picture in picture, or use or QuickTime 7 Pro for all effects, that QuickTime supports directly.

  • Mouse dragged event with unexpected coordinates

    I am dragging the mouse on a half circle from the middle left to the top middle. This results in mouse events with the coordinates form (10,90) ->(100,10)
    Letting the mouse go and then dragging it further to the left, the coordinates in the of the event are similar than the starting point of the first mouse drag event.
    Can anyone shed some light on this peculiar behavior?

    First of, I have to apologize for the example not being as minimalistic as it might be, but on the plus side, I know now why this happens, I just don't know how to work around it.
    * To change this license header, choose License Headers in Project Properties.
    * To change this template file, choose Tools | Templates
    * and open the template in the editor.
    package javafxtest;
    import java.util.ArrayList;
    import javafx.application.Application;
    import javafx.beans.property.DoubleProperty;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Dimension2D;
    import javafx.geometry.Point2D;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.Polygon;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.shape.Shape;
    import javafx.scene.transform.Rotate;
    import javafx.stage.Stage;
    * @author andi
    public class HandleRotation extends Application {
        private DoubleProperty currentRotation;
        private ArrayList<Double> angles;
        @Override
        public void start(Stage primaryStage) {
            currentRotation = new SimpleDoubleProperty(this, "currentRotation", 10);
            SteeringWheelGroup background = new SteeringWheelGroup(200);
            background.setManaged(false);
            Group g = new Group(background);
            final Point2D centerPoint = new Point2D(100, 100);
            angles = new ArrayList<>(3);
            angles.add(190.0);
            angles.add(270.0);
            angles.add(350.0);
            double step = (180.0 - 2 * currentRotation.doubleValue()) / (angles.size() - 1);
            int radius = 100;
            final int yTranslation = 15; // might be due to the labels
            Polygon handle = createHandle(centerPoint, radius, yTranslation);
            g.getChildren().add(handle);
            StackPane root = new StackPane();
            Scene scene = new Scene(g, 300, 250);
            primaryStage.setTitle("Handle Rotation!");
            primaryStage.setScene(scene);
            primaryStage.show();
         * Calculate the base point for the label. This is the point on the arc, matching the angle.
         * @param center point of the circle
         * @param radius radius of the circle
         * @param angle in degree in [0,180]
         * @return Point on the circle
        Point2D calculateBasePoint(Point2D center, double radius,
                double angle) {
            float newX = (float) (center.getX() + radius * Math.cos(Math.toRadians(angle)));
            float newY = (float) (center.getY() + radius * Math.sin(Math.toRadians(angle)));
            return new Point2D(newX, newY);
         * Create the polygon that represents the handle
         * @param centerPoint
         * @param radius
         * @return
        private Polygon createHandle(final Point2D centerPoint, int radius, final int yTranslation) {
            double baseAngle = 180;
            Point2D p1 = calculateBasePoint(centerPoint, radius, baseAngle - 5);
            Point2D p2 = calculateBasePoint(centerPoint, radius, baseAngle + 2);
            Point2D p3 = calculateBasePoint(centerPoint, radius*0.65, baseAngle + 2);
            Point2D p4 = calculateBasePoint(centerPoint, radius*0.65, baseAngle - 7);
            double[] points = {p1.getX(), p1.getY(), p2.getX(), p2.getY(), p3.getX(), p3.getY(), p4.getX(), p4.getY()};
                      Polygon polygon = new Polygon(points);
    //        polygon.setOpacity(0);
            polygon.setTranslateY(-yTranslation);
            final Rotate rotationTransform = new Rotate(currentRotation.doubleValue(), centerPoint.getX(), centerPoint.getY());
            polygon.getTransforms().add(rotationTransform);
            polygon.setOnMouseDragged(new EventHandler<MouseEvent>() {
                @Override
                public void handle(MouseEvent event) {
                    if (event.getY() < centerPoint.getY()) {
    System.out.println("Event: "+event);                   
                                                       Point2D point = new Point2D((float)event.getX(), (float)event.getY());
                        double newAngle = angleBetween2Lines(centerPoint, point);
                        if (newAngle < 0) {
                            newAngle = (90 + newAngle)+ 90;
    System.out.println("Set angle on mouse drag: "+newAngle);
                        if (newAngle < 10) {
                            newAngle = 10;
                        if (newAngle > 170) {
                            newAngle = 170;
                        currentRotation.set(newAngle);
            polygon.setOnMouseReleased(new EventHandler<MouseEvent>() {
                @Override
                public void handle(MouseEvent event) {
                    snapToNearestAngle();
                    rotationTransform.setAngle(currentRotation.doubleValue());
            return polygon;
         * Snap to the correct angle. Correct angle is angle belonging to the nearest label.
        void snapToNearestAngle() {
            double currentAngle = currentRotation.doubleValue() + 180;
            double currentMin = 360;
            int minIndex = 0;
    System.out.println("Current rotation is "+currentAngle);
            for (int i = 0; i < angles.size(); i++) {
                double angle = angles.get(i);
                double diff = Math.abs(angle - currentAngle);
                if (diff < currentMin) {
                    currentMin = diff;
                    minIndex = i;
    System.out.println("new minDifference at "+i+": "+diff);
            Double destinationAngle = angles.get(minIndex);
    System.out.println("DestinationAngle is "+currentAngle+" -> "+(destinationAngle - 180));
            if (destinationAngle < 180 + 10 || destinationAngle > 360 - 10) {
                throw new IllegalStateException("Angle is out of range: "+currentRotation.doubleValue()+" -> "+destinationAngle);
            currentRotation.set(destinationAngle - 180);
         * Calculate the angle between the vector horizontally to the left from the center
         * and the current point.
         * @param center point
         * @param point current point
         * @return angle in degree
        double angleBetween2Lines(Point2D center, Point2D point) {
            double slope2 = calculateSlope(center, point);
            double angle = Math.atan(slope2);
            if (point.getX() > center.getX()) {
                angle += Math.PI/2;
    System.out.println("Slope: "+slope2+" angle "+Math.toDegrees(angle));
            return Math.abs(Math.toDegrees(angle));
         * Caluculate the slope of the line defined by two points.
         * The first point is the center of a circle and the second
         * point roughly lies on the circle.
         * @param center point
         * @param point on the circle
         * @return slope of the connecting line.
        double calculateSlope(Point2D center, Point2D point) {
    System.out.println("center="+center+",point="+point);       
            double absSlope = Math.abs((point.getY() - center.getY()) / (point.getX() - center.getX()));
            if (point.getY() > center.getY()) {
                if (point.getX() > center.getX()) {
                    // bottom right
                    return -absSlope;
                } else {
                    // bottom left
                    return absSlope;
            } else {
                if (point.getX() > center.getX()) {
                    // top right
                    return absSlope;
                } else {
                    // top left
                    return -absSlope;
         * The main() method is ignored in correctly deployed JavaFX application.
         * main() serves only as fallback in case the application can not be
         * launched through deployment artifacts, e.g., in IDEs with limited FX
         * support. NetBeans ignores main().
         * @param args the command line arguments
        public static void main(String[] args) {
            launch(args);
       private class SteeringWheelGroup extends Group {
            public SteeringWheelGroup(int destinationWidth) {
                int topPadding = 0;
                Rectangle rect = new Rectangle(getImageWidth(), getImageWidth(), Color.RED);
                double scale = destinationWidth / rect.getWidth();
                rect.setScaleX(scale);
                rect.setScaleY(scale);
                Circle circle = new Circle(getImageWidth()/2, getImageWidth()/2, getImageWidth()/2, Color.BLUE);
                circle.setScaleX(scale);
                circle.setScaleY(scale);
                Group rotationGroup = new Group(/*rect,*/ circle);
                rotationGroup.setManaged(false);
                int width = getImageWidth();
                Rectangle clipRectangle = new Rectangle(0, 0, width, width / 2);
                Circle clipCircle = new Circle(width / 2, width / 2, width / 2);
                Shape clip = Shape.intersect(clipRectangle, clipCircle);
                rotationGroup.setClip(clip);
                this.getChildren().add(rotationGroup);
                //double h = calculateHeigthOverHorizon(angle, destinationWidth/2);
                //setTranslateY(-h+topPadding);
            public final int getImageWidth() {
                return 479;
    Here is how you can reproduce my effect:
    Grab the black handle
    Drag the mouse top and right until you approach the angle -90 (have an eye out on the console log)
    Let the mouse go: the handle will snap to 90 degree
    Grab the handle a second time and move further right
    You will see that the angle printed out do not match what you expect.
    Let the mouse go, the Handle snaps back to it's original position
    As the rotation does not happen around the polygon's center, I have to use a Rotaion effect, which is applied. While I can drag the shape from the rotated location the dragging is always measured from its base position.
    So what can I do to work around this?
    final Rotate rotationTransform = new Rotate(currentRotation.doubleValue(), centerPoint.getX(), centerPoint.getY());
    polygon.getTransforms().add(rotationTransform);
    If worse comes to worst, I can use a circular handle covering everything, then I can rotate around its center, but I would like to avoid this.

  • Video effects cause flickering in rendered output video

    I'm working on a few videos for my company right now and I'm having problems with my final exports. After editing the video to my liking I apply a few video effects like the shadow/highlight tool and some color correction. The only problem is, when I export the video I see a lot of flickering. Its like the effect is changing settings during play back. Ive tried changing the "temporal smoothing" settings, but aside from increased render times It seems to have little effect.
    The video was originally shot in HDV at 1080i. The output settings I've been using are Quicktime>mpeg-4>progressive scan.
    Please help me figure out this problem.

    Stefan,
    I hardly ever disagree with Dan, but find Shadow & Highlight a useful tool, depending on the footage. However, if one leaves it in Auto mode, you WILL get flickering at every lighting change. I have never found a reason to use Auto, and will use the Razor Tool to separate my "Clips," then apply S&H but with manual settings, for each.
    It's like S&H in PS. I always just dupe a Layer, apply, and then adjust the Opacity of these two Layers, since H&S cannot be applied as an Adjustment Layer, because of the way it works.
    It is a great Effect, but one must be very careful with it and be ready to make manual adjustments on a scene-by-scene basis.
    Matter of fact, unless one has an entire Clip of a talking head, in the same exact lighting conditions (and I mean 100% same), no "Auto" function works well. Maybe one day I'll find one and eat a few words, but I don't think so.
    Study your footage, use the Razor and apply H&S with only manual settings - judge them critically.
    @ Craig,
    I agree that Levels (non-Auto) is very useful. It would be better, if Premiere had Curves, like PS, but it doesn't. H&S is rather like Levels, but with A-B masks applied, based on the image's H&S levels. On footage that I have not created, Levels is my first stop, and I set these manually. Often, PP's H&S is my #2, also on manual. If all is not "right," I'll move on to the two main color correctors and adjust the fine points. Levels will do a lot, but falls short of Curves, which PP doesn't have. H&S, used wisely, can get one close.
    Now, all that said, lighting the scene is the best "cure," but some of us do not have that leisure - we have to work with client's footage and some of it is bleak indeed.
    Good luck,
    Hunt

Maybe you are looking for

  • What word processor also corrects grammar? I purchased Pages only to find out that it doesn't!

    Can someone recommend a word processor that corrects grammar as well as spelling? Pages was recommended to me in my local Apple store but it doesn't help with grammar. Note: Don't believe everything you are told!

  • 9.3.1 to ????

    All, At present on 9.3.1 with EPMA As Corporate is moving to IE8, I have to upgrade to Mixed Release(9.3.3 all products except SharedService/EPMA/WorkSpace to 11.1.1.3) or all products to 11.1.1.3 (11.1.1.3 IE8 included all the products we use) Which

  • Repository Reports (Designer 10.1.2.5) on Windows 7

    I've been running Designer for years with much satisfaction. About 9 months ago I upgraded to Windows 7 and can no longer run any Repository Reports. I am running Designer Version 10.1.2.5 with Configuration 4.0.12.101.0 running on Oracle Database 10

  • Start itune is very slowly

    I update my itune then it does not work well. I want to start it which response very very long time. I uninstalled the itune and download it again in 18/9/2012. Installing is finish. it still respones slowly when i want to start it. my OS is windows

  • 2 rows in single field

    Hi all, in one field called address in that i need to display house no.in one row and street and city in another row. for example                                                    addressfield 102070140   sunflower         G-14 Gems&jewellery comple