• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java BasicMarqueeHandler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: GraphMouseListener

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
public GraphMouseListener(Mediator mediator) {
	insert = new InsertState(mediator);
	this.mediator = mediator;
	currentState = nothing = new UIStateDefault(mediator);
	select = new SelectState(mediator, this);
	connect = new ConnectState(mediator, this);
	marquee = new BasicMarqueeHandler();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:9,代码来源:GraphMouseListener.java


示例2: GraphMouseListner

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
public GraphMouseListner(Mediator mediator) {
	insert = new InsertState(mediator);
	this.mediator = mediator;
	currentState = nothing = new UIStateDefault(mediator);
	select = new SelectState(mediator, this);
	connect = new ConnectState(mediator, this);
	marquee = new BasicMarqueeHandler();
}
 
开发者ID:HOMlab,项目名称:QN-ACTR-Release,代码行数:9,代码来源:GraphMouseListner.java


示例3: createMarqueeHandler

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
/**
 * Factory method for the marquee handler. This marquee handler ensures that
 * mouse right-clicks don't deselect.
 */
protected BasicMarqueeHandler createMarqueeHandler() {
    return new BasicMarqueeHandler() {
        @Override
        public void mousePressed(MouseEvent evt) {
            if (evt.getButton() != MouseEvent.BUTTON3) {
                super.mousePressed(evt);
            }
        }
    };
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:15,代码来源:JGraph.java


示例4: updateHandlers

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
/**
 * Updates the handlers toggle buttons to the current editors board handler.
 */
public void updateHandlers() {
	TBoard board = editor.getCurrentBoard();
	BasicMarqueeHandler handler = null;

	if (board != null)
		handler = board.getMarqueeHandler();

	if (handler != null) {

		if (handler instanceof TCellMarqueeHandler)
			cellButton.setSelected(true);
		else if (handler instanceof TControllerCellMarqueeHandler)
			controllerCellButton.setSelected(true);
	/**/	else if (handler instanceof TGridMarqueeHandler)
			gridButton.setSelected(true);/**/
		else if (handler instanceof TTextAreaMarqueeHandler)
			textAreaButton.setSelected(true);
		else if (handler instanceof TLabelMarqueeHandler)
			labelButton.setSelected(true);
		else if (handler instanceof TLineMarqueeHandler)
			lineButton.setSelected(true);
		else if (handler instanceof TOvalMarqueeHandler)
			ovalButton.setSelected(true);
		else if (handler instanceof TRectangleMarqueeHandler)
			rectangleButton.setSelected(true);
		else if (handler instanceof TRoundRectMarqueeHandler)
			roundRectangleButton.setSelected(true);
		else
			selectButton.setSelected(true);
	}
}
 
开发者ID:ProgettoRadis,项目名称:ArasuiteIta,代码行数:35,代码来源:THandlersToolBar.java


示例5: doAction

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
/**
 * The abstract function that descendant classes must be overridden to provide customsized handling.
 *
 * @param e
 * @return true if the action is finished successfully; otherwise, return false.
 */
protected boolean doAction(ActionEvent e)
{
	Object function = getMiddlePanel().getFunctionBoxSelection();
	if (function == null || !(function instanceof FunctionMeta))
	{
		String msg = null;
		if (function == null)
		{
			msg = "No function is selected!";
		}
		else
		{
			msg = "Invalid function type. It is expected to be of type FunctionMeta.";
		}
		JOptionPane.showMessageDialog(getMiddlePanel(), msg, "Warning", JOptionPane.WARNING_MESSAGE);
		setSuccessfullyPerformed(false);
		return false;
	}
	Point2D startPoint = null;
	Object eSource = e.getSource();
	if (eSource instanceof JGraph)
	{
		BasicMarqueeHandler marqueeHandler = ((JGraph) eSource).getMarqueeHandler();
		startPoint = marqueeHandler.getCurrentPoint();
	}
	getController().addFunction((FunctionMeta) function, startPoint);
	setSuccessfullyPerformed(true);
	return isSuccessfullyPerformed();
}
 
开发者ID:NCIP,项目名称:caadapter,代码行数:36,代码来源:AddFunctionalBoxAction.java


示例6: getMarquee

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
public BasicMarqueeHandler getMarquee() {
	return marquee;
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:4,代码来源:GraphMouseListener.java


示例7: createMarqueeHandler

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
protected BasicMarqueeHandler createMarqueeHandler()
{
    return new MyMarqueeHandler();
}
 
开发者ID:tchico,项目名称:dgMaster-trunk,代码行数:5,代码来源:DBWizardEREditor.java


示例8: GraphPanel

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
/**
 * Creates a new GraphPanel with default contents and appearance.
 */
public GraphPanel() {
	
	getGraph().getSelectionModel().addGraphSelectionListener(new WorkflowSelectionListener());
	getGraph().setMarqueeHandler(new BasicMarqueeHandler());

	// getGraph().setDebugGraphicsOptions(DebugGraphics.LOG_OPTION);
	// getGraph().setDoubleBuffered(false);

	this.setMinimumSize(new Dimension(0, 0));

	this.setLayout(new GridBagLayout());

	buttonToolBar = this.getButtonToolBar();
	graphScroller = this.getGraphScroller();

	this.setPreferredSize(new Dimension(VisualConstants.LEFT_PANEL_WIDTH, VisualConstants.GRAPH_PANEL_HEIGHT));
	graphScroller.setPreferredSize(new Dimension(VisualConstants.LEFT_PANEL_WIDTH, VisualConstants.GRAPH_PANEL_HEIGHT));

	GridBagConstraints c = new GridBagConstraints();
	c.fill = GridBagConstraints.HORIZONTAL;
	c.anchor = GridBagConstraints.SOUTH;
	c.gridy = 1;
	this.add(buttonToolBar, c);
	c.gridx = 0;
	c.gridy = 2;
	c.fill = GridBagConstraints.BOTH;
	c.anchor = GridBagConstraints.NORTH;
	c.weightx = 1.0;
	c.weighty = 1.0;
	this.add(graphScroller, c);

	// start listening
	application.addClientEventListener(this);
	application.getDataManager().addDataChangeListener(this);

	graph.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));

	graph.setScale(graph.getScale() / ZOOM_FACTOR);

	// adds vertex renderer which adds the small '+' and '-' buttons to group
	VertexView.renderer = new GraphRenderer();
}
 
开发者ID:chipster,项目名称:chipster,代码行数:46,代码来源:GraphPanel.java


示例9: JmtJGraph

import org.jgraph.graph.BasicMarqueeHandler; //导入依赖的package包/类
/**
 * Returns an instance of <code>JGraph</code> which displays
 * the specified data model using the specified view.
 *
 * @param model  the <code>GraphModel</code> to use as the data model
 * @param mh  the <code>MarqueeHandler</code>
 */
public JmtJGraph(GraphModel model, BasicMarqueeHandler mh, Mediator m) {
	this(model, null, mh, m);
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:11,代码来源:JmtJGraph.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java GsonJsonProvider类代码示例发布时间:2022-05-23
下一篇:
Java TextItem类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap