Class TooltipExtentBox

java.lang.Object
net.messagevortex.router.TooltipExtent
net.messagevortex.router.TooltipExtentBox

public class TooltipExtentBox extends TooltipExtent

Extent with a rectangular shape.

  • Constructor Details

    • TooltipExtentBox

      public TooltipExtentBox(Rectangle2D box)

      Creates a new extent with a rectangular shape.

      Parameters:
      box - the box representing the shape
  • Method Details

    • isInExtent

      public boolean isInExtent(Point p)
      Description copied from class: TooltipExtent

      Returns true if the given point is within the extent.

      Specified by:
      isInExtent in class TooltipExtent
      Parameters:
      p - the point to be tested
      Returns:
      true if the point lies within the extent