Examples of DotDrawingTool


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

  public JToolBar createToolBar(BoardState state, MainWindow mainWindow) {
    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());
View Full Code Here

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

    menu.setMnemonic('t');

    // dot
    JMenuItem item = new JMenuItem("Dot", 'd');
    item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, ActionEvent.CTRL_MASK));
    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())));
View Full Code Here

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

   */
  public BoardState() {
    super();
    filename = null;
    dirty = false;
    drawingTool = new DotDrawingTool();
    thickness = 3;
    color = Color.BLACK;
    fillColor = Color.WHITE;
  }
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.