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


Java GraphPanel类代码示例

本文整理汇总了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));
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:17,代码来源:SelectionPanel.java

示例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());
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:23,代码来源:MappingPanel.java

示例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));
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:17,代码来源:SelectionPanel.java

示例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>());
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:9,代码来源:SampleGraphPanel.java

示例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());
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:28,代码来源:MappingPanel.java

示例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>());
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:9,代码来源:SampleGraphPanel.java

示例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);
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:7,代码来源:ViewerContext.java

示例8: getOwner

import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public final GraphPanel<L, LV> getOwner() {
	return owner;
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:4,代码来源:ViewerContext.java

示例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) {
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:7,代码来源:GraphPanelChangeSupport.java

示例10: getGraphPanel

import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public final GraphPanel<L, LV> getGraphPanel() {
	return graphPanel;
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:4,代码来源:GraphPanelChangeSupport.java

示例11: onGraphPanelChange

import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
@Override
protected void onGraphPanelChange(GraphPanel<?, ?> oldValue,
		GraphPanel<?, ?> newValue) {
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:5,代码来源:MappingPanel.java

示例12: MyMouseContext

import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MyMouseContext(GraphPanel<N, LayerViewer<V, E>> owner) {
	super(owner);
}
 
开发者ID:KeepTheBeats,项目名称:alevin-svn2,代码行数:4,代码来源:MyGraphPanel.java

示例13: onGraphPanelChange

import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
@Override
protected void onGraphPanelChange(GraphPanel<?, ?> oldValue,
                                  GraphPanel<?, ?> newValue) {
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:5,代码来源:MappingPanel.java

示例14: MyMouseContext

import mulavito.gui.components.GraphPanel; //导入依赖的package包/类
public MyMouseContext(GraphPanel<N, LayerViewer<V, E>> owner) {
    super(owner);
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:4,代码来源:MyGraphPanel.java

示例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);
}
 
开发者ID:liruixpc11,项目名称:crucian,代码行数:7,代码来源:ViewerContext.java


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