http://www.jpicedt.org

jpicedt.graphic.view
Class HitInfo.Composite

java.lang.Object
  extended by jpicedt.graphic.view.HitInfo.AbstractHitInfo
      extended by jpicedt.graphic.view.HitInfo.Composite
All Implemented Interfaces:
HitInfo
Enclosing interface:
HitInfo

public static class HitInfo.Composite
extends HitInfo.AbstractHitInfo

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. This can be considered an extended version of HitInfo.Point where the the "clicked" child play the role of the "clicked" control-point.


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
 
Fields inherited from class jpicedt.graphic.view.HitInfo.AbstractHitInfo
clickedObject, mouseEvent
 
Constructor Summary
HitInfo.Composite(BranchElement clicked, int clickedChildIndex, PEMouseEvent mouseEvent)
          construct a new HitInfo.Point that occured in the given BranchElement, on the child with the given index.
 
Method Summary
 Element getClickedChild()
           
 int getClickedChildIndex()
           
 BranchElement getTarget()
          
author: Sylvain Reynal
 String toString()
           
 
Methods inherited from class jpicedt.graphic.view.HitInfo.AbstractHitInfo
append, getMouseEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HitInfo.Composite

public HitInfo.Composite(BranchElement clicked,
                         int clickedChildIndex,
                         PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured in the given BranchElement, on the child with the given index.

Method Detail

getTarget

public BranchElement getTarget()
Description copied from class: HitInfo.AbstractHitInfo

author: Sylvain Reynal

Specified by:
getTarget in interface HitInfo
Overrides:
getTarget in class HitInfo.AbstractHitInfo
Returns:
the Element on which the hit occured

getClickedChildIndex

public int getClickedChildIndex()
Returns:
the child on which the mouse-click occured

getClickedChild

public Element getClickedChild()
Returns:
the child on which the mouse-click occured

toString

public String toString()
Overrides:
toString in class Object

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org