本文整理汇总了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();
}
示例2: BetterShapePickSupport
import edu.uci.ics.jung.visualization.VisualizationServer; //导入依赖的package包/类
public BetterShapePickSupport(VisualizationServer<V, E> vv) {
this.vv = vv;
}
示例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();
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);