Class HitInfo.Composite

  • Enclosing class:
    HitInfo

    public static class HitInfo.Composite
    extends HitInfo
    Represent a particular type of Hit that occured on a child of a branch-element, when one whants to specify both the element and its child. This can be considered an extended version of HitInfo.Point where the the "clicked" child play the role of the "clicked" control-point.
    • Constructor Detail

      • Composite

        public Composite​(BranchElement clicked,
                         int clickedChildIndex,
                         PEMouseEvent mouseEvent)
        construct a new HitInfo.Point that occured in the given BranchElement, on the child with the given index.
    • Method Detail

      • getClickedChildIndex

        public int getClickedChildIndex()
        Returns:
        return the child on which the mouse-click occured
        Since:
        jPicEdt
      • getClickedChild

        public Element getClickedChild()
        Returns:
        return the child on which the mouse-click occured
        Since:
        jPicEdt
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object