prefuse.controls.ZoomToFitControl类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中prefuse.controls.ZoomToFitControl类的一些代码示例,展示了ZoomToFitControl类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoomToFitControl类的具体详情如下:
包路径:prefuse.controls.ZoomToFitControl
类名称:ZoomToFitControl

ZoomToFitControl介绍

[英]Zooms a display such that all items within a given group will fit within the display bounds. By default, this achieved by clicking the right mouse button once, with no dragging.
[中]缩放显示,使给定组中的所有项目都符合显示范围。默认情况下,只需单击鼠标右键一次即可实现,无需拖动。

代码示例

代码示例来源:origin: de.sciss/prefuse-core

/**
 * @see prefuse.controls.Control#itemClicked(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
 */
public void itemClicked(VisualItem item, MouseEvent e) {
  if ( m_zoomOverItem )
    mouseClicked(e);
}

代码示例来源:origin: es.ucm.fdi.gaia/jCOLIBRI

dis.addControlListener(new PanControl()); 
dis.addControlListener(new ZoomControl());
dis.addControlListener(new ZoomToFitControl());

代码示例来源:origin: neueda/jetbrains-plugin-graph-database-support

addControlListener(new ZoomToFitControl());
addControlListener(new PanControl());
highlightControl = new CustomNeighborHighlightControl();

代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseGraph

display.addControlListener(new ZoomControl());
display.addControlListener(new WheelZoomControl());
display.addControlListener(new ZoomToFitControl());
display.addControlListener(new NeighborHighlightControl());

代码示例来源:origin: nz.ac.waikato.cms.weka/prefuseTree

addControlListener(new ZoomToFitControl());
addControlListener(new ZoomControl());
addControlListener(new WheelZoomControl());

代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage

addControlListener( new ZoomToFitControl() );
addControlListener( new ZoomControl() );
addControlListener( new WheelZoomControl() );

相关文章

ZoomToFitControl类方法