本文整理匯總了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;
}