jpicedt.graphic.view
Class HitInfo.Stroke
java.lang.Object
jpicedt.graphic.view.HitInfo.AbstractHitInfo
jpicedt.graphic.view.HitInfo.Stroke
- All Implemented Interfaces:
- HitInfo
- Direct Known Subclasses:
- HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke
- Enclosing interface:
- HitInfo
public static class HitInfo.Stroke
- extends HitInfo.AbstractHitInfo
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 Summary |
HitInfo.Stroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent)
construct a new HitInfo.Stroke that occured on the
stroke of the given Element |
HitInfo.Stroke
public HitInfo.Stroke(Element clicked,
int clickedSegment,
PEMouseEvent mouseEvent)
- construct a new
HitInfo.Stroke
that occured on the
stroke of the given Element
- Parameters:
clickedSegment
- Point the index (starting from 0) of the segment of the flattened path
on which the hit occured.
getClickedSegment
public int getClickedSegment()
author: Sylvain Reynal
- Returns:
- return the child on which the mouse-click occured
- Since:
- jPicEdt
toString
public String toString()
- Overrides:
toString
in class Object
Submit a bug : syd@jpicedt.org