本文整理汇总了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();
}
示例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());
}
示例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());
}
示例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);
}
示例5: getViewTransformer
import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
@Override
public MutableAffineTransformer getViewTransformer() {
return viewTransformer;
}
示例6: setViewTransformer
import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
@Override
public void setViewTransformer(MutableAffineTransformer viewTransformer) {
this.viewTransformer = viewTransformer;
}
示例7: getViewTransformer
import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
public MutableAffineTransformer getViewTransformer();
示例8: setViewTransformer
import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer; //导入依赖的package包/类
public void setViewTransformer(MutableAffineTransformer viewTransformer);