Zoom In Timeline while Dragging

I've been having the problem where the timeline zooms in when I try to drag clips and came across this solution:
http://forums.adobe.com/message/5099556#5099556
In step 4 it says to replace the contents from the frameworks file with the new HandlerTimeline file, but when I try, I can't drag the contents into the frameworks folder (it just has a grey crossed out circle). I'm either making an obvious mistake or the instructions are really vague but either way I don't know how to fix the problem... any help would be appreciated!

SG
This is a known issue that has been reported elsewhere by another Premiere Elements 11 Mac user at another forum. At that other forum I found that link that Ryan is posting. There was a lot of hope at that point. But that other user could not get those link instructions to work for him. I suspect that this other user is back with Premiere Elements 10 Mac at this time.
I realize that this is a User to User Forum here at Adobe, but just maybe one of the Adobe Team might pick up on this and clarify the published suggested fix so that these Mac users can move forward with Premiere Elements 11 Mac?? If not, I would encourage the users with this issue to go direct to Adobe for clarification for theselves and others.
Unfortunately I do not have Premiere Elements Mac (any version). Otherwise I would do some first hand testing.
ATR

Similar Messages

  • The Expert view timeline sometimes zooms in when I drag a clip

    The Expert view timeline sometimes zooms in when I drag a clip from Finder or the Project Assets panel to the Expert view timeline. The Expert view timeline zoom also zoom in if I drag the clip handles to trim a clip.
    This behavior is working with Adobe Premiere Elements 10 on my MacBook Pro with retina display. I have found a fix for Adobe Premiere Elements 11 but not one for Adobe Premiere Elements 10.
    I hope you have a fix for my problem.

    mat96th
    About a year ago I worked with a Premiere Elements 10 Mac user at a forum that I no longer visit. Same Timeline zoom issue. We tried several approaches including the one that works for Premiere Elements 11 Mac. Unfortunately, nothing worked to correct the problem in version 10 Mac. The user eventually went on to Premiere Elements 11 or 12 Mac.
    But, just in case, have you checked the program's preferences for one that might be applicable to your particular situation. Unlikely fix, but worth a look.
    ATR

  • Lags while dragging clips in timeline?

    I just started using premeire cs6 recently.  Making the switch from Final Cut.
    I noticed that when I grab a clip in the timeline and drag it to a new location, it has a lag.  The clip is choppy and always dragging about a half a second behind my mouse pointer which moves in real time.  In final cut, I never experienced any lag whatsoever which dragging clips around the timeline.  Is this normal in Premiere?  If not, any ideas on how to fix this?
    I'm running an 8-core Mac Pro that doesn't typically run into performance issues... especially over something seemingly simple such as this.
    Please help.  Thanks.

    I'm having the same problem but on windows. When I drag clips from the media browser that are located on my raid or p2 cards it takes a longer then what it seems it should be for them to appear on the timeline. The mouse curser doesn't change for me so it just looks like you didn't grab the clips but a few seconds after they lag then poof show up.

  • Zooming in/out while selecting parts of the audio file?

    The company I am with use Cool Edit 2000 for our audio editing, in Cool Edit it allows you to click and drag to select parts of files while you are doing this you can use the mouse wheel to zoom in and out. This helps for when you need to zoom in at the beginning of the sound and drag to the beginning of the file to delete any unwanted sound or lack of sound, zooming out while doing this allows you to do it very quickly.
    I have tried the trial version of Adobe Audition 3 and I was not able to do this.
    My questions are:
    1. Was this feature removed?
    2. If not how do I enable this feature.
    This feature will determine weather or not my company will purchase this software. Thanks for the time to answer my questions.

    zooming isn't a problem its zooming out while dragging over the file to select it, basically what I am doing is zooming into the beginning or end of a file selecting the precise beginning or ending holding the left mouse button and dragging left or right while I am doing this I am zooming out to make it select what I need faster and deleting those areas away.
    I just read about the top/tails view, I am going to check it out see if this helps.

  • Error while dragging the table

    Hi Folks,
    I am getting the following error while dragging the model table on to the diagram tab(creating an interface).
    Any Ideas??????
    java.lang.NullPointerException
         at oracle.odi.interfaces.interactive.support.clauseimporters.ClauseImporterDefault.importClauses(ClauseImporterDefault.java:87)
         at oracle.odi.interfaces.interactive.support.actions.InterfaceActionAddSourceDataStore.performAction(InterfaceActionAddSourceDataStore.java:124)
         at oracle.odi.interfaces.interactive.support.InteractiveInterfaceHelperWithActions.performAction(InteractiveInterfaceHelperWithActions.java:845)
         at oracle.odi.interfaces.interactive.support.InteractiveInterfaceHelperWithActions.performAction(InteractiveInterfaceHelperWithActions.java:821)
         at oracle.odi.ui.OdiSdkEntityFactory.dropSourceDataStore(OdiSdkEntityFactory.java:523)
         at oracle.odi.ui.etlmodeler.diag.dragdrop.DiagramNodeDropHandler.dropObjects(DiagramNodeDropHandler.java:150)
         at oracle.diagram.framework.dragdrop.handler.DelegateChooserDropHandler.dropSelected(DelegateChooserDropHandler.java:386)
         at oracle.modeler.dnd.ModelerTCDropHandler.access$001(ModelerTCDropHandler.java:69)
         at oracle.modeler.dnd.ModelerTCDropHandler$3.run(ModelerTCDropHandler.java:288)
         at oracle.modeler.dif.GraphicAdder.addImpl(GraphicAdder.java:387)
         at oracle.modeler.dif.GraphicAdder.addAndLayoutImpl(GraphicAdder.java:372)
         at oracle.modeler.dif.GraphicAdder.addSelectAndLayout(GraphicAdder.java:348)
         at oracle.modeler.dnd.ModelerTCDropHandler.dropSelected(ModelerTCDropHandler.java:284)
         at oracle.diagram.framework.dragdrop.handler.DelegateChooserDropHandler.drop(DelegateChooserDropHandler.java:150)
         at oracle.diagram.framework.dragdrop.DefaultDropPlugin.drop(DefaultDropPlugin.java:115)
         at oracle.modeler.dnd.ModelerDropPlugin.drop(ModelerDropPlugin.java:100)
         at oracle.diagram.framework.dragdrop.DropTargetHelper.drop(DropTargetHelper.java:188)
         at oracle.diagram.framework.dragdrop.ManagerViewDragAndDropController$MyDropTargetListener.drop(ManagerViewDragAndDropController.java:802)
         at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
         at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)
         at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
         at java.awt.Component.dispatchEventImpl(Component.java:4508)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4312)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4163)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
         at java.awt.EventQueue.access$000(EventQueue.java:84)
         at java.awt.EventQueue$1.run(EventQueue.java:602)
         at java.awt.EventQueue$1.run(EventQueue.java:600)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:616)
         at java.awt.EventQueue$2.run(EventQueue.java:614)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Thanks in advance
    R

    Did you tryed to refresh your model or delete and re-import it ?

  • 'Show JInternalFrame Contents While Dragging'

    hi,
    I have a question I have an application that has internal frames, Basically it is a MDI Application. I am using JDK 1.2.2 and windows 2000. The question is that when you go to the desktop right click properties and in Effects tab you uncheck the 'Show Window Contents While Dragging' checkBox. Now when I run my application and my parent window that is a frame pops up, if I drag the window i.e. my parent frame it doesn't dragg the contents onlt thw windows border is dragged, means it doesn't repaints that is fine. But when I try to drag one of the internal frame it shows me the contents inside the internalFrame being dragged too and I don't want to see these contents while internal frame is being dragged. So how can I make my application not to show the contents inside the JInternalFrames not to be shown while dragging the JInternalFrame. Any help is really appreciated.
    for an example I have added a code example to see the effect that I got from the forums just for an example to show. If you have unchecked the option 'Show Window Contents While Dragging' in Effects tab when you go to the desktop right click properties and the Effects Tab or in the controlPanel dblClick Display and go to Effects tab and uncheck this checkBox. Now run this example and see when you drag the main window contents inside it including JInternalFrame doesn't get dragged just the boundry of the dragging frame is shown. Now if you try to drag the JInternalFrame. Contents inside that are dragged too. And I don't want this behavior. I don't want to see the contents.
    /*************** MDITest ************/
    import javax.swing.*;
    * An application that displays a frame that
    * contains internal frames in an MDI type
    * interface.
    * @author Mike Foley
    public class MDITest extends Object {
    * Application entry point.
    * Create the frame, and display it.
    * @param args Command line parameter. Not used.
    public static void main( String args[] ) {
    try {
    UIManager.setLookAndFeel(
    "com.sun.java.swing.plaf.windows.WindowsLookAndFeel" );
    } catch( Exception ex ) {
    System.err.println( "Exception: " +
    ex.getLocalizedMessage() );
    JFrame frame = new MDIFrame( "MDI Test" );
    frame.pack();
    frame.setVisible( true );
    } // main
    } // MDITest
    /*********** MDIFrame.java ************/
    import java.awt.*;
    import java.awt.event.*;
    import java.io.Serializable;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    * A top-level frame. The frame configures itself
    * with a JDesktopPane in its content pane.
    * @author Mike Foley
    public class MDIFrame extends JFrame implements Serializable {
    * The desktop pane in our content pane.
    private JDesktopPane desktopPane;
    * MDIFrame, null constructor.
    public MDIFrame() {
    this( null );
    * MDIFrame, constructor.
    * @param title The title for the frame.
    public MDIFrame( String title ) {
    super( title );
    * Customize the frame for our application.
    protected void frameInit() {
    // Let the super create the panes.
    super.frameInit();
    JMenuBar menuBar = createMenu();
    setJMenuBar( menuBar );
    JToolBar toolBar = createToolBar();
    Container content = getContentPane();
    content.add( toolBar, BorderLayout.NORTH );
    desktopPane = new JDesktopPane();
    desktopPane.setPreferredSize( new Dimension( 400, 300 ) );
    content.add( desktopPane, BorderLayout.CENTER );
    } // frameInit
    * Create the menu for the frame.
    * <p>
    * @return The menu for the frame.
    protected JMenuBar createMenu() {
    JMenuBar menuBar = new JMenuBar();
    JMenu file = new JMenu( "File" );
    file.setMnemonic( KeyEvent.VK_F );
    JMenuItem item;
    file.add( new NewInternalFrameAction() );
    // file.add( new ExitAction() );
    menuBar.add( file );
    return( menuBar );
    } // createMenuBar
    * Create the toolbar for this frame.
    * <p>
    * @return The newly created toolbar.
    protected JToolBar createToolBar() {
    final JToolBar toolBar = new JToolBar();
    toolBar.setFloatable( false );
    toolBar.add( new NewInternalFrameAction() );
    // toolBar.add( new ExitAction() );
    return( toolBar );
    * Create an internal frame.
    * A JLabel is added to its content pane for an example
    * of content in the internal frame. However, any
    * JComponent may be used for content.
    * <p>
    * @return The newly created internal frame.
    public JInternalFrame createInternalFrame() {
    JInternalFrame internalFrame =
    new JInternalFrame( "Internal JLabel" );
    internalFrame.getContentPane().add(
    new JLabel( "Internal Frame Content" ) );
    internalFrame.setResizable( true );
    internalFrame.setClosable( true );
    internalFrame.setIconifiable( true );
    internalFrame.setMaximizable( true );
    internalFrame.pack();
    return( internalFrame );
    * An Action that creates a new internal frame and
    * adds it to this frame's desktop pane.
    public class NewInternalFrameAction extends AbstractAction {
    * NewInternalFrameAction, constructor.
    * Set the name and icon for this action.
    public NewInternalFrameAction() {
    super( "New", new ImageIcon( "new.gif" ) );
    * Perform the action, create an internal frame and
    * add it to the desktop pane.
    * <p>
    * @param e The event causing us to be called.
    public void actionPerformed( ActionEvent e ) {
    JInternalFrame internalFrame = createInternalFrame();
    desktopPane.add( internalFrame,
    JLayeredPane.DEFAULT_LAYER );
    } // NewInternalFrameAction
    } // MDIFrame
    I'll really appreciate for any help.
    Thank you

    try this:
    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.putClientProperty("JDesktopPane.dragMode", "outline");Both parameters passed to 'putClientProperty' must be strings.
    Hope this helps
    Riz

  • How to show MouseOver effect on dropable region while dragging a MovieClip?

    Hello friends,
    I am creating Drag and drop flash application.
    While dragging an instance of a movieclip I want also the dropable region to show effect like MouseOver case.
    So that end user can confirm that they are dropping the item in right region.
    Here the mouse is moved while it is kept clicked
    Plz help me,
    Thanks.
    Venkat

    Thanks for taking interest.
    I did the first part of your reply already, but  How to check if a MovieClip is being dragged?
    Say, I have two MovieClips
    TargetToDrop_mc
    DropableRegion_mc
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotMouseDown);
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_UP, gotMouseUp);
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_OVER, gotMouseOver);
    TargetToDrop_mc.addEventListener(MouseEvent.MOUSE_OUT, gotMouseOut);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_DOWN, gotMouseDown);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_UP, gotMouseUp);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_OVER, gotMouseOver);
    DropableRegion_mc.addEventListener(MouseEvent.MOUSE_OUT, gotMouseOut);
    function gotMouseDown(EventReceived:MouseEvent):void {
        EventReceived.currentTarget.startDrag ();
    function gotMouseUp(EventReceived:MouseEvent):void{
        EventReceived.currentTarget.stopDrag();
    function gotMouseOver(EventReceived:MouseEvent):void{
        EventReceived.currentTarget.alpha=0.5;
    function gotMouseOut(EventReceived:MouseEvent):void{
        EventReceived.currentTarget.alpha=0.7;
    Now plze guide me on basis of above.
    Thanks,
    Venkat

  • How to get the filepath while dragging

    Hi all ,
    I am performing a file copying application I wanted to know how to get the path of the particular file while dragging. (i.e if I perform something like a mousedown or mouseover event I should be able to get the complete path of the filename.
    Reply,
    Kalpesh

    You can drag the file name into the application, or use something like PathSnagger
    G4 Digital Audio 1.4GHz   Mac OS X (10.4.9)  

  • High CPU consumption with repaint while dragging

    Hi! I certainly hope someone can help me with this. I am building a graphical user interface for a graph with custom nodes and edges, the nodes being draggable. I have tried making each network component (node or edge) a JComponent. Now, I'm trying using only one JPanel to paint all the components. Either way, I find that dragging takes up too much CPU % especially when using full screen graphics, usually around 92%. And that is on a machine with >1.9GHz.
    It does not really make much of a difference when I paint outlines of the components while dragging. Any ideas about this? Thanks.
    My runnable test code is rather long so I've uploaded it to : http://web.mit.edu/jabos/www/SyncTest/GUILoad2.java.
    -Bosun

    Comments about changes to your code:
    1 - trouble in rendering with setOpaque(false). Set this to true and add super.paintComponent(g) in paintComponent to take care of background paint updates
    2 - had to doctor your ConnComp class; the constructor was under construction...
    3 - I'm using j2se 1.4 so I converted your:
    ArrayList generics to the old Object casts and
    the JFrame setPreferredSize to setSize
    This runs okay now. The highest cpu usage numbers I saw were 52% in full screen and 37% in regular mode (2.6 GHz).
    The painting part seems okay; I think the trouble is in excessive data storage and manipulation. I would re&#8211;design your program to eliminate all the type checking with the instanceof operator. Specifically I would try to use only one ArrayList for the node objects and draw the connection lines between them inside paintComponent depending on how a boolean is set, eg if(showLines). As an aside, GradientPaint is for fill operations and will not benefit your line display.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.ArrayList;
    * This demo paints all network components in a single JComponent
    * @author jabos
    public class DragTest extends JPanel {
         * all components
        public ArrayList comps;
        public ArrayList compsDragged; // actually only RectComps
         * arraylist of all connection components
        public ArrayList conncomps;
        public boolean dragging = false, repaintWhileDragging = true;
        Point2D initp = null;
        public JLabel repaintDrag;
        public DragTest() {
            repaintDrag = new JLabel("repaintWhileDragging : " + repaintWhileDragging);
            repaintDrag.setForeground(Color.MAGENTA);
            add(repaintDrag);
            add(new JLabel("Press \"R\" to change repaint protocols during dragging"));
            comps = new ArrayList();
            compsDragged = new ArrayList();
            conncomps = new ArrayList();
            addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseDragged(MouseEvent e) {
                    //* // Remove initial slash to disable repainting while dragging
                    if (repaintWhileDragging) {
                        Point2D pp = e.getPoint();
                        AffineTransform t = AffineTransform.getTranslateInstance(
                                                    pp.getX() - initp.getX(),
                                                    pp.getY() - initp.getY());
                        initp = pp; // reset initp
                        for (int j = 0; j < compsDragged.size(); j++) {
                            Comp comp = (Comp)compsDragged.get(j);
                            if (comp instanceof RectComp)
                                comp.updateCompLocation(t);
                        // and again to update ConnComps
                        for (int j = 0; j < conncomps.size(); j++) {
                            Comp comp = (Comp)conncomps.get(j);
                            if (comp instanceof ConnComp)
                                comp.updateCompLocation(t);
                        dragging = true;
                        repaint();
                    dragging = true;
            addMouseListener(new MouseAdapter() {
                // does final repaint if dragging just finished
                public void mouseReleased(MouseEvent e) {
                    if (dragging) {
                        Point2D pp = e.getPoint();
                        AffineTransform t = AffineTransform.getTranslateInstance(
                                                    pp.getX() - initp.getX(),
                                                    pp.getY() - initp.getY());
                        for (int j = 0; j < compsDragged.size(); j++) {
                            Comp comp = (Comp)compsDragged.get(j);
                            if (comp instanceof RectComp)
                                comp.updateCompLocation(t);
                        // and again to update ConnComps
                        for (int j = 0; j < conncomps.size(); j++) {
                            Comp comp = (Comp)conncomps.get(j);
                            if (comp instanceof ConnComp)
                                comp.updateCompLocation(t);
                    repaint();
                    dragging = false;
                    setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
                // Updates list of components being dragged
                public void mousePressed(MouseEvent e) {
                    compsDragged.clear();
                    initp = e.getPoint();
                    for (int j = 0; j < comps.size(); j++) {
                        Comp comp = (Comp)comps.get(j);
                        if (comp.graphic.contains(initp))
                            compsDragged.add(comp);
                    setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));
            addKeyListener(new KeyAdapter() {
                public void keyReleased(KeyEvent e) {
                    if(e.getKeyCode() == KeyEvent.VK_R) {
                        repaintWhileDragging = !repaintWhileDragging;
                        repaintDrag.setText("repaintWhileDragging : " +
                                             repaintWhileDragging);
    //        setOpaque(false);
            setFocusable(true);
            requestFocusInWindow();
        public static void main(String[] args) {
            GraphicsDevice device =
                GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
            JFrame f = new JFrame("GUILOAD2", device.getDefaultConfiguration());
            //* // remove initial slash to disable full screen
            device.setFullScreenWindow(SwingUtilities.getWindowAncestor(f));
            //needs to be set AFTER fullscreenmode so that the toolbar is NOT draggable!
            f.setExtendedState(JFrame.MAXIMIZED_BOTH);
                // enable use of Look and Feel
                f.setUndecorated(true);    // Set false, EE is still minimizable
                f.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
            f.setBounds(GraphicsEnvironment.getLocalGraphicsEnvironment().
                                getMaximumWindowBounds());
            DragTest p = new DragTest();
            p.setBackground(Color.WHITE);
            RectComp[] rc = new RectComp[100];
            int n = -1, x = 30, y = 30, b = 100, inc = 40;
            // add REctComps
            for (int i = 0; i < 10; i++) {
                p.add(rc[++n] = new RectComp(new Point2D.Double(x += inc, y += inc),
                                             new Color(x % 255, y % 255, (b += 10) % 255)));
            x = 34; y = 32; b = 32;
            // add ConnComps
            while (n > 0) {
                p.add(new ConnComp(rc[n--], rc[n],
                                   new Color((x += inc) % 255, (y += inc) % 255,
                                             (b += inc) % 255),
                                   new Color((x += inc) % 255, (y += inc) % 255,
                                             (b += inc) % 255)));
            f.setContentPane(p);
            f.setSize(700, 700);
            makeFramex(f, false);
            /* // remove initial slash to disable full screen; Also, uncomment above
            f.setResizable(false);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setIgnoreRepaint(true);
            f.setVisible(true);
        public static void makeFramex(JFrame frame, boolean resizable) {
            frame.setSize(frame.getSize());
    //        frame.setResizable(resizable);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //        frame.pack();
            frame.setVisible(true);
         * Adds network component c to this simulation
         * @param c
        public void add(Comp c) {
            comps.add(c);
            if (c instanceof ConnComp) {
                conncomps.add((ConnComp)c);
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2D = (Graphics2D) g;
            g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                 RenderingHints.VALUE_ANTIALIAS_ON);
            for (int j = 0; j < comps.size(); j++) {
                Comp comp = (Comp)comps.get(j);
                //for (Comp i : dragging ? compsDragged : comps) {
                try {
                    g2D.setPaint(comp.color);
                    if (comp instanceof ConnComp) {
                        g2D.setStroke(((ConnComp) comp).compStroke);
                        g2D.draw(comp.graphic);
                    if (comp instanceof RectComp)
                        g2D.fill(comp.graphic);
                } catch (Exception e) {
                    e.printStackTrace();  //To change body of catch statement
                                          // use File | Settings | File Templates.
         * A network component that simulates a node
        private static class RectComp extends Comp {
            RectComp(Point2D centero, Paint c) {
                super(c);
                center = centero;
                graphic = new Ellipse2D.Double(center.getX() - radius,
                                  center.getY() - radius, radius * 2 - 2, radius * 2 - 2);
            public void updateCompLocation(AffineTransform t) {
                graphic = t.createTransformedShape(graphic);
                Rectangle2D r = graphic.getBounds2D();
                center = new Point2D.Double(r.getCenterX(), r.getCenterY());
                //System.out.println("newCenterX=" + r.getCenterX());
         * A network component that simulates a connection between two nodes
        private static class ConnComp extends Comp {
            Stroke compStroke;
            RectComp origin, destination;
            Paint color;
            ConnComp(RectComp origino, RectComp desto, Color c1, Color c2) {
                super(c1);
                if (c2 != null)
                    color = new GradientPaint(origino.center, c1, desto.center, c2);
                else
                    color = c1;
                graphic = new Line2D.Double(origino.center, desto.center);
                this.origin = origino;
                this.destination = desto;
                compStroke = new BasicStroke(3);
    //            updateCompLocation(new AffineTransform());
            public void updateCompLocation(AffineTransform t) {
                ((Line2D)graphic).setLine(origin.center, destination.center);
                if(color instanceof GradientPaint)
                    color = new GradientPaint(((Line2D)graphic).getP1(),
                                              ((GradientPaint)color).getColor1(),
                                              ((Line2D)graphic).getP2(),
                                              ((GradientPaint)color).getColor2());
                //System.out.println("newLineX:" + ((Line2D) graphic).getX1() +
                //                     "---" + ((Line2D) graphic).getX2());
         * demo Superclass for all network components
        private abstract static class Comp {
            Point2D center;
            Shape graphic;
            int radius = 20;
            Paint color;
            Comp(Paint c) {
                color = c;
             * Updates internal parameters of Comp necessary for correct repaint
             * @param t
            public abstract void updateCompLocation(AffineTransform t);
    }

  • Why i am unable to select between 2 anchor points with in a object while dragging with direct select

    why i am unable to select between 2 anchor points with in a object while dragging with direct selection tool instead it moves

    Another option is to temporarily change your view to outline mode, when your done switch back to preview mode. Ctrl-Y or View>Outline {View>Preview} The menu option will change depending on which mode you are in.
    And another option, double click on the object in question to place it in Isolation mode. You can now edit to your hearts content. When done, click on the gray border at top of document.
    So as you can see there are multiple ways of accomplishing the same thing.

  • Executing Java script while dragging a component

    Hi,
    Is there a way to execute Java script while dragging a component, I have noticed only following events mouseMove, mouseOut, mouseDown mouseUp for clientListener tag. could not find anything related to dragging event.
    My scenario is, I have componentDragSource to a component and I want fire a java script event on drag of that component.
    Please suggest. TIA.
    Thanks,
    Siva G.

    Hi Frank,
    Thanks for your response.
    Could you please give me some sample on that like what type of event and on which component I have to set clientListener.
    Thanks,
    Siva G.

  • Bug: scrolling with mouse scroll wheel while dragging tracks no longer works

    After upgrading to Spotify for Mac 1.0.2.6, I can no longer use my mouse's scroll wheel while dragging tracks to a different position in a playlist. This is an important feature when working with long playlists. Steps to reproduce:Create a playlist that extends past the bottom of the windowClick and begin dragging the first song on the playlist downwardUse your mouse's scroll wheel to scroll the playlist down. It will not scroll.

    Hey ,
    Thanks for letting us know.
    We don't have any update on this yet and we'll pass the information on to the right team.
    We'll keep you posted.
    Thanks! 

  • Lightroom crashed while dragging a photo in Book module

    I was creating a book in Lightroom 5. While dragging a photo within the book Lightroom quit. An error window popped up and I sent the message per instruction. The message that came back stated Lightroom could not repair the problem. The screen is now blank and showing "Loading" for the past 9 hours.

    Dorin, you are a Lightroom 4 God!  Because I wasn't thinking of the text as a "caption" but rather as text, I never saw that option.  I just tried it and it is fine.  I am not sure if I can play with the dimensions of the box as much as I like, but I could deal with that by how I arrange the type.  Yeah you!
    While I'm typing to you, I have another question:  one of the neat things about the book module is that you can switch into Develop and make a change in the photo and it automatically updates the photo in the book module.  HOWEVER -- what happens if at some time in the future I am working with a photo which is in a book -- and I like the way it is for that book -- and I want to change the photo for another use.  Will that change in the photo change the photo in the book?  If so, is there any way to keep this from happening?  I could see using a photo in a book in black & white, but wanting to use in for a graphic in color.  I'd hate to come back to my book and see that all my work there had been screwed up.
    Thanks,
    P

  • Displaying image and node name while dragging ...like Windows Explorer.

    hi group,
    i want to display the image and node name of the node while dragging in my tree.like windows Explorer.
    Any body can help me regarding this.?pls
    thank u...
    Shalinipriya.

    hi group,
    Anybody knows regarding this "dragging nodename and image"?
    pls let me know
    thank u...
    Shalinipriya.

  • Displaying Image while Dragging in List

    Hi All,
    Am using the List controls to display the data and VBox is
    my itemRenderer. As we all know,by default List/DataGrid provides
    the Drag and drop features.In the itemrenderer am displaying the
    CheckBox and some other controls along with the dataFields and when
    am trying to drag an item it's displayed as in a huge area.
    I want to replace the item with an Image( icon) while
    dragging.How do i do that? I tried with implementing the doDrag of
    Dragmanager but am unable to see any image icon while dragging .
    can anyone solve my problem?
    Any help can be appriciated and Thanks in advance.
    Here is the sample code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    verticalAlign="middle">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.managers.DragManager;
    import mx.core.DragSource;
    import mx.controls.Image;
    import mx.events.DragEvent;
    import mx.controls.Alert;
    [Bindable]
    private var initData:ArrayCollection = new ArrayCollection([
    {book:"DBMS",author:"Sudarshan"},
    {book:"C",author:"Yaswanth Kanethkar "},
    {book:"C++",author:"JBalaguruswamy"},
    {book:"Software Engineering",author:"Pressman"}]);
    private function onDragOver(event:MouseEvent):void {
    var dragInitiator:List = List(event.currentTarget);
    var dragSource:DragSource = new DragSource();
    dragSource.addData(dragInitiator,"list");
    var displayIcon:Image = new Image();
    displayIcon.source = "resources/images/todo.png";
    DragManager.doDrag(dragInitiator,dragSource,event,displayIcon);
    ]]>
    </mx:Script>
    <mx:List width="50%" height="50%" dragEnabled="true"
    dropEnabled="true" dragMoveEnabled="true"
    dragOver="onDragOver(event)" dataProvider="{initData}">
    <mx:itemRenderer>
    <mx:Component>
    <mx:VBox width="100%" height="100%">
    <mx:HBox>
    <mx:CheckBox/>
    <mx:Label text="Book:{data.book}"/>
    </mx:HBox>
    <mx:Label text="Author:{data.author}"
    paddingLeft="25"/>
    </mx:VBox>
    </mx:Component>
    </mx:itemRenderer>
    </mx:List>
    </mx:Application>

    Hi All,
    Myself find the solution for this problem just by changing
    the
    dragOver event to
    mouseMove event.Now you can test this and can use as well if
    you want.
    Here is the latest code

Maybe you are looking for