gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java


From: Asko Soukka
Subject: Re: [Gzz-commits] gzz/gzz/view LinebrokenCellContentView.java
Date: Sat, 11 Jan 2003 20:07:47 +0200 (EET)

Sat, 11 Jan 2003, Benja Fallenstein wrote:
> > How would giving a very long width string (60 times "X") work when the
> > content of the cell is small? Would LCCV give smaller width if its has
> > only one short line as its content?
> No, it would always give the same  width. Why? What do you use the width
> for in PP?

Hmm... you should see PP :) It draws bouding boxes around linked cells and
then connection between boxes. It will look pretty ugly if one 4 letter
word have bounding box for 80 character line.

> > New bindings:
> >    Up: one line up, preserves the position from the beginning of the line
> >    Down: one line down, [same as above]
> What does 'preserves the position from the beginning of the line' mean?
> The *correct* behavior is to do it by pixels-- i.e., you remember that
> you're 87 pixels from the beginning of the display line and look for the

Ok. I *did* it by characters, because doing it by pixels seeemed to
complicated then. But I think starting with characters would be good, and
then move one letter steps back or forward until correct position is
found.

Another way to do this is could be the way I did finding font size in
AWT's ScalableFont. Recursive function, which starts from the middle of
the strint and checks is the wanted position greater or lesser, splits
string into half, and starts a new recursions with the correct half. Of
course this needs a little optimization, e.g. check first shoudl the
cursor be either at the beginning or at the end of the line.

-- 
Asko Soukka     | Taitoniekantie 9 A 603 | address@hidden
+358-40-8235947 | FIN-40740 JYVÄSKYLÄ    | http://www.iki.fi/asko.soukka/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]