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


Java VisualizationServer类代码示例

本文整理汇总了Java中edu.uci.ics.jung.visualization.VisualizationServer的典型用法代码示例。如果您正苦于以下问题:Java VisualizationServer类的具体用法?Java VisualizationServer怎么用?Java VisualizationServer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VisualizationServer类属于edu.uci.ics.jung.visualization包,在下文中一共展示了VisualizationServer类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: scale

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
* zoom the display in or out, depending on the direction of the
* mouse wheel motion.
*/
  public void scale(VisualizationServer vv, float amount, Point2D from) {
      
      Point2D ivtfrom = vv.getRenderContext().getMultiLayerTransformer().inverseTransform(Layer.VIEW, from);
      MutableTransformer modelTransformer = vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT);
      modelTransformer.scale(amount, amount, ivtfrom);
      vv.repaint();
  }
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:12,代码来源:LayoutScalingControl.java

示例2: BetterShapePickSupport

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
public BetterShapePickSupport(VisualizationServer<V, E> vv) {
	this.vv = vv;
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:4,代码来源:BetterShapePickSupport.java

示例3: scale

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
* zoom the display in or out, depending on the direction of the
* mouse wheel motion.
*/
  public void scale(VisualizationServer vv, float amount, Point2D from) {
      MutableTransformer viewTransformer = vv.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.VIEW);
      viewTransformer.scale(amount, amount, from);
      vv.repaint();
  }
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:10,代码来源:ViewScalingControl.java

示例4: ShapePickSupport

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
 * Creates a <code>ShapePickSupport</code> for the <code>vv</code>
 * VisualizationServer, with the specified pick footprint and
 * the default pick style.
 * The <code>VisualizationServer</code> is used to access 
 * properties of the current visualization (layout, renderer,
 * coordinate transformations, vertex/edge shapes, etc.).
 * @param vv source of the current <code>Layout</code>.
 * @param pickSize the size of the pick footprint for line edges
 */
public ShapePickSupport(VisualizationServer<V,E> vv, float pickSize) {
	this.vv = vv;
    this.pickSize = pickSize;
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:15,代码来源:ShapePickSupport.java

示例5: ClosestShapePickSupport

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
    * Creates a <code>ShapePickSupport</code> for the <code>vv</code>
    * VisualizationServer, with the specified pick footprint.
    * The <code>VisualizationServer</code> is used to fetch the current
    * <code>Layout</code>. 
    * @param vv source of the current <code>Layout</code>.
    * @param pickSize the size of the pick footprint for line edges
 */
public ClosestShapePickSupport(VisualizationServer<V,E> vv, float pickSize)
{
	this.vv = vv;
	this.pickSize = pickSize;
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:14,代码来源:ClosestShapePickSupport.java

示例6: ViewLensShapePickSupport

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
 * Create an instance.
 * The HasGraphLayout is used as the source of the current
 * Graph Layout. The HasShapes
 * is used to access the VertexShapes and the EdgeShapes
 * @param hasGraphLayout source of the current layout.
 * @param hasShapeFunctions source of Vertex and Edge shapes.
 * @param pickSize how large to make the pick footprint for line edges
 */
public ViewLensShapePickSupport(VisualizationServer<V,E> vv, float pickSize) {
	super(vv, pickSize);
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:13,代码来源:ViewLensShapePickSupport.java

示例7: LayoutLensShapePickSupport

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
 * Create an instance.
 * The HasGraphLayout is used as the source of the current
 * Graph Layout. The HasShapes
 * is used to access the VertexShapes and the EdgeShapes
 * @param hasGraphLayout source of the current layout.
 * @param hasShapeFunctions source of Vertex and Edge shapes.
 * @param pickSize how large to make the pick footprint for line edges
 */
public LayoutLensShapePickSupport(VisualizationServer<V,E> vv, float pickSize) {
	super(vv,pickSize);
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:13,代码来源:LayoutLensShapePickSupport.java

示例8: scale

import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
/**
 * zoom the display in or out
 * @param vv the VisualizationViewer
 * @param amount how much to adjust scale by
 * @param at where to adjust scale from
 */
void scale(VisualizationServer<?,?> vv, float amount, Point2D at);
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:8,代码来源:ScalingControl.java


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