Package java.awt

Examples of java.awt.Cursor$CursorDisposer


                x += iColWidth[i];
            }

            if (i >= 0) {
                if (!bDrag) {
                    setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));

                    bDrag    = true;
                    iXDrag   = xb - iColWidth[i];
                    iColDrag = i;
                }
View Full Code Here


     * @param y
     */
    public boolean mouseExit(Event e, int x, int y) {

        if (bDrag) {
            setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

            bDrag = false;
        }

        return true;
View Full Code Here

    final ChartPanel chartPanel = new ChartPanel(chart);

    chartPanel.addChartMouseListener(new ChartMouseListener() {
      @Override
      public void chartMouseMoved(ChartMouseEvent event) {
        Cursor cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
        ChartEntity entity = event.getEntity();
        if (entity instanceof PlotEntity) {
          cursor = Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR);
        }
        chartPanel.setCursor(cursor);
View Full Code Here

                DBBrowserUtil.browse("http://sqljet.com/");
            }

            @Override
            public void mouseEntered(MouseEvent e) {
                Cursor hand = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
                status.setCursor(hand);
            }

            @Override
            public void mouseExited(MouseEvent e) {
                Cursor normal = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
                status.setCursor(normal);
            }
           
        });
        bottomPanel.add(status, BorderLayout.WEST);
View Full Code Here

    final String movFileName = this.controller.getContentManager().showSaveDialog(this,
        this.preferences.getLocalizedString(VideoPanel.class, "saveVideoDialog.title"),
        ContentManager.ContentType.MOV, this.home.getName());
    if (movFileName != null) {
      final Component rootPane = SwingUtilities.getRoot(this);
      final Cursor defaultCursor = rootPane.getCursor();
      rootPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
     
      // Disable panel actions
      ActionMap actionMap = getActionMap();
      final boolean [] actionEnabledStates = new boolean [ActionType.values().length];
View Full Code Here

  private static Logger logger = Logger.getLogger(CursorRepository.class);

  private Map<StendhalCursor, Cursor> cursorMap = new HashMap<StendhalCursor, Cursor>();

  public Cursor get(StendhalCursor stendhalCursor) {
    Cursor res = cursorMap.get(stendhalCursor);
    if (res == null) {
      res = loadCursor(stendhalCursor);
    }
    return res;
  }
View Full Code Here

    }

    // create cursor
    Point hotSpot = stendhalCursor.getHotSpot();
    String name = stendhalCursor.toString().toLowerCase(Locale.ENGLISH);
    Cursor res = Toolkit.getDefaultToolkit().createCustomCursor(image, hotSpot, name);
    cursorMap.put(stendhalCursor, res);
    return res;
  }
View Full Code Here

        // SELECTED ZONE END POSITION, IN PIXELS
        //int st = (int) (model.getToFloat() * (double) w);

        HighlightedComponent old = highlightedComponent;
        Cursor newCursor = null;

        int a = 0;//settings.selection.invisibleHookMargin;

        if (inRange(x, (int) sf - 1, (int) sf + r + 1)) {
            newCursor = CURSOR_LEFT_HOOK;
View Full Code Here

            cx += 1;
        }
        if (d.height%2 == 0) {
            cy += 1;
        }
        Cursor cursor = t.createCustomCursor(cursorImage, new Point(cx, cy), null);
        monitorWindow.setCursor(cursor);

        final double[] roiPts = new double[8];
        final int[] count = { 0 };
        monitorWindow.getCanvas().addMouseListener(new MouseAdapter() {
View Full Code Here

  }
 
  @Override
  public void mousePressed(MouseEvent e) {
    if (e.getButton() == MouseEvent.BUTTON1) {
      viewerFrame.setCursor(new Cursor(Cursor.MOVE_CURSOR));
      translationDrag = true;
    } else if (e.getButton() == MouseEvent.BUTTON2) {
      viewerFrame.setCursor(new Cursor(Cursor.MOVE_CURSOR));
      movementDrag = true;
    } else {
      viewerFrame.setCursor(new Cursor(Cursor.MOVE_CURSOR));
      rotationDrag = true;
    }
    previousMousePoint = e.getPoint();
  }
View Full Code Here

TOP

Related Classes of java.awt.Cursor$CursorDisposer

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.