public class ImageOverlayBuilder
extends java.lang.Object
ImageOverlay
objects.Constructor and Description |
---|
ImageOverlayBuilder() |
Modifier and Type | Method and Description |
---|---|
ImageOverlayBuilder |
alpha(int alpha)
Specifies the transparency of the overlay.
|
ImageOverlay |
build()
Combines all the properties that have been set and returns a new
ImageOverlay object. |
int |
getAlpha() |
GeoPoint |
getNorthWest() |
int |
getResourceId() |
GeoPoint |
getSouthEast() |
int |
getZIndex() |
ImageOverlayBuilder |
image(android.content.Context context,
int resourceId)
Specifies the image to show in the overlay.
|
boolean |
isSelectable() |
boolean |
isVisible() |
ImageOverlayBuilder |
nw(double latitude,
double longitude)
Sets the North-West anchor point of the overlay being built.
|
ImageOverlayBuilder |
nw(GeoPoint nw)
Sets the North-West anchor point of the overlay being built.
|
ImageOverlayBuilder |
nw(GeoPoint nw,
GeoPoint se)
Adds both anchor points to the overlay being built.
|
ImageOverlayBuilder |
nw(android.location.Location nw)
Sets the North-West anchor point of the overlay being built.
|
ImageOverlayBuilder |
nwse(double nwLatitude,
double nwLongitude,
double seLatitude,
double seLongitude)
Adds both anchor points to the overlay being built.
|
ImageOverlayBuilder |
nwse(android.location.Location nw,
android.location.Location se)
Adds both anchor points to the overlay being built.
|
ImageOverlayBuilder |
se(double latitude,
double longitude)
Sets the South-East anchor point of the overlay being built.
|
ImageOverlayBuilder |
se(GeoPoint se)
Sets the South-East anchor point of the overlay being built.
|
ImageOverlayBuilder |
se(android.location.Location se)
Sets the South-East anchor point of the overlay being built.
|
ImageOverlayBuilder |
selectable(boolean isSelectable)
Specifies the selectability for the overlay.
|
ImageOverlayBuilder |
visibility(boolean isVisible)
Specifies the visibility for the overlay.
|
ImageOverlayBuilder |
zIndex(int zIndex)
Specifies the zIndex of the overlay.
|
public ImageOverlayBuilder nw(android.location.Location nw)
nw
- The North-West anchor location.public ImageOverlayBuilder se(android.location.Location se)
se
- The South-East anchor location.public ImageOverlayBuilder nwse(android.location.Location nw, android.location.Location se)
nw
- The North-West anchor location.se
- The South-East anchor location.public ImageOverlayBuilder nw(double latitude, double longitude)
latitude
- Latitude, in degrees.longitude
- Longitude, in degrees.public ImageOverlayBuilder se(double latitude, double longitude)
latitude
- Latitude, in degrees.longitude
- Longitude, in degrees.public ImageOverlayBuilder nwse(double nwLatitude, double nwLongitude, double seLatitude, double seLongitude)
nwLatitude
- Latitude of the North-West anchor point, in degrees.nwLongitude
- Longitude of the North-West anchor point, in degrees.seLatitude
- Latitude of the South-East anchor point, in degrees.seLongitude
- Longitude of the South-East anchor point, in degrees.public ImageOverlayBuilder nw(GeoPoint nw)
nw
- The North-West anchor GeoPoint
.public ImageOverlayBuilder se(GeoPoint se)
se
- The South-East anchor GeoPoint
.public ImageOverlayBuilder nw(GeoPoint nw, GeoPoint se)
public ImageOverlayBuilder visibility(boolean isVisible)
isVisible
- The visibility of overlay.public ImageOverlayBuilder selectable(boolean isSelectable)
isSelectable
- The selectability of overlay.public ImageOverlayBuilder zIndex(int zIndex)
zIndex
- the zIndex of the overlay.public ImageOverlayBuilder image(android.content.Context context, int resourceId) throws java.lang.IllegalArgumentException
context
- a Context of the application.resourceId
- a Drawable's resource id.java.lang.IllegalArgumentException
- when context is null.public ImageOverlayBuilder alpha(int alpha)
alpha
- The transparency value in the range [0, 255]. Values out of range will be clamped.public GeoPoint getNorthWest()
public GeoPoint getSouthEast()
public boolean isVisible()
public boolean isSelectable()
public int getZIndex()
public int getAlpha()
public ImageOverlay build()
ImageOverlay
object.ImageOverlay
object.public int getResourceId()