Package java.awt

Examples of java.awt.Cursor


    boolean paused = false;

    public void togglePause() {
        synchronized(this) {
            paused = !paused;
            Cursor c;
            if (paused) {
                c = new Cursor(Cursor.WAIT_CURSOR);
            } else {
                c = new Cursor(Cursor.DEFAULT_CURSOR);
                if (transitionThread != null) {
                    synchronized (transitionThread) {
                        transitionThread.notifyAll();
                    }
                }
View Full Code Here


            if (transitionThread != null) {
                try {
                    transitionThread.join();
                } catch (InterruptedException ie) { }
                done = true;
                setCursor(new Cursor(Cursor.WAIT_CURSOR));
            }
        }
View Full Code Here

            // property is *not* 'auto'.
            //
            Element currentTarget = (Element)evt.getCurrentTarget();

            if (!CSSUtilities.isAutoCursor(currentTarget)) {
                Cursor cursor = CSSUtilities.convertCursor(currentTarget, ctx);
                if (cursor != null) {
                    userAgent.setSVGCursor(cursor);
                }
            }
        }
View Full Code Here

     */
    protected class DOMMouseOutEventListener implements EventListener {
        public void handleEvent(Event evt) {
            MouseEvent me = (MouseEvent)evt;
            Element newTarget = (Element)me.getRelatedTarget();
            Cursor cursor = CursorManager.DEFAULT_CURSOR;
            if (newTarget != null)
                cursor = CSSUtilities.convertCursor
                    (newTarget, BridgeContext.this);
            if (cursor == null)
                cursor = CursorManager.DEFAULT_CURSOR;
View Full Code Here

        /**
         * Handles 'mouseover' MouseEvent event type.
         */
        public void handleEvent(Event evt) {
            Element target = (Element)evt.getTarget();
            Cursor cursor = CSSUtilities.convertCursor(target, BridgeContext.this);
           
            if (cursor != null) {
                userAgent.setSVGCursor(cursor);
            }
        }
View Full Code Here

                }
                if (event.getID() == MouseEvent.MOUSE_ENTERED) {
                    Object source = event.getSource();
                    if (source instanceof Component) {
                        Component comp = (Component) source;
                        Cursor cur = comp.getCursor();
                        if (cur != null) {
                            comp.setCursor(cur);
                        } else {
                            comp.setCursor(Cursor.getDefaultCursor());
                        }
View Full Code Here

    // Cursor

    public final void updateCursorImmediately() {

        Cursor cur = targetComponent.getCursor();
//        org.jnode.vm.Unsafe.debug("JNodeToolkit.updateCursor()-2 " + cur +  " for " + targetComponent + "\n");
//        org.jnode.vm.Unsafe.debugStackTrace(100);
        peerComponent.setCursor(cur);
        toolkit.updateCursor(cur);
    }
View Full Code Here

       
    this.hoverImage = new ImageIcon(getClass().getResource(hoverFile));
    this.setText(title);
    this.setIcon(normalImage);
    this.addMouseListener(onHoverListener);
    this.setCursor(new Cursor(Cursor.HAND_CURSOR));
   
  }
View Full Code Here

                JOptionPane.WARNING_MESSAGE);
        }
      }
    });

        jPanel1.setCursor(new Cursor(Cursor.CROSSHAIR_CURSOR));
       // graphMouseListener = new GraphMouseListener(this,controller,solveOnClickCheckbox);
       
        jPanel1.setBackground(Color.WHITE);
        jPanel1.addMouseListener(graphMouseListener);
       
View Full Code Here

                if (e instanceof SVGAElement) {
                    elt = (SVGAElement)e;
                    break;
                }
            }
            Cursor cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
            userAgent.setSVGCursor(cursor);
            userAgent.openLink(elt);
            evt.stopPropagation();
        }
View Full Code Here

TOP

Related Classes of java.awt.Cursor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.