Examples of Tool


Examples of CH.ifa.draw.framework.Tool

      return drawing;
   }

   protected void createTools(JToolBar palette) {
      super.createTools(palette);
      Tool tool = new UndoableTool(new TextTool(this, new TextFigure()));
      palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new RectangleFigure()));
      palette.add(createToolButton(IMAGES + "RECT", "Rectangle Tool", tool));
View Full Code Here

Examples of Galaxy.Tree.Tool.Tool

      }
    }
    for(String id : toolDB.keySet()){
      Triple<String, String, Tool> currentTool = toolDB.get(id);
      String relativePath = currentTool.getElem1();
      Tool toolToDump = currentTool.getElem3();
      if(toolToDump != null&& relativePath != null ){
        File dir = new File(relativePathToOutputToolPath(getDirectory(id)));
        File absfile = new File(relativePathToOutputToolPath(relativePath));
        dir.mkdirs();
        try {
View Full Code Here

Examples of com.appspot.finajjarane.framework.entities.Tool

  IToolDao toolDao;

  @Override
  public boolean toolCreateNew(ToolModelForDao toolModel) throws Exception {

    Tool tool = ToolModelForDaoToTool(toolModel);
    return toolDao.add(tool);

  }
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

  public Tool getToolFor(int mods) {
    if (mods == cache_mods) {
      return cache_tool;
    } else {
      Tool ret = map.get(Integer.valueOf(mods));
      cache_mods = mods;
      cache_tool = ret;
      return ret;
    }
  }
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

  public Tool getToolFor(Integer mods) {
    if (mods.intValue() == cache_mods) {
      return cache_tool;
    } else {
      Tool ret = map.get(mods);
      cache_mods = mods.intValue();
      cache_tool = ret;
      return ret;
    }
  }
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

  public void copyFrom(MouseMappings other, LogisimFile file) {
    if (this == other) return;
    cache_mods = -1;
    this.map.clear();
    for (Integer mods : other.map.keySet()) {
      Tool srcTool = other.map.get(mods);
      Tool dstTool = file.findTool(srcTool);
      if (dstTool != null) {
        dstTool = dstTool.cloneTool();
        AttributeSets.copy(srcTool.getAttributeSet(),
            dstTool.getAttributeSet());
        this.map.put(mods, dstTool);
      }
    }
    fireMouseMappingsChanged();
  }
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

  //
  void replaceAll(Map<Tool,Tool> toolMap) {
    boolean changed = false;
    for (Map.Entry<Integer,Tool> entry : map.entrySet()) {
      Integer key = entry.getKey();
      Tool tool = entry.getValue();
      if (tool instanceof AddTool) {
        ComponentFactory factory = ((AddTool) tool).getFactory();
        if (toolMap.containsKey(factory)) {
          changed = true;
          Tool newTool = toolMap.get(factory);
          if (newTool == null) {
            map.remove(key);
          } else {
            Tool clone = newTool.cloneTool();
            LoadedLibrary.copyAttributes(clone.getAttributeSet(),
                tool.getAttributeSet());
            map.put(key, clone);
          }
        }
      } else {
        if (toolMap.containsKey(tool)) {
          changed = true;
          Tool newTool = toolMap.get(tool);
          if (newTool == null) {
            map.remove(key);
          } else {
            Tool clone = newTool.cloneTool();
            LoadedLibrary.copyAttributes(clone.getAttributeSet(),
                tool.getAttributeSet());
            map.put(key, clone);
          }
        }
      }
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

  }
 
  void setAttrTableModel(AttrTableModel value) {
    attrTable.setAttrTableModel(value);
    if (value instanceof AttrTableToolModel) {
      Tool tool = ((AttrTableToolModel) value).getTool();
      toolbox.setHaloedTool(tool);
      layoutToolbarModel.setHaloedTool(tool);
    } else {
      toolbox.setHaloedTool(null);
      layoutToolbarModel.setHaloedTool(null);
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

        }
        viewAttributes(proj.getTool());
        computeTitle();
      } else if (action == ProjectEvent.ACTION_SET_TOOL) {
        if (attrTable == null) return; // for startup
        Tool oldTool = (Tool) event.getOldData();
        Tool newTool = (Tool) event.getData();
        viewAttributes(oldTool, newTool, false);
      }
    }
View Full Code Here

Examples of com.cburch.logisim.tools.Tool

      throw new RuntimeException("Cannot remove last circuit");
    }

    int index = getCircuits().indexOf(circuit);
    if (index >= 0) {
      Tool circuitTool = tools.remove(index);

      if (main == circuit) {
        AddTool dflt_tool = tools.get(0);
        SubcircuitFactory factory = (SubcircuitFactory) dflt_tool.getFactory();
        setMainCircuit(factory.getSubcircuit());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.