Package window.graphic

Examples of window.graphic.Line


   * @param y1 Coordinates of first point of the line
   * @param x2 Coordinates of second point of the line
   * @param y2 Coordinates of second point of the line
   */
  public void buildLine(int x1, int y1, int x2, int y2) {
    Line line1 = new Line(x1, y1, x2, y2, new Color(200, 0, 0));
   
    content.setLayout(null);
    line1.setVisible(true);
    line1.setBounds(x1, y1, Math.abs(x2-x1), Math.abs(y2-y1));
    line1.setLayout(null);
    line1.setBorder(null);
    line1.displayLine(0, 0, 0, 0);
    this.setLine(line1);
    content.add(line1);
  }
View Full Code Here

TOP

Related Classes of window.graphic.Line

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.