com.supermap.data

Class SymbolMarker



  • public class SymbolMarker
    extends Symbol
    The SymbolMarker class.

    This class inherits from the Symbol class Symbol.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int computeDisplaySize(int symbolSize)
      Compute the display size of the symbol passed in.
      int computeSymbolSize(int displaySize)
      Calculate the size of the symbol corresponding to the display size passed in.
      void dispose()
      Release the resource occupy by this object.
      boolean draw(android.graphics.Bitmap bmp)
      Draw the symbol object on specified Bitmap.
      boolean draw(android.graphics.Bitmap bmp, Color color)
      Draw the symbol object on specified Bitmap.
      SymbolMarkerStroke get(int index)
      Returns the stroke at the given index.
      int getCount()
      Returns the count of strokes of the SymbolMarker object.
      Point getOrigin()
      Returns the origin location of the symbol.
      SymbolType getType()
      Returns the SymbolMarker object.
      void setOrigin(Point point)
      Sets the origin location of the symbol returned.
      • Methods inherited from class java.lang.Object

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

      • computeDisplaySize

        public int computeDisplaySize(int symbolSize)
        Compute the display size of the symbol passed in.
        Parameters:
        symbolSize - set the size of the symbol. Throw an exception when the parameter is less than or equal to zero.
        Returns:
        the display size converted.
      • computeSymbolSize

        public int computeSymbolSize(int displaySize)
        Calculate the size of the symbol corresponding to the display size passed in.
        Parameters:
        displaySize - the display size specifiedl. Throw an exception when the parameter is less than or equal to zero.
        Returns:
        the symbol size converted.
      • dispose

        public void dispose()
        Release the resource occupy by this object.
        Overrides:
        dispose in class Symbol
      • getType

        public SymbolType getType()
        Returns the SymbolMarker object.
        Overrides:
        getType in class Symbol
        Returns:
        the SymbolMarker object.
      • getOrigin

        public Point getOrigin()
        Returns the origin location of the symbol.
        Returns:
        the origin location of the symbol.
      • setOrigin

        public void setOrigin(Point point)
        Sets the origin location of the symbol returned.
        Parameters:
        point - the origin location of the symbol.
      • get

        public SymbolMarkerStroke get(int index)
        Returns the stroke at the given index.
        Parameters:
        index - the specified index
        Returns:
        the stroke at the given index.
      • getCount

        public int getCount()
        Returns the count of strokes of the SymbolMarker object.
        Returns:
        the count of strokes of the SymbolMarker object.
      • draw

        public boolean draw(android.graphics.Bitmap bmp,
                            Color color)
        Draw the symbol object on specified Bitmap.
        Overrides:
        draw in class Symbol
        Parameters:
        bmp - Specify the Bitmap.
        color - Background color
        Returns:
        Returns true if successful; otherwise false.
      • draw

        public boolean draw(android.graphics.Bitmap bmp)
        Draw the symbol object on specified Bitmap.
        Overrides:
        draw in class Symbol
        Parameters:
        bmp - Specify the Bitmap.
        Returns:
        Returns true if successful; otherwise false.