http://www.jpicedt.org

jpicedt.graphic.view
Class HitInfo.AbstractHitInfo

java.lang.Object
  extended by jpicedt.graphic.view.HitInfo.AbstractHitInfo
All Implemented Interfaces:
HitInfo
Direct Known Subclasses:
HitInfo.Composite, HitInfo.Interior, HitInfo.Point, HitInfo.Stroke
Enclosing interface:
HitInfo

public abstract static class HitInfo.AbstractHitInfo
extends Object
implements HitInfo


Nested Class Summary
 
Nested classes/interfaces inherited from interface jpicedt.graphic.view.HitInfo
HitInfo.AbstractHitInfo, HitInfo.Composite, HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke, HitInfo.Interior, HitInfo.InverseZOrderingComparator, HitInfo.List, HitInfo.Point, HitInfo.Stroke, HitInfo.Text
 
Field Summary
protected  Element clickedObject
           
protected  PEMouseEvent mouseEvent
           
 
Constructor Summary
HitInfo.AbstractHitInfo(Element clickedObject, PEMouseEvent mouseEvent)
          Construct a new HitInfo when a click occured on an object's end-point
author: Sylvain Reynal
HitInfo.AbstractHitInfo(HitInfo hi)
          Cloning constructor
 
Method Summary
 HitInfo.List append(HitInfo hi)
           
 PEMouseEvent getMouseEvent()
          
author: Sylvain Reynal
 Element getTarget()
          
author: Sylvain Reynal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clickedObject

protected Element clickedObject

mouseEvent

protected PEMouseEvent mouseEvent
Constructor Detail

HitInfo.AbstractHitInfo

public HitInfo.AbstractHitInfo(Element clickedObject,
                               PEMouseEvent mouseEvent)
Construct a new HitInfo when a click occured on an object's end-point
author: Sylvain Reynal

Parameters:
clickedObject - the Element on which the hit occured
mouseEvent - the hit type
Since:
jPicEdt

HitInfo.AbstractHitInfo

public HitInfo.AbstractHitInfo(HitInfo hi)
Cloning constructor

Method Detail

getTarget

public Element getTarget()

author: Sylvain Reynal

Specified by:
getTarget in interface HitInfo
Returns:
the Element on which the hit occured
Since:
jPicEdt

getMouseEvent

public PEMouseEvent getMouseEvent()

author: Sylvain Reynal

Specified by:
getMouseEvent in interface HitInfo
Returns:
the mouse-event that triggered this HitInfo
Since:
jPicEdt

append

public HitInfo.List append(HitInfo hi)
Specified by:
append in interface HitInfo
Returns:
a List containing the given HitInfo appended to this HitInfo.

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org