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

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


    JToolBar toolBar = new JToolBar();

    // 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
View Full Code Here


    item.addActionListener(new SelectToolActionListener(boardState, new DotDrawingTool()));
    menu.add(item);

    // line
    item = new JMenuItem("Line", 'l');
    item.addActionListener(new SelectToolActionListener(boardState, new StraightLineDrawingTool(mainWindow.getDrawingArea())));
    item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
    menu.add(item);

    // rectangle
    item = new JMenuItem("Rectangle", 'r');
View Full Code Here

TOP

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

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.