Examples of printAsGrid()


Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

    if(DEBUG){
      System.out.println("******* Distinct shapes found using AbstractionGrid *******");
      Iterator<CellSet> dit = boundarySetsStep1.iterator();
      while (dit.hasNext()) {
        CellSet set = dit.next();
        set.printAsGrid();
      }
      System.out.println("******* Same set of shapes after processing them by filling *******");
    }
   
   
 
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

    if(DEBUG){
      Iterator<CellSet> dit = boundarySetsStep2.iterator();
      while (dit.hasNext()) {
        CellSet set = dit.next();
        set.printAsGrid();
      }
    }

    int originalSize = boundarySetsStep2.size();
    boundarySetsStep2 = CellSet.removeDuplicateSets(boundarySetsStep2);
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

      else if(type == CellSet.TYPE_MIXED) mixed.add(set);
      if(DEBUG){
        if(type == CellSet.TYPE_CLOSED) System.out.println("Closed boundaries:");
        else if(type == CellSet.TYPE_OPEN) System.out.println("Open boundaries:");
        else if(type == CellSet.TYPE_MIXED) System.out.println("Mixed boundaries:");
        set.printAsGrid();
      }
    }
   
    boolean hadToEliminateMixed = false;
   
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

        else if(type == CellSet.TYPE_MIXED) mixed.add(set);
        if(DEBUG){
          if(type == CellSet.TYPE_CLOSED) System.out.println("Closed boundaries:");
          else if(type == CellSet.TYPE_OPEN) System.out.println("Open boundaries:");
          else if(type == CellSet.TYPE_MIXED) System.out.println("Mixed boundaries:");
          set.printAsGrid();
        }
      }
    }

    boolean removedAnyObsolete = removeObsoleteShapes(workGrid, closed);
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

    sets = closed.iterator();
    while(sets.hasNext()){
      CellSet set = (CellSet) sets.next();
     
      if(DEBUG_MAKE_SHAPES) {
        set.printAsGrid();
      }
     
      DiagramComponent shape = DiagramComponent.createClosedFromBoundaryCells(workGrid, set, cellWidth, cellHeight, allCornersRound);
      if(shape != null){
        if(shape instanceof DiagramShape){
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

    if(DEBUG_VERBOSE) {
      System.out.println("******* Sets before *******");
      it = sets.iterator();
      while(it.hasNext()){
        CellSet set = (CellSet) it.next();
        set.printAsGrid();
      }
    }

    //make filled versions of all the boundary sets
    it = sets.iterator();
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

    while(it.hasNext()){
      CellSet set = (CellSet) it.next();
     
      if(DEBUG_VERBOSE){
        System.out.println("*** Deciding if the following should be removed:");
        set.printAsGrid();
      }
     
      //find the other sets that have common cells with set
      ArrayList<CellSet> common = new ArrayList<CellSet>();
      common.add(set);
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

      it2 = common.iterator();
      while(it2.hasNext()){
        CellSet set2 = (CellSet) it2.next();
        if(DEBUG_VERBOSE){
          System.out.println("One of smalls:");
          set2.printAsGrid();
        }
        gridOfSmalls.fillCellsWith(set2, '*');
      }
      if(DEBUG_VERBOSE){
        System.out.println("Sum of smalls:");
View Full Code Here

Examples of org.stathissideris.ascii2image.text.CellSet.printAsGrid()

    if(DEBUG_VERBOSE) {
      System.out.println("******* Sets after *******");
      it = sets.iterator();
      while(it.hasNext()){
        CellSet set = (CellSet) it.next();
        set.printAsGrid();
      }
    }
   
    return removedAny;
  }
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.