Пример #1
0
  public Viewer(int width, int height, EstimatedCell[][] nmap) {
    // set frame's title
    super("Brain Viewer");
    // set frame size
    this.setSize(width * SQUARE_SIDE + 30, height * SQUARE_SIDE + 30);

    this.map = new Map(width, height, SQUARE_SIDE);
    map.setPheroMap(nmap);

    this.getContentPane().add(this.map);
    // make this frame visible
    this.setVisible(true);
  }
Пример #2
0
 public void refresh(EstimatedCell[][] fm, int x, int y) {
   map.rob_x = x;
   map.rob_y = y;
   map.setPheroMap(fm);
   map.repaint();
 }