コード例 #1
0
ファイル: Drawing.java プロジェクト: DracZakk/tpAdapter
  public void textShape(String name) {
    if (shapes.size() != 0) {
      for (Shape shape : shapes) {
        shape.setText(name);
      }
      this.repaint();
    }

    if (shapesCloneList.size() != 0) {
      for (Shape shapeClone : shapes) {
        shapeClone.setText(name);
      }
      this.repaint();
    }
  }