Package org.apache.oodt.cas.workflow.gui.toolbox

Examples of org.apache.oodt.cas.workflow.gui.toolbox.Tool


    this.setLayout(new BorderLayout());
    this.setPreferredSize(new Dimension(1000, 800));

    Vector<Tool> tools = new Vector<Tool>();
    Tool editTool = new Tool(IconLoader.getIcon(IconLoader.EDIT),
        IconLoader.getIcon(IconLoader.EDIT_SELECTED)) {
      private static final long serialVersionUID = 1682845263796161282L;

      @Override
      public void onClick() {
        WorkflowGUI.this.perspective.setMode(View.Mode.EDIT);
      }
    };
    tools.add(editTool);
    Tool deleteTool = new Tool(IconLoader.getIcon(IconLoader.DELETE),
        IconLoader.getIcon(IconLoader.DELETE_SELECTED)) {
      private static final long serialVersionUID = 5050127713254634783L;

      @Override
      public void onClick() {
        WorkflowGUI.this.perspective.setMode(View.Mode.DELETE);
      }
    };
    tools.add(deleteTool);
    Tool moveTool = new Tool(IconLoader.getIcon(IconLoader.MOVE),
        IconLoader.getIcon(IconLoader.MOVE_SELECTED)) {
      private static final long serialVersionUID = 1682845263796161282L;

      @Override
      public void onClick() {
        WorkflowGUI.this.perspective.setMode(View.Mode.MOVE);
      }
    };
    tools.add(moveTool);
    Tool zoomInTool = new Tool(IconLoader.getIcon(IconLoader.ZOOM_IN),
        IconLoader.getIcon(IconLoader.ZOOM_IN_SELECTED)) {
      private static final long serialVersionUID = 1682845263796161282L;

      @Override
      public void onClick() {
        WorkflowGUI.this.perspective.setMode(View.Mode.ZOOM_IN);
      }
    };
    tools.add(zoomInTool);
    Tool zoomOutTool = new Tool(IconLoader.getIcon(IconLoader.ZOOM_OUT),
        IconLoader.getIcon(IconLoader.ZOOM_OUT_SELECTED)) {
      private static final long serialVersionUID = 1682845263796161282L;

      @Override
      public void onClick() {
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.workflow.gui.toolbox.Tool

Copyright © 2018 www.massapicom. 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.