com.supermap.mapping.dyn

Class DynamicText



  • public class DynamicText
    extends DynamicElement
    The text object on the dynamic layer.
    • Constructor Detail

      • DynamicText

        public DynamicText()
        Create a new text object on the dynamic layer.
      • DynamicText

        public DynamicText(java.lang.String text,
                           Point2D anchorPoint)
        Create a new dynamic layer text object based on the parameters specified.
        Parameters:
        text - Show text
        anchorPoint - Show location points.
    • Method Detail

      • setText

        public void setText(java.lang.String text)
        Sets the display text.
        Parameters:
        text - Show text
      • fromGeometry

        public boolean fromGeometry(Geometry geometry)
        Create the dynamic data through Geometry.
        Specified by:
        fromGeometry in class DynamicElement
        Parameters:
        geometry - Geographic elements
        Returns:
        A boolean, Returns true if the constructor successful; Otherwise false.
      • getText

        public java.lang.String getText()
        Gets the display text.
        Returns:
        Display the text.
      • setAlignment

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

        public DynamicAlignment getAlignment()
        Gets the alignment.
        Returns:
        Gets the alignment.