|
From: Nick C. <nic...@ve...> - 2003-07-16 14:38:32
|
I'm not absolutely sure I understand your question, but getSize() returns the size of the display window itself, not the actual visible box around the text you are displaying. The size of the display is used to coordinate with the DisplaySurface and other displays, I think. getSize() fulfills part of the requirements of the Displayable interface. In the case, of TextDisplay, getSize() doesn't make as much sense as it does in the case of a grid display, but it needs be there. Nick On Wed, 2003-07-16 at 10:20, Vos, Jerry R. wrote: > The TextDisplay has getSize() which would seem to be the function to > get the displayed size of the display (specifically I would think of > the box around it), the getSize returns the height and width field. > Is there a reason that the TextDisplay has the height and width field, > but when drawDisplay runs it creates its own height and width > variables and never stores those into the actual display? > > I would imagine this would be so that you can set custom box sizes, > but it doesn’t appear to me that drawDisplay ever references the two > fields, even indirectly. > > > > Jerry Vos > ANL -- Nick Collier <nic...@ve...> |