当前位置: 首页>>代码示例>>Java>>正文


Java Control.isEnabled方法代码示例

本文整理汇总了Java中prefuse.controls.Control.isEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java Control.isEnabled方法的具体用法?Java Control.isEnabled怎么用?Java Control.isEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在prefuse.controls.Control的用法示例。


在下文中一共展示了Control.isEnabled方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fireItemExited

import prefuse.controls.Control; //导入方法依赖的package包/类
private void fireItemExited(VisualItem item, MotionEvent event)
{
	if (item.isValid())
		item.setHover(false);
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemExited(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:19,代码来源:PDisplay.java

示例2: fireItemMoved

import prefuse.controls.Control; //导入方法依赖的package包/类
private void fireItemMoved(VisualItem item, MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemMoved(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例3: fireItemClicked

import prefuse.controls.Control; //导入方法依赖的package包/类
private void fireItemClicked(VisualItem item, MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemClicked(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例4: fireItemPressed

import prefuse.controls.Control; //导入方法依赖的package包/类
private void fireItemPressed(VisualItem item, MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemPressed(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例5: fireItemReleased

import prefuse.controls.Control; //导入方法依赖的package包/类
private void fireItemReleased(VisualItem item, MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemReleased(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例6: fireItemEntered

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireItemEntered(VisualItem item, MotionEvent event)
{
	item.setHover(true);
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemEntered(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:18,代码来源:PDisplay.java

示例7: fireItemDoubleTaped

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireItemDoubleTaped(VisualItem item, MotionEvent event)
{
	item.setHover(true);
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemDoubleTaped(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:18,代码来源:PDisplay.java

示例8: fireItemLongPres

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireItemLongPres(VisualItem item, MotionEvent event)
{
	item.setHover(true);
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemLongPress(item, event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:18,代码来源:PDisplay.java

示例9: fireItemDragged

import prefuse.controls.Control; //导入方法依赖的package包/类
private void fireItemDragged(VisualItem item, MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.itemDragged(item, e1, e2, distanceX, distanceY);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例10: fireScale

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireScale(ScaleGestureDetector scaleGestureDetector)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.onScale(scaleGestureDetector);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例11: fireLongPress

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireLongPress(MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.onLongPress(event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例12: fireSingleTapUp

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireSingleTapUp(MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.onSingleTapUp(event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例13: fireDoubleTap

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireDoubleTap(MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.onDoubleTap(event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例14: fireTouchDown

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireTouchDown(MotionEvent event)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.onTouchDown(event);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java

示例15: fireScroll

import prefuse.controls.Control; //导入方法依赖的package包/类
public void fireScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
{
	Object[] lstnrs = m_controls.getArray();
	for (int i = 0; i < lstnrs.length; ++i)
	{
		Control ctrl = (Control) lstnrs[i];
		if (ctrl.isEnabled())
			try
			{
				ctrl.onScroll(e1, e2, distanceX, distanceY);
			} catch (Exception ex)
			{
				s_logger.warning("Exception thrown by Control: " + ex + "\n" + StringLib.getStackTrace(ex));
			}
	}
}
 
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:17,代码来源:PDisplay.java


注:本文中的prefuse.controls.Control.isEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。