jpicedt.graphic.view
Class HitInfo.Composite
java.lang.Object
jpicedt.graphic.view.HitInfo.AbstractHitInfo
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.
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. |
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.
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
Submit a bug : syd@jpicedt.org