Package jpicedt.graphic.view
Class HitInfo
- java.lang.Object
-
- jpicedt.graphic.view.HitInfo
-
- Direct Known Subclasses:
HitInfo.Composite,HitInfo.Interior,HitInfo.Point,HitInfo.Stroke
public class HitInfo extends java.lang.ObjectA HitInfo encapsulates information related to a mouse click that occured on a particular area of an Element.- Since:
- jpicedt 1.3.2
- Version:
- $Id: HitInfo.java,v 1.11.2.1 2007/09/02 11:56:29 reynal Exp $
- Author:
- Sylvain Reynal
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHitInfo.CompositeRepresent 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.static classHitInfo.EnvelopeStrokeDeprecated.use HighlighterStroke insteadstatic classHitInfo.HighlighterStrokeRepresent a Hit that occured on the stroke of a highlighter (eg tangents of a PicSmoothPolygon).static classHitInfo.InteriorRepresent a Hit that occured on the interior of a Elementstatic classHitInfo.PointRepresent a Hit that occured on one or several Element's control-points, the latter case occuring necessarily iff some control-points are identical.static classHitInfo.StrokeRepresent a Hit that occured on an Element.static classHitInfo.TextRepresent a Hit that occured on some interior area of a TextEditable.
-
Constructor Summary
Constructors Constructor Description HitInfo(Element clickedObject, PEMouseEvent mouseEvent)Construct a new HitInfo when a click occured on an object's end-point
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PEMouseEventgetMouseEvent()ElementgetTarget()
-
-
-
Constructor Detail
-
HitInfo
public HitInfo(Element clickedObject, PEMouseEvent mouseEvent)
Construct a new HitInfo when a click occured on an object's end-point- Parameters:
clickedObject- the Element on which the hit occuredtype- the hit type- Since:
- jPicEdt
-
-
Method Detail
-
getTarget
public Element getTarget()
- Returns:
- the Element on which the hit occured
- Since:
- jPicEdt
-
getMouseEvent
public PEMouseEvent getMouseEvent()
- Returns:
- the mouse-event that triggered this HitInfo
- Since:
- jPicEdt
-
-