-
public class MapView.LayoutParams extends ViewGroup.LayoutParams
Per-child layout information associated with OpenStreetMapView.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intTOP_LEFTpublic final static intTOP_CENTERpublic final static intTOP_RIGHTpublic final static intCENTER_LEFTpublic final static intCENTERpublic final static intCENTER_RIGHTpublic final static intBOTTOM_LEFTpublic final static intBOTTOM_CENTERpublic final static intBOTTOM_RIGHTpublic IGeoPointgeoPointpublic intalignmentpublic intoffsetXpublic intoffsetY
-
Constructor Summary
Constructors Constructor Description MapView.LayoutParams(int width, int height, IGeoPoint geoPoint, int alignment, int offsetX, int offsetY)Creates a new set of layout parameters with the specified width, height and location. MapView.LayoutParams(Context c, AttributeSet attrs)Since we cannot use XML files in this project this constructor is useless. MapView.LayoutParams(ViewGroup.LayoutParams source)
-
Method Summary
Modifier and Type Method Description -
-
Constructor Detail
-
MapView.LayoutParams
MapView.LayoutParams(int width, int height, IGeoPoint geoPoint, int alignment, int offsetX, int offsetY)
Creates a new set of layout parameters with the specified width, height and location.- Parameters:
width- the width, either FILL_PARENT, WRAP_CONTENT or a fixed sizein pixelsheight- the height, either FILL_PARENT, WRAP_CONTENT or a fixed sizein pixelsgeoPoint- the location of the child within the map viewalignment- the alignment of the view compared to the location BOTTOM_CENTER,BOTTOM_LEFT, BOTTOM_RIGHTTOP_CENTER,TOP_LEFT, TOP_RIGHToffsetX- the additional X offset from the alignment location to draw the child withinthe map viewoffsetY- the additional Y offset from the alignment location to draw the child withinthe map view
-
MapView.LayoutParams
MapView.LayoutParams(Context c, AttributeSet attrs)
Since we cannot use XML files in this project this constructor is useless.- Parameters:
c- the application environmentattrs- the set of attributes fom which to extract the layout parameters values
-
MapView.LayoutParams
MapView.LayoutParams(ViewGroup.LayoutParams source)
-
-
-
-