Examples of createCustomCursor()


Examples of java.awt.Toolkit.createCustomCursor()

      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
    }
      break;
    case CREATE_UTILITY_NODE: {
      customCursor = toolkit.createCustomCursor(iconController
          .getUtilityNodeCursor().getImage(), new Point(0, 0),
          "Cursor");
      setCursor(customCursor);
      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
    }
      break;
    case CREATE_CONTEXT_NODE: {
      customCursor = toolkit.createCustomCursor(iconController
          .getContextNodeCursor().getImage(), new Point(0, 0),
          "Cursor");
      setCursor(customCursor);
      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
    }
      break;
    case CREATE_INPUT_NODE: {
      customCursor = toolkit
          .createCustomCursor(iconController.getInputNodeCursor()
              .getImage(), new Point(0, 0), "Cursor");
      setCursor(customCursor);
      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
    }
      break;
    case CREATE_RESIDENT_NODE: {
      customCursor = toolkit.createCustomCursor(iconController
          .getResidentNodeCursor().getImage(), new Point(0, 0),
          "Cursor");
      setCursor(customCursor);
      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
    }
      break;
    case CREATE_ORDINARYVARIABLE_NODE: {
      customCursor = toolkit.createCustomCursor(iconController
          .getOvariableNodeCursor().getImage(), new Point(0, 0),
          "Cursor");
      setCursor(customCursor);
      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

      setState(STATE_NONE);
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
    }
      break;
    case CREATE_EDGE: {
      customCursor = toolkit.createCustomCursor(iconController
          .getLineCursor().getImage(), new Point(0, 0), "Cursor");
      setCursor(customCursor);
      setState(STATE_CONNECT_COMP);
      // by young4
      this.setShapeStateAll(UShape.STATE_CHANGECURSOR, customCursor);
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

    add(buttonPanel);

    Toolkit tk = Toolkit.getDefaultToolkit();
    Image img = tk.createImage("Texture/cursor.png");
    Cursor cursor = tk.createCustomCursor(img, new Point(8, 8),
        "/Texture/cursor.png");
    this.setCursor(cursor);
  }

  /**
 
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

   * Build a DevintUnoDeck
   */
  public DevintUnoDeck() {
    Toolkit tk = Toolkit.getDefaultToolkit();
    Image img = tk.createImage("Texture/cursor.png");
    Cursor cursor = tk.createCustomCursor(img,new Point(8, 8),"/Texture/cursor.png");
    this.setCursor(cursor);
  }
 
 
 
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

    final Graphics2D g = (Graphics2D) image.getGraphics();
    g.setColor(new Color(0, 0, 0, 0));
    g.fillRect(0, 0, image.getWidth(), image.getHeight());
    g.drawImage(cursorImage, 0, 0, null);
    g.dispose();
    return tk.createCustomCursor(image, hotspot, "Cursor:" + imageName);
  }
}
View Full Code Here

Examples of java.awt.Toolkit.createCustomCursor()

            /// Creates an invisble pointer by giving it bogus image
            /// Possibly find a workaround for this...
            Toolkit tk = Toolkit.getDefaultToolkit();
            byte bogus[] = { (byte) 0 };
            blankCursor =
              tk.createCustomCursor( tk.createImage( bogus ), new Point(0, 0), "" );

            zoomWindow = new JWindow( parent ) {
                public void paint( Graphics g ) {
                    g.drawImage( zoomImage, 0, 0, zoomWindow );
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.