Package jpicedt.graphic.view
Class HitInfo.Stroke
- java.lang.Object
-
- jpicedt.graphic.view.HitInfo
-
- jpicedt.graphic.view.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).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jpicedt.graphic.view.HitInfo
HitInfo.Composite, HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke, HitInfo.Interior, HitInfo.Point, HitInfo.Stroke, HitInfo.Text
-
-
Constructor Summary
Constructors Constructor Description Stroke(Element clicked, int clickedSegment, PEMouseEvent mouseEvent)construct a new HitInfo.Stroke that occured on the stroke of the given Element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClickedSegment()java.lang.StringtoString()-
Methods inherited from class jpicedt.graphic.view.HitInfo
getMouseEvent, getTarget
-
-
-
-
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.
-
-