Package com.kakao.vectormap.shape
Class ShapeManager
- java.lang.Object
-
- com.kakao.vectormap.shape.ShapeManager
-
public class ShapeManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_Z_ORDER
-
Constructor Summary
Constructors Constructor Description ShapeManager(IShapeDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeAnimatoraddAnimator(Animation animation)ShapeAnimator 를 추가하고 생성한다.ShapeLayeraddLayer(ShapeLayerOptions options)ShapeLayer 를 추가하고 생성한다.PolygonStylesSetaddPolygonStyles(PolygonStylesSet styles)PolygonStylesSet을 추가한다.PolylineStylesSetaddPolylineStyles(PolylineStylesSet styles)PolylineStylesSet을 추가한다.voidclearAll()추가 된 모든 ShapeLayer 및 Shape 을 삭제한다.ShapeAnimatorgetAnimator(java.lang.String animatorId)id 에 해당하는 ShapeAnimator 를 가져온다.ShapeLayergetLayer()기본으로 생성 된 ShapeLayer 를 가져온다.ShapeLayergetLayer(java.lang.String layerId)id 에 해당하는 ShapeLayer 를 가져온다.PolygonStylesSetgetPolygonStyles(java.lang.String styleId)id 에 해당하는PolygonStylesSet을 가져온다.PolylineStylesSetgetPolylineStyles(java.lang.String styleId)id 에 해당하는PolylineStylesSet을 가져온다.voidremove(Polygon polygon)Polygon 을 삭제한다.voidremove(Polyline polyline)Polyline 을 삭제한다.voidremove(ShapeLayer layer)ShapeLayer 를 삭제한다.voidremoveAllAnimator()추가 된 모든 ShapeAnimator 를 삭제한다.
-
-
-
Field Detail
-
DEFAULT_Z_ORDER
public static final int DEFAULT_Z_ORDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShapeManager
public ShapeManager(IShapeDelegate delegate)
-
-
Method Detail
-
addPolygonStyles
public PolygonStylesSet addPolygonStyles(PolygonStylesSet styles)
PolygonStylesSet을 추가한다.- Parameters:
styles- 추가할PolygonStylesSet객체- Returns:
- 추가된
PolygonStylesSet객체
-
addPolylineStyles
public PolylineStylesSet addPolylineStyles(PolylineStylesSet styles)
PolylineStylesSet을 추가한다.- Parameters:
styles- 추가할PolylineStylesSet객체- Returns:
- 추가된
PolylineStylesSet객체
-
getPolygonStyles
public PolygonStylesSet getPolygonStyles(java.lang.String styleId)
id 에 해당하는PolygonStylesSet을 가져온다.- Parameters:
styleId- 가져올PolygonStylesSet의 id- Returns:
- id 에 해당하는
PolygonStylesSet객체
-
getPolylineStyles
public PolylineStylesSet getPolylineStyles(java.lang.String styleId)
id 에 해당하는PolylineStylesSet을 가져온다.- Parameters:
styleId- 가져올PolylineStylesSet의 id- Returns:
- id 에 해당하는
PolylineStylesSet객체
-
addLayer
public ShapeLayer addLayer(ShapeLayerOptions options)
ShapeLayer 를 추가하고 생성한다.- Parameters:
options- 추가할ShapeLayerOptions객체- Returns:
- 추가된
ShapeLayer객체
-
addAnimator
public ShapeAnimator addAnimator(Animation animation)
ShapeAnimator 를 추가하고 생성한다.- Parameters:
animation- 추가할 ShapeAnimator 를 정의하는Animation객체- Returns:
- 추가된
ShapeAnimator객체
-
removeAllAnimator
public void removeAllAnimator()
추가 된 모든 ShapeAnimator 를 삭제한다.
-
getAnimator
public ShapeAnimator getAnimator(java.lang.String animatorId)
id 에 해당하는 ShapeAnimator 를 가져온다.- Parameters:
animatorId- 가져올 ShapeAnimator 의 id- Returns:
- id 에 해당하는
ShapeAnimator객체
-
getLayer
public ShapeLayer getLayer()
기본으로 생성 된 ShapeLayer 를 가져온다.- Returns:
- 기본으로 생성 된
ShapeLayer객체
-
getLayer
public ShapeLayer getLayer(java.lang.String layerId)
id 에 해당하는 ShapeLayer 를 가져온다.- Parameters:
layerId- 가져올 ShapeLayer 의 id- Returns:
- id 에 해당하는
ShapeLayer객체
-
remove
public void remove(Polyline polyline)
Polyline 을 삭제한다.- Parameters:
polyline- 삭제할Polyline객체
-
remove
public void remove(ShapeLayer layer)
ShapeLayer 를 삭제한다.- Parameters:
layer- 삭제할ShapeLayer객체
-
clearAll
public void clearAll()
추가 된 모든 ShapeLayer 및 Shape 을 삭제한다.
-
-