本文整理汇总了Java中com.jogamp.newt.event.MouseEvent.isAltDown方法的典型用法代码示例。如果您正苦于以下问题:Java MouseEvent.isAltDown方法的具体用法?Java MouseEvent.isAltDown怎么用?Java MouseEvent.isAltDown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jogamp.newt.event.MouseEvent
的用法示例。
在下文中一共展示了MouseEvent.isAltDown方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleMoveLight
import com.jogamp.newt.event.MouseEvent; //导入方法依赖的package包/类
protected void handleMoveLight(final MouseEvent pMouseEvent)
{
if (!mMoveLightMode
&& mRenderer.getRenderAlgorithm(mRenderer.getCurrentRenderLayerIndex()) == RenderAlgorithm.IsoSurface
&& !pMouseEvent.isMetaDown()
&& !pMouseEvent.isShiftDown()
&& !pMouseEvent.isControlDown()
&& pMouseEvent.isAltDown()
&& !pMouseEvent.isAltGraphDown()
&& !pMouseEvent.isButtonDown(1))
{
moveLight(pMouseEvent);
}
}
示例2: handleArcBall
import com.jogamp.newt.event.MouseEvent; //导入方法依赖的package包/类
protected void handleArcBall(final MouseEvent pMouseEvent)
{
if (!pMouseEvent.isMetaDown() && !pMouseEvent.isShiftDown()
&& !pMouseEvent.isAltDown()
&& !pMouseEvent.isControlDown()
&& pMouseEvent.isButtonDown(1))
{
final float lMouseX = pMouseEvent.getX();
final float lMouseY = pMouseEvent.getY();
mArcBall.setBounds(mRenderer.getViewportWidth(),
mRenderer.getViewportHeight());
mRenderer.setQuaternion(mArcBall.drag(lMouseX, lMouseY));
}
}
示例3: handleAlphaBlending
import com.jogamp.newt.event.MouseEvent; //导入方法依赖的package包/类
/**
* Sets the transfer function range.
*
* @param pMouseEvent
* mouse event
*/
public void handleAlphaBlending(final MouseEvent pMouseEvent)
{
if (mRenderer.getRenderAlgorithm(mRenderer.getCurrentRenderLayerIndex()) == RenderAlgorithm.MaxProjection
&& !pMouseEvent.isMetaDown()
&& !pMouseEvent.isShiftDown()
&& !pMouseEvent.isControlDown()
&& pMouseEvent.isAltDown()
&& !pMouseEvent.isAltGraphDown()
&& pMouseEvent.isButtonDown(1))
{
final double lWidth = mRenderer.getViewportWidth();
final double nx = (pMouseEvent.getX()) / lWidth;
final double lAlpha = 16 * pow(nx,2);
mRenderer.setAlphaBlending(mRenderer.getCurrentRenderLayerIndex(),
lAlpha);
// System.out.println(lAlpha);
}
/*
System.out.println("_____________________________________");
System.out.println("isAltDown=" + pMouseEvent.isAltDown());
System.out.println("isAltGraphDown="
+ pMouseEvent.isAltGraphDown());
System.out.println("isControlDown="
+ pMouseEvent.isControlDown());
System.out.println("isMetaDown=" + pMouseEvent.isMetaDown());
System.out.println("isShiftDown=" + pMouseEvent.isShiftDown());
/**/
}