Example #1
0
  public void zoomin() {

    if (View_Cell.getCell_height() <= 8) {

      View_Cell.setCell_height(View_Cell.getCell_height() + 1);
      View_Cell.setCell_width(View_Cell.getCell_width() + 1);
    } else if (View_Cell.getCell_height() > 8) {

      View_Cell.setCell_height(View_Cell.getCell_height() + 2);
      View_Cell.setCell_width(View_Cell.getCell_width() + 2);
    }

    this.createGrid();
  }
Example #2
0
  public View_ForestArea(Window win) {

    this.parent = win;
    View_ForestArea.map_border = true;

    Controller_ForestArea ctr = new Controller_ForestArea();

    View_Cell.setCell_height(12);
    View_Cell.setCell_width(12);

    this.setBackground(Color.decode("#DDDDDD"));
    this.gbl = new GridBagLayout();
    this.setLayout(this.gbl);

    this.gbc = new GridBagConstraints();
    this.gbc.gridheight = 1;
    this.gbc.gridwidth = 1;

    this.createGrid();
  }
Example #3
0
  public void zoomout() {
    System.out.println(View_Cell.getCell_height());
    if (View_Cell.getCell_height() > 1 && View_Cell.getCell_height() <= 8) {

      View_Cell.setCell_height(View_Cell.getCell_height() - 1);
      View_Cell.setCell_width(View_Cell.getCell_width() - 1);
    } else if (View_Cell.getCell_height() > 8) {

      View_Cell.setCell_height(View_Cell.getCell_height() - 2);
      View_Cell.setCell_width(View_Cell.getCell_width() - 2);
    }

    this.createGrid();
  }