Package jpicedt.graphic.view
Class HitInfo.Text
- java.lang.Object
-
- jpicedt.graphic.view.HitInfo
-
- jpicedt.graphic.view.HitInfo.Interior
-
- jpicedt.graphic.view.HitInfo.Text
-
- Enclosing class:
- 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 forjava.awt.font.TextHitInfo.
-
-
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 Text(TextEditable clickedObject, java.awt.font.TextHitInfo thi, PEMouseEvent mouseEvent)construct a new HitInfo.Text that occured on the given TextEditable, fetching useful information from the given TextHitInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.font.TextHitInfogetTextHitInfo()Returns thejava.awt.font.TextHitInfowrapped into this HitInfo.java.lang.StringtoString()-
Methods inherited from class jpicedt.graphic.view.HitInfo
getMouseEvent, getTarget
-
-
-
-
Constructor Detail
-
Text
public Text(TextEditable clickedObject, java.awt.font.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 java.awt.font.TextHitInfo getTextHitInfo()
Returns thejava.awt.font.TextHitInfowrapped into this HitInfo.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classHitInfo.Interior
-
-