http://www.jpicedt.org

jpicedt.graphic.toolkit
Class ConvexZoneHitInfo.Stroke

java.lang.Object
  extended by jpicedt.graphic.toolkit.ConvexZoneHitInfo.CZHitInfo
      extended by jpicedt.graphic.toolkit.ConvexZoneHitInfo.Stroke
All Implemented Interfaces:
ConvexZoneHitInfo
Enclosing interface:
ConvexZoneHitInfo

public static class ConvexZoneHitInfo.Stroke
extends ConvexZoneHitInfo.CZHitInfo

Represent a Hit that occured on an ConvexZone. It includes information as of which stroke segment was hit (this may be used by the UI to know where to add new points).


Nested Class Summary
 
Nested classes/interfaces inherited from interface jpicedt.graphic.toolkit.ConvexZoneHitInfo
ConvexZoneHitInfo.CZHitInfo, ConvexZoneHitInfo.List, ConvexZoneHitInfo.Stroke
 
Constructor Summary
ConvexZoneHitInfo.Stroke(ConvexZone clicked, int clickedSegment, PEMouseEvent mouseEvent)
          construct a new HitInfo.Stroke that occured on the stroke of the given Element
 
Method Summary
 int getClickedSegment()
          
author: Sylvain Reynal
 String toString()
           
 
Methods inherited from class jpicedt.graphic.toolkit.ConvexZoneHitInfo.CZHitInfo
append, getMouseEvent, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConvexZoneHitInfo.Stroke

public ConvexZoneHitInfo.Stroke(ConvexZone clicked,
                                int clickedSegment,
                                PEMouseEvent mouseEvent)
construct a new HitInfo.Stroke that occured on the stroke of the given Element

Parameters:
clickedSegment - Point the index (starting from 0) of the segment of the flattened path on which the hit occured.
Method Detail

getClickedSegment

public int getClickedSegment()

author: Sylvain Reynal

Returns:
return the child on which the mouse-click occured
Since:
jPicEdt

toString

public String toString()
Overrides:
toString in class Object

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org