Interface PointShape


public interface PointShape
Represents a point shape. Usually used for control points and end points of a connection widget.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final PointShape
    The empty point shape.
    static final PointShape
    The 8px big filled-square shape.
    static final PointShape
    The 6px big filled-square shape.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns a radius of the shape.
    void
    paint(Graphics2D graphics)
    Renders a shape into the graphics instance
  • Field Details

    • NONE

      static final PointShape NONE
      The empty point shape.
    • SQUARE_FILLED_BIG

      static final PointShape SQUARE_FILLED_BIG
      The 8px big filled-square shape.
    • SQUARE_FILLED_SMALL

      static final PointShape SQUARE_FILLED_SMALL
      The 6px big filled-square shape.
  • Method Details

    • getRadius

      int getRadius()
      Returns a radius of the shape.
      Returns:
      the radius
    • paint

      void paint(Graphics2D graphics)
      Renders a shape into the graphics instance
      Parameters:
      graphics -