Examples of QGraphicsLineItem


Examples of com.trolltech.qt.gui.QGraphicsLineItem

  public void setWireEnumerator(WireEnumerator we){
    this.we = we;
  }

  public void drawWire(Tile src, Tile dst){
    QGraphicsLineItem line = new QGraphicsLineItem(
        src.getColumn()*tileSize  + tileSize/2,
        src.getRow()*tileSize + tileSize/2,
        dst.getColumn()*tileSize + tileSize/2,
        dst.getRow()*tileSize + tileSize/2);
    line.setPen(wirePen);
    addItem(line);
  }
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.