當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。