Package window.graphic

Examples of window.graphic.LineCursor


   * @param y1 Coordinates of first point of the lineCursor
   * @param x2 Coordinates of second point of the lineCursor
   * @param y2 Coordinates of second point of the lineCursor
   */
  public void buildLineCursor(int x1, int y1, int x2, int y2) {
    LineCursor lineCursor = new LineCursor(x1, y1, x2, y2, new Color(0, 150, 250));
   
    content.setLayout(null);
    lineCursor.setVisible(true);
    lineCursor.setBounds(x1, y1, Math.abs(x2-x1), Math.abs(y2-y1));
    lineCursor.setLayout(null);
    lineCursor.setBorder(null);
    lineCursor.displayLine(0, 0, 0, 0);
    this.setLineCursor(lineCursor);
    content.add(lineCursor);
  }
View Full Code Here

TOP

Related Classes of window.graphic.LineCursor

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.