コード例 #1
0
ファイル: View.java プロジェクト: ronsmits/java
  public void copyLayoutInformationFrom(View source) {
    this.setPaperSize(source.getPaperSize());

    for (ElementView sourceElementView : source.getElements()) {
      ElementView destinationElementView = findElementView(sourceElementView);
      if (destinationElementView != null) {
        destinationElementView.copyLayoutInformationFrom(sourceElementView);
      }
    }

    for (RelationshipView sourceRelationshipView : source.getRelationships()) {
      RelationshipView destinationRelationshipView = findRelationshipView(sourceRelationshipView);
      if (destinationRelationshipView != null) {
        destinationRelationshipView.copyLayoutInformationFrom(sourceRelationshipView);
      }
    }
  }
コード例 #2
0
ファイル: View.java プロジェクト: ronsmits/java
 @Override
 public int compareTo(View view) {
   return getTitle().compareTo(view.getTitle());
 }