Android Open Source - elf.map.android Point






From Project

Back to project page elf.map.android.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project elf.map.android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * License: Public Domain//from  ww  w.  ja  v a 2s . co  m
 * Author: elf
 * EMail: elf198012@gmail.com
 */

package elf.map;

public class Point{
  public Point(){}

  public Point(long x, long y){
    Set(x, y);
  }

  public Point(Point point){
    Set(point.X(), point.Y());
  }

  public long X(){
    return _x;
  }
  
  public long Y(){
    return _y;
  }

  public void SetX(long x){
    this._x = x;
  }
  
  public void SetY(long y){
    this._y = y;
  }

  public void Set(long x, long y){
    SetX(x);
    SetY(y);
  }

  public void Set(Point point){
    Set(point.X(), point.Y());
  }

  public void Offset(long x, long y){
    _x += x;
    _y += y;
  }

  private long _x;
  private long _y;
}




Java Source Code List

elf.map.Area.java
elf.map.Line.java
elf.map.Location.java
elf.map.MainActivity.java
elf.map.MapPainter.java
elf.map.MapStyle.java
elf.map.MapView.java
elf.map.Map.java
elf.map.NamedLocation.java
elf.map.Point.java
elf.map.Rect.java
elf.map.Size.java
elf.map.Tile.java
elf.map.WaterWay.java
elf.map.Water.java
elf.map.Way.java