Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.view
Class HitInfo.Stroke  view HitInfo.Stroke download HitInfo.Stroke.java

java.lang.Object
  extended byjpicedt.graphic.view.HitInfo
      extended byjpicedt.graphic.view.HitInfo.Stroke
Enclosing class:
HitInfo

public static class HitInfo.Stroke
extends HitInfo

Represent a Hit that occured on an Element. 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 inherited from class jpicedt.graphic.view.HitInfo
HitInfo.Composite, HitInfo.Interior, HitInfo.Point, HitInfo.Stroke
 
Field Summary
private  int clickedSegment
           
 
Fields inherited from class jpicedt.graphic.view.HitInfo
 
Constructor Summary
HitInfo.Stroke(jpicedt.graphic.model.Element clicked, int clickedSegment, jpicedt.graphic.event.PEMouseEvent mouseEvent)
          construct a new HitInfo.Stroke that occured on the stroke of the given Element
 
Method Summary
 int getClickedSegment()
           
 
Methods inherited from class jpicedt.graphic.view.HitInfo
getMouseEvent, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clickedSegment

private int clickedSegment
Constructor Detail

HitInfo.Stroke

public HitInfo.Stroke(jpicedt.graphic.model.Element clicked,
                      int clickedSegment,
                      jpicedt.graphic.event.PEMouseEvent mouseEvent)
construct a new HitInfo.Stroke that occured on the stroke of the given Element

Method Detail

getClickedSegment

public int getClickedSegment()
Since:
jPicEdt 1.3.2