Class HitInfo.Stroke

  • Direct Known Subclasses:
    HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke
    Enclosing class:
    HitInfo

    public static class HitInfo.Stroke
    extends HitInfo
    Represent a Hit that occured on an Element. It includes information as of which stroke segment was hit (this may be used by the UI to know where to add new points).
    • Constructor Detail

      • Stroke

        public Stroke​(Element clicked,
                      int clickedSegment,
                      PEMouseEvent mouseEvent)
        construct a new HitInfo.Stroke that occured on the stroke of the given Element
        Parameters:
        clickedPoint - the index (starting from 0) of the segment of the flattened path on which the hit occured.
    • Method Detail

      • getClickedSegment

        public int getClickedSegment()
        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