Re: Request public interface hitTestChar for GVT TextNode

2005-02-26 Thread Thomas DeWeese
Hi Tonny,
   I went with adding the 'getCharIndex' method to the
Mark class.  This is now in CVS.
Tonny Kohar wrote:
The patch is attached to this message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Thomas DeWeese
Tonny Kohar wrote:
I would like to request adding public method/function hitTestChar for
GVT TextNode or TextPainter which return TextHit instead of Mark.
  Is this because you want access to the 'getCharIndex' method of
TextHit?
If it is ok, I will write and submit the patch. The method is basicly a
copy of org.apache.batik.gvt.renderer.StrokingTextPainter.hitTest(double
x, double y, TextNode node) which have name hitTestChar and return
TextHit
   It may be easier and cleaer to add this method to Mark, as
every Mark actually created is an instance of
gvt.renderer.BasicTextPainter.BasicMark which contains a TextHit
internally.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Tonny Kohar
Hi,

  I would like to request adding public method/function hitTestChar for
  GVT TextNode or TextPainter which return TextHit instead of Mark.
 
Is this because you want access to the 'getCharIndex' method of
 TextHit?

Exactly, this is what I want getCharIndex from TextHit.

  If it is ok, I will write and submit the patch. The method is basicly a
  copy of org.apache.batik.gvt.renderer.StrokingTextPainter.hitTest(double
  x, double y, TextNode node) which have name hitTestChar and return
  TextHit
 
 It may be easier and cleaer to add this method to Mark, as
 every Mark actually created is an instance of
 gvt.renderer.BasicTextPainter.BasicMark which contains a TextHit
 internally.

So, I will add method public TextHit getHit() on interface
org.apache.batik.gvt.text.Mark. That's mean every mark have text hit
property. is it ok for you?

Thanks
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request public interface hitTestChar for GVT TextNode

2005-02-23 Thread Tonny Kohar
Hi,

The patch is attached to this message.

Thanks
Tonny Kohar

  
  It may be easier and cleaer to add this method to Mark, as
  every Mark actually created is an instance of
  gvt.renderer.BasicTextPainter.BasicMark which contains a TextHit
  internally.
 
 So, I will add method public TextHit getHit() on interface
 org.apache.batik.gvt.text.Mark. That's mean every mark have text hit
 property. is it ok for you?
 

Index: Mark.java
===
RCS file: /home/cvspublic/xml-batik/sources/org/apache/batik/gvt/text/Mark.java,v
retrieving revision 1.4
diff -u -r1.4 Mark.java
--- Mark.java	18 Aug 2004 07:14:42 -	1.4
+++ Mark.java	24 Feb 2005 05:32:52 -
@@ -30,4 +30,7 @@
  * Return the TextNode this Mark is associated with 
  */
 TextNode getTextNode();
+
+/** Return the TextHit for this mark */
+public TextHit getHit();
 }

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]