Package chunmap.view

Examples of chunmap.view.View


  }

  public void mouseReleased(MouseEvent e) {
    if (draging) {

      View view=map.getView();
     
      int dx = e.getX() - x;
      int dy = e.getY() - y;
     
      double w = view.getWidth() / 2d - dx;
            double h = view.getHeight() / 2d - dy;

            double xx = view.x2World(w);
            double yy = view.y2World(h);

      MoveToCommand cmd = new MoveToCommand(map, xx, yy);
      map.executeCommand(cmd);

      draging = false;
View Full Code Here


    throw new CMAssert.AssertionEexception("error on cut to tile");
  }

  private void init(int width, int height) {
    View view = new ViewPort(width, height,buffer);
    Painter painter = new Painter(width + buffer, height + buffer);

    map = new Map(view, painter);

    // Load data
View Full Code Here

TOP

Related Classes of chunmap.view.View

Copyright © 2018 www.massapicom. 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.