Package org.robovm.apple.mapkit
Class MKPolygon
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.mapkit.MKShape
-
- org.robovm.apple.mapkit.MKMultiPoint
-
- org.robovm.apple.mapkit.MKPolygon
-
- All Implemented Interfaces:
NSObjectProtocol
,MKAnnotation
,MKOverlay
,org.robovm.objc.ObjCProtocol
public class MKPolygon extends MKMultiPoint implements MKOverlay
- Since:
- Available in iOS 4.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MKPolygon.MKPolygonPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.mapkit.MKMultiPoint
MKMultiPoint.MKMultiPointPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.mapkit.MKShape
MKShape.MKShapePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description MKPolygon()
MKPolygon(CLLocationCoordinate2D[] coords)
MKPolygon(CLLocationCoordinate2D[] coords, NSArray<MKPolygon> interiorPolygons)
protected
MKPolygon(NSObject.Handle h, long handle)
protected
MKPolygon(NSObject.SkipInit skipInit)
MKPolygon(MKMapPoint[] points)
MKPolygon(MKMapPoint[] points, NSArray<MKPolygon> interiorPolygons)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canReplaceMapContent()
MKMapRect
getBoundingMapRect()
CLLocationCoordinate2D
getCoordinate()
NSArray<MKPolygon>
getInteriorPolygons()
boolean
intersects(MKMapRect mapRect)
-
Methods inherited from class org.robovm.apple.mapkit.MKMultiPoint
getCoordinates, getCoordinates0, getPointCount, getPoints, getPoints0
-
Methods inherited from class org.robovm.apple.mapkit.MKShape
getSubtitle, getTitle, setCoordinate, setSubtitle, setTitle
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
Methods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Methods inherited from interface org.robovm.apple.mapkit.MKAnnotation
getSubtitle, getTitle, setCoordinate
-
-
-
-
Constructor Detail
-
MKPolygon
public MKPolygon()
-
MKPolygon
protected MKPolygon(NSObject.Handle h, long handle)
-
MKPolygon
protected MKPolygon(NSObject.SkipInit skipInit)
-
MKPolygon
public MKPolygon(MKMapPoint[] points)
-
MKPolygon
public MKPolygon(MKMapPoint[] points, NSArray<MKPolygon> interiorPolygons)
-
MKPolygon
public MKPolygon(CLLocationCoordinate2D[] coords)
-
MKPolygon
public MKPolygon(CLLocationCoordinate2D[] coords, NSArray<MKPolygon> interiorPolygons)
-
-
Method Detail
-
getCoordinate
public CLLocationCoordinate2D getCoordinate()
- Specified by:
getCoordinate
in interfaceMKAnnotation
- Specified by:
getCoordinate
in interfaceMKOverlay
- Overrides:
getCoordinate
in classMKShape
-
getBoundingMapRect
public MKMapRect getBoundingMapRect()
- Specified by:
getBoundingMapRect
in interfaceMKOverlay
-
intersects
public boolean intersects(MKMapRect mapRect)
- Specified by:
intersects
in interfaceMKOverlay
-
canReplaceMapContent
public boolean canReplaceMapContent()
- Specified by:
canReplaceMapContent
in interfaceMKOverlay
- Since:
- Available in iOS 7.0 and later.
-
-