Package net.sf.arianne.marboard.client.gui.drawingtool

Examples of net.sf.arianne.marboard.client.gui.drawingtool.RectangleDrawingTool


    // create buttons for the drawing tools
    toolBar.add(createAction(state, "arrow.gif", new ShapePickerDrawingTool(mainWindow.getDrawingArea())));
    toolBar.add(createAction(state, "dot.png", new DotDrawingTool()));
    toolBar.add(createAction(state, "line.png", new StraightLineDrawingTool(mainWindow.getDrawingArea())));
    toolBar.add(createAction(state, "rectangle.png", new RectangleDrawingTool(mainWindow.getDrawingArea())));
    toolBar.add(createAction(state, "circle.png", new OvalDrawingTool(mainWindow.getDrawingArea())));
    toolBar.add(new JToolBar.Separator());

    // create a color chooser button
    AbstractColorChooserButton colorButton = new ColorChooserButton(state);
View Full Code Here


    item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
    menu.add(item);

    // rectangle
    item = new JMenuItem("Rectangle", 'r');
    item.addActionListener(new SelectToolActionListener(boardState, new RectangleDrawingTool(mainWindow.getDrawingArea())));
    item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK));
    menu.add(item);
  }
View Full Code Here

TOP

Related Classes of net.sf.arianne.marboard.client.gui.drawingtool.RectangleDrawingTool

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.