http://www.jpicedt.org

jpicedt.graphic.view
Interface HitInfo

All Known Implementing Classes:
HitInfo.AbstractHitInfo, HitInfo.Composite, HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke, HitInfo.Interior, HitInfo.List, HitInfo.Point, HitInfo.Stroke, HitInfo.Text

public interface HitInfo

A HitInfo encapsulates information related to a mouse click that occured on a particular area of an HitInfo.

Since:
jpicedt 1.3.2
Version:
$Id: HitInfo.java,v 1.18 2013/03/27 06:53:56 vincentb1 Exp $
Author:
Sylvain Reynal

Nested Class Summary
static class HitInfo.AbstractHitInfo
           
static class HitInfo.Composite
          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.
static class HitInfo.EnvelopeStroke
          Deprecated. use HighlighterStroke instead
static class HitInfo.HighlighterStroke
          Represent a hit that occured on the stroke of a highlighter (eg tangents of a PicSmoothPolygon).
static class HitInfo.Interior
          Represent a hit that occured on the interior of a Element
static class HitInfo.InverseZOrderingComparator
          A comparator for z-axis ordering
static class HitInfo.List
          A collection of HitInfo's that are appropriate when a mouse-event hits several Element's at once.
static class HitInfo.Point
          Represent a hit that occured on one or several Element's control-points, the latter case occuring necessarily iff some control-points are identical.
static class HitInfo.Stroke
          Represent a Hit that occured on an Element.
static class HitInfo.Text
          Represent a Hit that occured on some interior area of a TextEditable.
 
Method Summary
 HitInfo.List append(HitInfo hi)
           
 PEMouseEvent getMouseEvent()
           
 Element getTarget()
           
 

Method Detail

getTarget

Element getTarget()
Returns:
the Element on which the hit occured

getMouseEvent

PEMouseEvent getMouseEvent()
Returns:
the mouse-event that triggered this HitInfo

append

HitInfo.List append(HitInfo hi)
Returns:
a HitInfo.List containing the given HitInfo appended to this HitInfo.

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org