Package jpicedt.graphic.view
Class HitInfo.Point
- java.lang.Object
-
- jpicedt.graphic.view.HitInfo
-
- jpicedt.graphic.view.HitInfo.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 Point(Element clickedObject, int pointIndex, PEMouseEvent mouseEvent)construct a new HitInfo.Point that occured on the given Element and on the given point indexPoint(Element clickedObject, java.util.ArrayList pointIndices, PEMouseEvent mouseEvent)construct a new HitInfo.Point that occured on the given Element and on the given points simultaneously.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Return the point index on which the mouse hit occured.intgetIndex(int i)Return the ith point index on which the mouse hit occured.intgetNbHitPoints()Return the number of points that were hit simultaneously.java.lang.StringtoString()-
Methods inherited from class jpicedt.graphic.view.HitInfo
getMouseEvent, getTarget
-
-
-
-
Constructor Detail
-
Point
public Point(Element clickedObject, int pointIndex, PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured on the given Element and on the given point index
-
Point
public Point(Element clickedObject, java.util.ArrayList pointIndices, PEMouseEvent mouseEvent)
construct a new HitInfo.Point that occured on the given Element and on the given points simultaneously. Note that the ArrayList argument is not deeply copied.
-
-
Method Detail
-
getIndex
public int getIndex()
Return the point index on which the mouse hit occured. If several control-points were hit simultaneously because they were located at the same place, return the first one in ascending order according to the natural ordering of control-point indices.
-
getIndex
public int getIndex(int i)
Return the ith point index on which the mouse hit occured. If only one control-point was hit, this is similar asgetIndex().
-
getNbHitPoints
public int getNbHitPoints()
Return the number of points that were hit simultaneously.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-