Package com.kakao.vectormap.label
Class PolylineLabelStyle
- java.lang.Object
-
- com.kakao.vectormap.internal.ILabelStyle
-
- com.kakao.vectormap.label.PolylineLabelStyle
-
public class PolylineLabelStyle extends ILabelStyle
PolylineLabel 에 텍스트 크기, 색깔, 테두리 등 설정할 수 있는 클래스. ZoomLevel 마다 다르게 설정할 수 있다.
-
-
Field Summary
Fields Modifier and Type Field Description BitmapiconBitmap이미지 비트맵.inticonResIdIcon 의 이미지 리소스 Id.-
Fields inherited from class com.kakao.vectormap.internal.ILabelStyle
applyDpScale, assetId, textStyles, zoomLevel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static PolylineLabelStylefrom(int size, int color)PolylineLabelStyle 객체를 생성한다.static PolylineLabelStylefrom(int size, int color, int strokeSize, int strokeColor)PolylineLabelStyle 객체를 생성한다.BitmapgetIconBitmap()icon 의 이미지 비트맵 가져온다.intgetIconResId()icon 의 이미지 리소스 Id 를 가져온다.LabelTextStylegetTextStyle()LabelTextStyle 를 가져온다.intgetZoomLevel()zoomLevel 가져온다.inthashCode()booleanisApplyDpScale()dpScale 여부를 가져온다.PolylineLabelStylesetApplyDpScale(boolean applyDpScale)dpScale 여부를 설정한다.PolylineLabelStylesetZoomLevel(int zoomLevel)zoomLevel 을 설정한다.
-
-
-
Method Detail
-
from
public static PolylineLabelStyle from(int size, int color)
PolylineLabelStyle 객체를 생성한다.- Parameters:
size- 텍스트 크기 (px).color- 텍스트 색깔.
-
from
public static PolylineLabelStyle from(int size, int color, int strokeSize, int strokeColor)
PolylineLabelStyle 객체를 생성한다.- Parameters:
size- 텍스트 크기 (px).color- 텍스트 색깔.strokeSize- 텍스트 테두리 크기 (px).strokeColor- 텍스트 테두리 색깔.
-
setZoomLevel
public PolylineLabelStyle setZoomLevel(int zoomLevel)
zoomLevel 을 설정한다.- Parameters:
zoomLevel- 설정 할 zoomLevel
-
setApplyDpScale
public PolylineLabelStyle setApplyDpScale(boolean applyDpScale)
dpScale 여부를 설정한다.- Parameters:
applyDpScale- dpScale 여부.
-
getZoomLevel
public int getZoomLevel()
zoomLevel 가져온다.
-
isApplyDpScale
public boolean isApplyDpScale()
dpScale 여부를 가져온다.
-
getIconBitmap
public Bitmap getIconBitmap()
icon 의 이미지 비트맵 가져온다.
-
getIconResId
public int getIconResId()
icon 의 이미지 리소스 Id 를 가져온다.
-
getTextStyle
public LabelTextStyle getTextStyle()
LabelTextStyle 를 가져온다.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-