/*
* Copyright (C) 2013 Maciej Górski
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package pl.mg6.android.maps.extensions;
import com.google.android.gms.maps.model.LatLng;
import java.util.List;
public class PolygonOptions {
public final com.google.android.gms.maps.model.PolygonOptions real = new com.google.android.gms.maps.model.PolygonOptions();
private Object data;
public PolygonOptions add(LatLng point) {
real.add(point);
return this;
}
public PolygonOptions add(LatLng... points) {
real.add(points);
return this;
}
public PolygonOptions addAll(Iterable<LatLng> points) {
real.addAll(points);
return this;
}
public PolygonOptions addHole(Iterable<LatLng> points) {
real.addHole(points);
return this;
}
public PolygonOptions data(Object data) {
this.data = data;
return this;
}
public PolygonOptions fillColor(int color) {
real.fillColor(color);
return this;
}
public PolygonOptions geodesic(boolean geodesic) {
real.geodesic(geodesic);
return this;
}
public Object getData() {
return data;
}
public int getFillColor() {
return real.getFillColor();
}
public List<List<LatLng>> getHoles() {
return real.getHoles();
}
public List<LatLng> getPoints() {
return real.getPoints();
}
public int getStrokeColor() {
return real.getStrokeColor();
}
public float getStrokeWidth() {
return real.getStrokeWidth();
}
public float getZIndex() {
return real.getZIndex();
}
public boolean isGeodesic() {
return real.isGeodesic();
}
public boolean isVisible() {
return real.isVisible();
}
public PolygonOptions strokeColor(int color) {
real.strokeColor(color);
return this;
}
public PolygonOptions strokeWidth(float width) {
real.strokeWidth(width);
return this;
}
public PolygonOptions visible(boolean visible) {
real.visible(visible);
return this;
}
public PolygonOptions zIndex(float zIndex) {
real.zIndex(zIndex);
return this;
}
}