gzz-dev
[Top][All Lists]
Advanced

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

Re: [Gzz] CellInBox


From: Benja Fallenstein
Subject: Re: [Gzz] CellInBox
Date: Tue, 26 Nov 2002 13:05:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1

Tuomas Lukka wrote:

On Sat, Nov 23, 2002 at 02:16:58PM +0100, Benja Fallenstein wrote:
Hi,

  /** Get the default size of the cell at a given scale.
   * This method exists for the benefit of AWT, where fonts cannot
   * be scaled accurately.
   * <p>
   * Note that the returned width and height are in Box scale:
   * they are not multiplied by the scale parameter.
   * @param c The cell to get size for, or null for a default size.
   */
  public void getSize(...);
Doesn't make sense to me. How can this give "the default size of the cell at a given scale," if "[the width and height] are not multiplied by the scale parameter"?

Ok, consider that you're placing a box into a coordinate system cs that you were
given from somewhere.

You do

        scale = VobCoorder.getFontScale(cs)

which returns the scale of the font system, and then

        cellinbox.getSize(scale,...)

which returns the size you should use to put things into cs!

If they were multiplied by scale, you'd have to divide again outside.


Huh! Ok. This should be in the javadoc.
-b.






reply via email to

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