本文整理汇总了Java中com.cburch.logisim.tools.EditTool类的典型用法代码示例。如果您正苦于以下问题:Java EditTool类的具体用法?Java EditTool怎么用?Java EditTool使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditTool类属于com.cburch.logisim.tools包,在下文中一共展示了EditTool类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Base
import com.cburch.logisim.tools.EditTool; //导入依赖的package包/类
public Base() {
SelectTool select = new SelectTool();
WiringTool wiring = new WiringTool();
tools = Arrays.asList(new Tool[] { new PokeTool(), new EditTool(select, wiring), select, wiring, new TextTool(),
new MenuTool(), new AddTool(Text.FACTORY), });
}
示例2: findTool
import com.cburch.logisim.tools.EditTool; //导入依赖的package包/类
private Tool findTool(List<? extends Tool> opts) {
Tool ret = null;
for (Tool o : opts) {
if (ret == null && o != null)
ret = o;
else if (o instanceof EditTool)
ret = o;
}
return ret;
}
示例3: Base
import com.cburch.logisim.tools.EditTool; //导入依赖的package包/类
public Base() {
SelectTool select = new SelectTool();
WiringTool wiring = new WiringTool();
tools = Arrays.asList(new Tool[] { new PokeTool(),
new EditTool(select, wiring), select, wiring, new TextTool(),
new MenuTool(), new AddTool(Text.FACTORY), });
}
示例4: findTool
import com.cburch.logisim.tools.EditTool; //导入依赖的package包/类
private Tool findTool(List<? extends Tool> opts) {
Tool ret = null;
for (Tool o : opts) {
if (ret == null && o != null) {
ret = o;
} else if (o instanceof EditTool) {
ret = o;
}
}
return ret;
}
示例5: Base
import com.cburch.logisim.tools.EditTool; //导入依赖的package包/类
public Base() {
SelectTool select = new SelectTool();
WiringTool wiring = new WiringTool();
tools = Arrays.asList(new Tool[] {
new PokeTool(),
new EditTool(select, wiring),
select,
wiring,
new TextTool(),
new MenuTool(),
new AddTool(Text.FACTORY),
});
}
示例6: findTool
import com.cburch.logisim.tools.EditTool; //导入依赖的package包/类
private Tool findTool( List<? extends Tool> opts ) {
Tool ret = null;
for( Tool o : opts ) {
if( ret == null && o != null ) ret = o;
else if( o instanceof EditTool ) ret = o;
}
return ret;
}