jpicedt.graphic.view
Class HitInfo.Composite
java.lang.Object
jpicedt.graphic.view.HitInfo
jpicedt.graphic.view.HitInfo.Composite
- Enclosing class:
- HitInfo
public static class HitInfo.Composite
- extends HitInfo
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
getClickedChildIndex
public int getClickedChildIndex()
- Returns:
- return the child on which the mouse-click occured
- Since:
- jPicEdt
getClickedChild
public Element getClickedChild()
- Returns:
- return the child on which the mouse-click occured
- Since:
- jPicEdt
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Submit a bug : syd@jpicedt.org