Android Open Source - elf.map.android Size






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  w ww  .  j a va  2  s.c o m
 * Author: elf
 * EMail: elf198012@gmail.com
 */

package elf.map;

public class Size{
  public Size(){}

  public Size(long width, long height){
    Set(width, height);
  }

  public Size(Size size){
    Set(size.Width(), size.Height());
  }

  public long Width(){
    return _width;
  }
  
  public long Height(){
    return _height;
  }
  
  public void SetWidth(long width){
    this._width = width;
  }

  public void SetHeight(long height){
    this._height = height;
  }

  public void Set(long width, long height){
    SetWidth(width);
    SetHeight(height);
  }

  public void Set(Size size){
    Set(size.Width(), size.Height());
  }

  private long _width;
  private long _height;
}




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