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


Java ObjectType.LABEL属性代码示例

本文整理汇总了Java中org.pathvisio.core.model.ObjectType.LABEL属性的典型用法代码示例。如果您正苦于以下问题:Java ObjectType.LABEL属性的具体用法?Java ObjectType.LABEL怎么用?Java ObjectType.LABEL使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.pathvisio.core.model.ObjectType的用法示例。


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

示例1: ViewActions

ViewActions(Engine engine, VPathway vp) {
	this.engine = engine;
	vPathway = vp;

	vp.addSelectionListener(this);
	vp.addVPathwayListener(this);

	selectDataNodes = new SelectClassAction("DataNode", GeneProduct.class);
	selectInteractions = new SelectObjectAction("Interactions", ObjectType.LINE);
	selectLines = new SelectObjectAction("Graphical Lines", ObjectType.GRAPHLINE);
	selectShapes = new SelectObjectAction("Shapes", ObjectType.SHAPE);
	selectLabels = new SelectObjectAction("Labels", ObjectType.LABEL);
	selectAll = new SelectAllAction();
	toggleGroup = new GroupAction();
	toggleComplex = new ComplexAction();
	delete1 = new DeleteAction(java.awt.event.KeyEvent.VK_DELETE);
	delete2 = new DeleteAction(java.awt.event.KeyEvent.VK_BACK_SPACE);
	copy = new CopyAction(engine);
	paste = new PasteAction(engine);
	positionPaste = new PositionPasteAction(engine);
	keyMove = new KeyMoveAction(engine, null);
	undo = new UndoAction(engine);
	addAnchor = new AddAnchorAction();
	addWaypoint = new WaypointAction(true);
	removeWaypoint = new WaypointAction(false);
	orderSendToBack = new OrderBottomAction(engine);
	orderBringToFront = new OrderTopAction(engine);
	orderUp = new OrderUpAction(engine);
	orderDown = new OrderDownAction(engine);
	showUnlinked = new ShowUnlinkedConnectors();
	addState = new AddState();
	removeState = new RemoveState();
	formatText = new TextFormattingAction(engine, null);

	registerToGroup(selectDataNodes, GROUP_ENABLE_VPATHWAY_LOADED);
	registerToGroup(selectAll, GROUP_ENABLE_VPATHWAY_LOADED);
	registerToGroup(toggleGroup, GROUP_ENABLE_EDITMODE);
	registerToGroup(toggleGroup, GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(toggleComplex, GROUP_ENABLE_EDITMODE);
	registerToGroup(toggleComplex, GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(delete1, GROUP_ENABLE_EDITMODE);
	registerToGroup(delete1, GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(copy, 	ViewActions.GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(paste, 	ViewActions.GROUP_ENABLE_VPATHWAY_LOADED);
	registerToGroup(paste, 	ViewActions.GROUP_ENABLE_EDITMODE);
	registerToGroup(positionPaste, 	ViewActions.GROUP_ENABLE_VPATHWAY_LOADED);
	registerToGroup(positionPaste, 	ViewActions.GROUP_ENABLE_EDITMODE);
	registerToGroup(keyMove, ViewActions.GROUP_ENABLE_EDITMODE);
	registerToGroup(addAnchor, GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(addWaypoint, GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(removeWaypoint, GROUP_ENABLE_WHEN_SELECTION);
	registerToGroup(showUnlinked, GROUP_ENABLE_VPATHWAY_LOADED);

	resetGroupStates();
}
 
开发者ID:PathVisio,项目名称:pathvisio,代码行数:55,代码来源:ViewActions.java


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