Package 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jpicedt.graphic.view.HitInfo
HitInfo.Composite, HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke, HitInfo.Interior, HitInfo.Point, HitInfo.Stroke, HitInfo.Text
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetClickedChild()intgetClickedChildIndex()java.lang.StringtoString()-
Methods inherited from class jpicedt.graphic.view.HitInfo
getMouseEvent, getTarget
-
-
-
-
Constructor Detail
-
Composite
public 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
-
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:
toStringin classjava.lang.Object
-
-