本文整理汇总了Java中com.jogamp.newt.event.MouseEvent.getClickCount方法的典型用法代码示例。如果您正苦于以下问题:Java MouseEvent.getClickCount方法的具体用法?Java MouseEvent.getClickCount怎么用?Java MouseEvent.getClickCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jogamp.newt.event.MouseEvent
的用法示例。
在下文中一共展示了MouseEvent.getClickCount方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mouseClicked
import com.jogamp.newt.event.MouseEvent; //导入方法依赖的package包/类
/**
* Interface method implementation
*
* @see com.jogamp.newt.event.MouseAdapter#mouseClicked(com.jogamp.newt.event.MouseEvent)
*/
@Override
public void mouseClicked(final MouseEvent pMouseEvent)
{
if (mRenderer.notifyEyeRayListeners(mRenderer, pMouseEvent))
return;
if (pMouseEvent.getClickCount() == 1)
{
handleGammaMinMax(pMouseEvent);
}
else if (pMouseEvent.getClickCount() == 2)
{
mRenderer.toggleFullScreen();
mRenderer.notifyChangeOfVolumeRenderingParameters();
}
}
示例2: mouseClicked
import com.jogamp.newt.event.MouseEvent; //导入方法依赖的package包/类
@Override
public void mouseClicked(MouseEvent e) {
int bm = MouseEvent.getButtonMask(e.getButton());
if(e.getClickCount() == 2)
mhf.handleMouseDoubleClick(
(bm & MouseEvent.BUTTON1_MASK) != 0,
(bm & MouseEvent.BUTTON3_MASK) != 0);
else if(e.getClickCount() == 1)
mhf.handleMouseSingleClick(
(bm & MouseEvent.BUTTON1_MASK) != 0,
(bm & MouseEvent.BUTTON3_MASK) != 0);
}
示例3: mouseClicked
import com.jogamp.newt.event.MouseEvent; //导入方法依赖的package包/类
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
camera.reset();
}
}