本文整理汇总了Java中prefuse.controls.Control类的典型用法代码示例。如果您正苦于以下问题:Java Control类的具体用法?Java Control怎么用?Java Control使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Control类属于prefuse.controls包,在下文中一共展示了Control类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: onTouchEvent
import prefuse.controls.Control; //导入依赖的package包/类
@Override
public boolean onTouchEvent(MotionEvent event)
{
/**
* set to all controlers the display
*/
Object[] lstnrs = m_controls.getArray();
for (int i = 0; i < lstnrs.length; ++i)
{
Control ctrl = (Control) lstnrs[i];
ctrl.setDisplay(this);
}
int maskedAction = event.getActionMasked();
switch (maskedAction)
{
case MotionEvent.ACTION_DOWN:
case MotionEvent.ACTION_POINTER_DOWN:
{
Point p = new Point((int) event.getX(), (int) event.getY());
activeItem = findItem(p);
if (activeItem != null)
{
inputEC.fireItemEntered(activeItem, event);
} else
{
inputEC.fireTouchDown(event);
}
break;
}
case MotionEvent.ACTION_MOVE:
{ // a pointer was moved
// TODO use data
break;
}
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_POINTER_UP:
case MotionEvent.ACTION_CANCEL:
{
// TODO use data
break;
}
}
boolean retVal = mScaleGestureDetector.onTouchEvent(event);
retVal = mGestureDetector.onTouchEvent(event) || retVal;
retVal = retVal || super.onTouchEvent(event);
return retVal;
}
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:52,代码来源:PDisplay.java
示例17: addControlListener
import prefuse.controls.Control; //导入依赖的package包/类
/**
* Adds a ControlListener to receive all input events on VisualItems.
*
* @param cl
* the listener to add.
*/
public void addControlListener(Control cl)
{
m_controls.add(cl);
}
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:11,代码来源:PDisplay.java
示例18: removeControlListener
import prefuse.controls.Control; //导入依赖的package包/类
/**
* Removes a registered ControlListener.
*
* @param cl
* the listener to remove.
*/
public void removeControlListener(Control cl)
{
m_controls.remove(cl);
}
开发者ID:dritanlatifi,项目名称:AndroidPrefuse,代码行数:11,代码来源:PDisplay.java
注:本文中的prefuse.controls.Control类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论