com.supermap.mapping.dyn

Class DynamicPoint



  • public class DynamicPoint
    extends DynamicElement
    The dynamic layer point object class.
    • Constructor Detail

      • DynamicPoint

        public DynamicPoint()
        Create a new point object on the dynamic layer.
    • Method Detail

      • fromGeometry

        public boolean fromGeometry(Geometry geometry)
        Create a new point object on the dynamic layer through Geometry.
        Specified by:
        fromGeometry in class DynamicElement
        Parameters:
        geometry - Geographic elements
        Returns:
        Whether it is successful.
      • setAlignment

        public void setAlignment(DynamicAlignment alignment)
        Sets the alignment
        Parameters:
        alignment - Alignment
      • getAlignment

        public DynamicAlignment getAlignment()
        Gets the alignment.
        Returns:
        Alignment
      • setOffsetX

        public void setOffsetX(float offsetX)
        Sets the background image X offset.
        Parameters:
        offsetX - Position offset
      • getOffsetX

        public float getOffsetX()
        Gets the background image X offset.
        Returns:
        The X offset.
      • setOffsetY

        public void setOffsetY(float offsetY)
        Sets the background image Y offset.
        Parameters:
        offsetY - Position offset
      • getOffsetY

        public float getOffsetY()
        Gets the background image Y offset.
        Returns:
        The Y offset.
      • setPoint

        public void setPoint(Point2D pt)
        Sets point
        Parameters:
        pt - The point to be set is used to set the position where the object is displayed.