http://www.jpicedt.org

jpicedt.graphic.view
Class HitInfo.Text

java.lang.Object
  extended by jpicedt.graphic.view.HitInfo.AbstractHitInfo
      extended by jpicedt.graphic.view.HitInfo.Interior
          extended by jpicedt.graphic.view.HitInfo.Text
All Implemented Interfaces:
HitInfo
Enclosing interface:
HitInfo

public static class HitInfo.Text
extends HitInfo.Interior

Represent a Hit that occured on some interior area of a TextEditable. This is simply a convenient wrapper for java.awt.font.TextHitInfo.


Nested Class Summary
 
Nested classes/interfaces inherited from interface jpicedt.graphic.view.HitInfo
HitInfo.AbstractHitInfo, HitInfo.Composite, HitInfo.EnvelopeStroke, HitInfo.HighlighterStroke, HitInfo.Interior, HitInfo.InverseZOrderingComparator, HitInfo.List, HitInfo.Point, HitInfo.Stroke, HitInfo.Text
 
Field Summary
 
Fields inherited from class jpicedt.graphic.view.HitInfo.AbstractHitInfo
clickedObject, mouseEvent
 
Constructor Summary
HitInfo.Text(TextEditable clickedObject, TextHitInfo thi, PEMouseEvent mouseEvent)
          construct a new HitInfo.Text that occured on the given TextEditable, fetching useful information from the given TextHitInfo.
 
Method Summary
 TextHitInfo getTextHitInfo()
           
 String toString()
           
 
Methods inherited from class jpicedt.graphic.view.HitInfo.AbstractHitInfo
append, getMouseEvent, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HitInfo.Text

public HitInfo.Text(TextEditable clickedObject,
                    TextHitInfo thi,
                    PEMouseEvent mouseEvent)
construct a new HitInfo.Text that occured on the given TextEditable, fetching useful information from the given TextHitInfo.

Method Detail

getTextHitInfo

public TextHitInfo getTextHitInfo()
Returns:
the java.awt.font.TextHitInfo wrapped into this HitInfo.

toString

public String toString()
Overrides:
toString in class HitInfo.Interior

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org