本文整理了Java中java.awt.event.MouseEvent.isMetaDown()
方法的一些代码示例,展示了MouseEvent.isMetaDown()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MouseEvent.isMetaDown()
方法的具体详情如下:
包路径:java.awt.event.MouseEvent
类名称:MouseEvent
方法名:isMetaDown
暂无
代码示例来源:origin: org.netbeans.api/org-netbeans-api-visual
/**
* @see MouseEvent
*/
public boolean isMetaDown() {
return event.isMetaDown();
}
代码示例来源:origin: in.jlibs/org-netbeans-api-visual
/**
* @see MouseEvent
*/
public boolean isMetaDown() {
return event.isMetaDown();
}
代码示例来源:origin: datacleaner/DataCleaner
private boolean isLeftClick(final MouseEvent me) {
final int button = me.getButton();
return button == MouseEvent.BUTTON1 && (!me.isMetaDown());
}
代码示例来源:origin: net.imagej/ij
public void mousePressed (MouseEvent e) {
int x=e.getX(), y=e.getY();
if (e.isPopupTrigger() || e.isMetaDown())
pm.show(e.getComponent(),x,y);
}
代码示例来源:origin: imagej/ImageJA
public void mousePressed (MouseEvent e) {
int x=e.getX(), y=e.getY();
if (e.isPopupTrigger() || e.isMetaDown())
pm.show(e.getComponent(),x,y);
}
代码示例来源:origin: nativelibs4java/JavaCL
@Override
public void mouseClicked(MouseEvent me) {
if (me.getButton() != MouseEvent.BUTTON1 || me.isMetaDown() || me.isControlDown())
demo.mouseWeight = 1;
else
demo.paused = !demo.paused;
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = META_DOWN_JS_DOC)
public boolean isMetaDown() {
return delegate.isMetaDown();
}
代码示例来源:origin: JetBrains/jediterm
public static boolean isSelectionClick(final MouseEvent e, boolean canBeQuick) {
if (e.getClickCount() == 1 || canBeQuick) {
if (!e.isPopupTrigger()) {
return e.getButton() == MouseEvent.BUTTON1 && !e.isControlDown() && !e.isAltDown() && !e.isMetaDown();
}
}
return false;
}
代码示例来源:origin: xyz.cofe/gui.swing
private boolean isResizeStartEvent(MouseEvent e){
if( e==null )return false;
if( e.getID()!=MouseEvent.MOUSE_PRESSED )return false;
if( e.getButton()!=resizeMouseButton )return false;
if( resizeMouseAlt!=null && !Objects.equals(e.isAltDown(),resizeMouseAlt) )return false;
if( resizeMouseControl!=null && !Objects.equals(e.isControlDown(),resizeMouseControl) )return false;
if( resizeMouseShift!=null && !Objects.equals(e.isShiftDown(),resizeMouseShift) )return false;
if( resizeMouseMeta!=null && !Objects.equals(e.isMetaDown(),resizeMouseMeta) )return false;
return true;
}
private boolean isResizeStopEvent(MouseEvent e){
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors
public void mousePressed(MouseEvent e) {
if (e.getClickCount() == 3 && e.isMetaDown()) {
setShowSourcePanel(!isShowSourcePanel());
}
}
});
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-jsfsupport-designtime
public void mousePressed(MouseEvent e) {
if (e.getClickCount() == 3 && e.isMetaDown()) {
setShowSourcePanel(!isShowSourcePanel());
}
}
});
代码示例来源:origin: freeplane/freeplane
@Override
public void mouseClicked(final MouseEvent e) {
if (e.getClickCount() == 2) {
final Point p = e.getPoint();
final int row = tableView.rowAtPoint(p);
selectNodes(row, new int[] { row });
if (!(e.isControlDown() || e.isMetaDown()))
disposeDialog();
}
}
}
代码示例来源:origin: JetBrains/jediterm
public static boolean isSelectionButtonDown(MouseEvent e) {
return e.isShiftDown() || e.isControlDown() || e.isMetaDown();
}
代码示例来源:origin: net.imagej/ij
public void mousePressed (MouseEvent e) {
int x=e.getX(), y=e.getY();
if (e.isPopupTrigger() || e.isMetaDown())
pm.show(e.getComponent(),x,y);
else if (e.isShiftDown())
extendSelection(x, y);
else {
select(x, y);
handleDoubleClick();
}
}
代码示例来源:origin: imagej/ImageJA
public void mousePressed (MouseEvent e) {
int x=e.getX(), y=e.getY();
if (e.isPopupTrigger() || e.isMetaDown())
pm.show(e.getComponent(),x,y);
else if (e.isShiftDown())
extendSelection(x, y);
else {
select(x, y);
handleDoubleClick();
}
}
代码示例来源:origin: JetBrains/jediterm
@Override
protected void processMouseEvent(MouseEvent e) {
super.processMouseEvent(e);
if (e.getID() == MouseEvent.MOUSE_CLICKED) {
if (mySwitchOrientationEnabled
&& e.getClickCount() == 1
&& SwingUtilities.isLeftMouseButton(e) && (SystemInfo.isMac ? e.isMetaDown() : e.isControlDown())) {
mySplitter.setOrientation(!mySplitter.getOrientation());
}
if (myResizeEnabled && e.getClickCount() == 2) {
mySplitter.setProportion(.5f);
}
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
private static boolean onlyShift(MouseEvent e) {
return e.isShiftDown() && !(e.isAltDown() || e.isAltGraphDown() ||
e.isControlDown() || e.isMetaDown());
}
代码示例来源:origin: org.biojava.thirdparty/forester
public static boolean isMouseEventAltered( final MouseEvent event ) {
return event.isShiftDown() || event.isAltDown() || event.isControlDown() || event.isAltGraphDown()
|| event.isMetaDown();
}
//private PlateDisplayPanel _heatMapPanel;
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
private static boolean onlyShift(MouseEvent e) {
return e.isShiftDown() && !(e.isAltDown() || e.isAltGraphDown() ||
e.isControlDown() || e.isMetaDown());
}
代码示例来源:origin: edu.toronto.cs.savant/savant-core
private void setMouseModifier(MouseEvent e) {
GraphPaneController gpc = GraphPaneController.getInstance();
boolean zooming = MiscUtils.MAC ? e.isMetaDown() : e.isControlDown();
boolean selecting = e.isShiftDown() && !zooming;
gpc.setZooming(isDragging && zooming);
gpc.setPanning(isDragging && !zooming && !selecting);
gpc.setSelecting(isDragging && selecting);
}
内容来源于网络,如有侵权,请联系作者删除!