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


Java MutableAffineTransformer类代码示例

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


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

示例1: setTransform

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
@Override
public void setTransform(Transform transform) {
	this.transform = transform;

	MutableAffineTransformer transformer = (MutableAffineTransformer) viewer.getRenderContext()
			.getMultiLayerTransformer().getTransformer(Layer.LAYOUT);

	transformer.setToIdentity();
	transformer.concatenate(transform.toAffineTransform());
	applyTransform();
	viewer.repaint();
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:13,代码来源:Canvas.java

示例2: SatelliteVisualizationViewer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
/**
 * Used internally, as the satellite should always share the model of the master
 * @param master the master view
 * @param model
 * @param renderer
 * @param preferredSize
 */
protected SatelliteVisualizationViewer(VisualizationViewer<V,E> master, VisualizationModel<V,E> model,
        Dimension preferredSize) {
    super(model, preferredSize);
    this.master = master;
    
    // create a graph mouse with custom plugins to affect the master view
    ModalGraphMouse gm = new ModalSatelliteGraphMouse();
    setGraphMouse(gm);
    
    // this adds the Lens to the satellite view
    addPreRenderPaintable(new ViewLens<V,E>(this, master));
    
    // get a copy of the current layout transform
    // it may have been scaled to fit the graph
    AffineTransform modelLayoutTransform =
        new AffineTransform(master.getRenderContext().getMultiLayerTransformer().getTransformer(Layer.LAYOUT).getTransform());
    
    // I want no layout transformations in the satellite view
    // this resets the auto-scaling that occurs in the super constructor
    getRenderContext().getMultiLayerTransformer().setTransformer(Layer.LAYOUT, new MutableAffineTransformer(modelLayoutTransform));
    
    // make sure the satellite listens for changes in the master
    master.addChangeListener(this);
    
    // share the picked state of the master
    setPickedVertexState(master.getPickedVertexState());
    setPickedEdgeState(master.getPickedEdgeState());
}
 
开发者ID:SiLeBAT,项目名称:BfROpenLab,代码行数:36,代码来源:SatelliteVisualizationViewer.java

示例3: SatelliteVisualizationViewer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
/**
 * @param master the master view
 * @param model
 * @param renderer
 * @param preferredSize
 */
public SatelliteVisualizationViewer(VisualizationViewer master, VisualizationModel model,
        Renderer renderer, Dimension preferredSize) {
    super(model, renderer, preferredSize);
    this.master = master;
    
    // create a graph mouse with custom plugins to affect the master view
    ModalGraphMouse gm = new ModalSatelliteGraphMouse();
    setGraphMouse(gm);
    
    // this adds the Lens to the satellite view
    addPreRenderPaintable(new ViewLens(this, master));
    
    // get a copy of the current layout transform
    // it may have been scaled to fit the graph
    AffineTransform modelLayoutTransform =
        new AffineTransform(master.getLayoutTransformer().getTransform());
    
    // I want no layout transformations in the satellite view
    // this resets the auto-scaling that occurs in the super constructor
    setLayoutTransformer(new MutableAffineTransformer(modelLayoutTransform));
    
    // make sure the satellite listens for changes in the master
    master.addChangeListener(this);
    
    // share the picked state of the master
    setPickedState(master.getPickedState());
    setPickSupport(new ShapePickSupport());
}
 
开发者ID:markus1978,项目名称:clickwatch,代码行数:35,代码来源:SatelliteVisualizationViewer.java

示例4: TransformingPluggableRenderer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
/**
 * create an instance
 *
 */
public TransformingPluggableRenderer(PluggableRenderer delegate) {
    super(delegate);
    this.transformer = new MutableAffineTransformer();
    this.tg2d = new TransformingGraphics(transformer);
}
 
开发者ID:markus1978,项目名称:clickwatch,代码行数:10,代码来源:TransformingPluggableRenderer.java

示例5: getViewTransformer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
@Override
public MutableAffineTransformer getViewTransformer() {
    return viewTransformer;
}
 
开发者ID:datagr4m,项目名称:org.datagr4m,代码行数:5,代码来源:View.java

示例6: setViewTransformer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
@Override
public void setViewTransformer(MutableAffineTransformer viewTransformer) {
    this.viewTransformer = viewTransformer;
}
 
开发者ID:datagr4m,项目名称:org.datagr4m,代码行数:5,代码来源:View.java

示例7: getViewTransformer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
public MutableAffineTransformer getViewTransformer(); 
开发者ID:datagr4m,项目名称:org.datagr4m,代码行数:2,代码来源:IView.java

示例8: setViewTransformer

import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
public void setViewTransformer(MutableAffineTransformer viewTransformer); 
开发者ID:datagr4m,项目名称:org.datagr4m,代码行数:2,代码来源:IView.java


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