本文整理汇总了Java中mulavito.gui.components.GraphPanel类的典型用法代码示例。如果您正苦于以下问题:Java GraphPanel类的具体用法?Java GraphPanel怎么用?Java GraphPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GraphPanel类属于mulavito.gui.components包,在下文中一共展示了GraphPanel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SelectionPanel
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public SelectionPanel(DefaultSelectionTreeModel model,
GraphPanel<?, ?> graphpanel) {
super(graphpanel);
getTree().setModel(model);
model.setOwner(this);
// Allow multiple roots (vertices and edges)
getTree().setRootVisible(false);
// tree.setShowsRootHandles(true);
listener = new SelectionTreeItemListener(this);
// Add context menu.
getTree().addMouseListener(new SelectionPanelMouseAdapter(this));
}
示例2: MappingPanel
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MappingPanel(GraphPanel<?, ?> graphpanel) {
super(graphpanel);
// Allow multiple roots, the virtual networks.
getTree().setRootVisible(false);
getTree().setShowsRootHandles(true);
listener = new MappingTreeChangeListener(this);
// Add context menu.
getTree().addMouseListener(new MappingPanelMouseAdapter());
setToolTipText("Right click to open context menu");
// Selection.
getTree().getSelectionModel().setSelectionMode(
DefaultTreeSelectionModel.SINGLE_TREE_SELECTION);
getTree().addTreeSelectionListener(
new MappingTreeSelectionListener(this));
// Color highlighting of current selection.
getTree().setCellRenderer(new MappingTreeCellRenderer());
}
示例3: SelectionPanel
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public SelectionPanel(DefaultSelectionTreeModel model,
GraphPanel<?, ?> graphpanel) {
super(graphpanel);
getTree().setModel(model);
model.setOwner(this);
// Allow multiple roots (vertices and edges)
getTree().setRootVisible(false);
// tree.setShowsRootHandles(true);
listener = new SelectionTreeItemListener(this);
// Add context menu.
getTree().addMouseListener(new SelectionPanelMouseAdapter(this));
}
示例4: MyMouseContext
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MyMouseContext(GraphPanel<MyL, LayerViewer<MyV, MyE>> owner) {
super(owner);
mouse = new PluggableGraphMouse();
mouse.add(new ScalingGraphMousePlugin(
new CrossoverScalingControl(), Event.CTRL_MASK, 1 / 1.1f,
1.1f));
mouse.add(new PickingGraphMousePlugin<MyV, MyE>());
}
示例5: MappingPanel
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MappingPanel(GraphPanel<?, ?> graphpanel, Scenario scenario) {
super(graphpanel);
// createTreeModel requires this.scenario,
// therefore it cannot be called from super constructor.
this.scenario = scenario;
_createTreeModel();
// Allow multiple roots, the virtual networks.
getTree().setRootVisible(false);
getTree().setShowsRootHandles(true);
listener = new MappingTreeChangeListener(this);
// Add context menu.
getTree().addMouseListener(new MappingPanelMouseAdapter());
setToolTipText("Right click to open context menu");
// Selection.
getTree().getSelectionModel().setSelectionMode(
DefaultTreeSelectionModel.SINGLE_TREE_SELECTION);
getTree().addTreeSelectionListener(
new MappingTreeSelectionListener(this));
// Color highlighting of current selection.
getTree().setCellRenderer(new MappingTreeCellRenderer());
}
示例6: MyMouseContext
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MyMouseContext(GraphPanel<MyL, LayerViewer<MyV, MyE>> owner) {
super(owner);
mouse = new PluggableGraphMouse();
mouse.add(new ScalingGraphMousePlugin(
new CrossoverScalingControl(), Event.CTRL_MASK, 1 / 1.1f,
1.1f));
mouse.add(new PickingGraphMousePlugin<MyV, MyE>());
}
示例7: ViewerContext
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public ViewerContext(GraphPanel<L, LV> owner) {
if (owner == null)
throw new IllegalArgumentException();
this.owner = owner;
owner.addContext(this);
}
示例8: getOwner
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public final GraphPanel<L, LV> getOwner() {
return owner;
}
示例9: onGraphPanelChange
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
/**
* free for you to override. triggered before the change appears.
*/
protected void onGraphPanelChange(GraphPanel<L, LV> oldValue,
GraphPanel<L, LV> newValue) {
}
示例10: getGraphPanel
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public final GraphPanel<L, LV> getGraphPanel() {
return graphPanel;
}
示例11: onGraphPanelChange
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
@Override
protected void onGraphPanelChange(GraphPanel<?, ?> oldValue,
GraphPanel<?, ?> newValue) {
}
示例12: MyMouseContext
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MyMouseContext(GraphPanel<N, LayerViewer<V, E>> owner) {
super(owner);
}
示例13: onGraphPanelChange
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
@Override
protected void onGraphPanelChange(GraphPanel<?, ?> oldValue,
GraphPanel<?, ?> newValue) {
}
示例14: MyMouseContext
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MyMouseContext(GraphPanel<N, LayerViewer<V, E>> owner) {
super(owner);
}
示例15: ViewerContext
import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public ViewerContext(GraphPanel<L, LV> owner) {
if (owner == null)
throw new IllegalArgumentException();
this.owner = owner;
owner.addContext(this);
}