Class Node

  • Direct Known Subclasses:
    Cluster, Leaf

    @WorkerThread
    public abstract class Node
    extends java.lang.Object
    Clusterer가 관리하는 트리 구조의 노드를 의미하는 클래스.

    이 클래스의 인스턴스는 모든 스레드에서 접근 가능하고 불변인 MarkerInfo와 달리 백그라운드 스레드에서만 접근 가능하며 데이터가 변경되면 객체의 속성도 변경되므로 사용에 주의해야 합니다.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract WebMercatorCoord getCoord()
      웹 메르카토르 좌표를 반환합니다.
      int getMaxZoom()
      노드가 노출되어야 하는 최대 줌 레벨을 반환합니다.
      int getMinZoom()
      노드가 노출되어야 하는 최소 줌 레벨을 반환합니다.
      abstract LatLng getPosition()
      좌표를 반환합니다.
      abstract int getSize()
      자식 Node의 개수를 반환합니다.
      java.lang.Object getTag()
      태그를 반환합니다.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTag

        @Nullable
        public java.lang.Object getTag()
        태그를 반환합니다.
        Returns:
        태그.
      • getMinZoom

        public int getMinZoom()
        노드가 노출되어야 하는 최소 줌 레벨을 반환합니다.
        Returns:
        노출되어야 하는 최소 줌 레벨.
      • getMaxZoom

        public int getMaxZoom()
        노드가 노출되어야 하는 최대 줌 레벨을 반환합니다.
        Returns:
        노출되어야 하는 최대 줌 레벨.
      • getSize

        public abstract int getSize()
        자식 Node의 개수를 반환합니다.
        Returns:
        자식 노드의 개수.
      • getCoord

        @NonNull
        public abstract WebMercatorCoord getCoord()
        웹 메르카토르 좌표를 반환합니다.
        Returns:
        웹 메르카토르 좌표.
      • getPosition

        @NonNull
        public abstract LatLng getPosition()
        좌표를 반환합니다.
        Returns:
        좌표.