|
|
|
@ -1,26 +1,14 @@
|
|
|
|
|
package com.fr.grid; |
|
|
|
|
|
|
|
|
|
import java.awt.Cursor; |
|
|
|
|
import java.awt.Point; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.awt.event.MouseListener; |
|
|
|
|
import java.awt.event.MouseMotionListener; |
|
|
|
|
import java.awt.event.MouseWheelEvent; |
|
|
|
|
import java.awt.event.MouseWheelListener; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
import com.fr.base.DynamicUnitList; |
|
|
|
|
import com.fr.base.ScreenResolution; |
|
|
|
|
import com.fr.common.inputevent.InputEventBaseOnOS; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.ElementCasePane; |
|
|
|
|
import com.fr.design.present.CellWriteAttrPane; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.grid.selection.CellSelection; |
|
|
|
|
import com.fr.grid.selection.FloatSelection; |
|
|
|
|
import com.fr.grid.selection.Selection; |
|
|
|
@ -37,7 +25,12 @@ import com.fr.stable.ColumnRow;
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.stable.unit.FU; |
|
|
|
|
import com.fr.stable.unit.OLDPIX; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.event.*; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* the MouseListener of the Grid |
|
|
|
@ -172,7 +165,7 @@ public class GridMouseAdapter implements MouseListener, MouseWheelListener, Mous
|
|
|
|
|
ElementCasePane reportPane = grid.getElementCasePane(); |
|
|
|
|
TemplateElementCase report = reportPane.getEditingElementCase(); |
|
|
|
|
boolean isShiftDown = evt.isShiftDown(); |
|
|
|
|
boolean isControlDown = evt.isControlDown(); |
|
|
|
|
boolean isControlDown = InputEventBaseOnOS.isControlDown(evt); |
|
|
|
|
int clickCount = evt.getClickCount(); |
|
|
|
|
// peter:需要判断是否在可移动CellSelection的区域
|
|
|
|
|
grid.setDragType(isMoveCellSelection(this.oldEvtX, this.oldEvtY)); |
|
|
|
@ -344,7 +337,7 @@ public class GridMouseAdapter implements MouseListener, MouseWheelListener, Mous
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
boolean isControlDown = evt.isControlDown(); |
|
|
|
|
boolean isControlDown = InputEventBaseOnOS.isControlDown(evt); |
|
|
|
|
|
|
|
|
|
long systemCurrentTime = System.currentTimeMillis(); |
|
|
|
|
if (systemCurrentTime - lastMouseMoveTime <= DRAG_REFRESH_TIME) {// alex:Drag
|
|
|
|
|