Class BoundedVoronoiVertexSymbol

    • Constructor Detail

      • BoundedVoronoiVertexSymbol

        public BoundedVoronoiVertexSymbol()
        Standard constructor
      • BoundedVoronoiVertexSymbol

        public BoundedVoronoiVertexSymbol​(double vertexSymbolSize)
        Constructs an instance with specified vertex symbol size.
        Parameters:
        vertexSymbolSize - a symbol size in pixels.
    • Method Detail

      • setLabel

        public void setLabel​(String label)
        Sets the label for this symbol
        Parameters:
        label - a valid, non-empty string; or a null if no label is required.
      • setFont

        public void setFont​(Font font)
        Sets the font to be used for labeling. If not set, the currently color for the graphics surface will be used.
        Parameters:
        font - a valid font; or a null
      • setColor

        public void setColor​(Color color)
        Set the color for this symbol. If not set, the currently color for the graphics surface will be used.
        Parameters:
        color - a valid color; or a null.
      • draw

        public void draw​(Graphics g,
                         double x,
                         double y)
        Draw the icon for a vertex positioned at the indicated coordinates
        Specified by:
        draw in interface IBoundedVoronoiVertexSymbol
        Parameters:
        g - a valid Graphics surface
        x - the user (pixel) x coordinate of the vertex
        y - the user (pixel) y coordinate of the vertex