Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 315] New - FigText save and load ignores size and justification

gef
Discussion topic

Back to topic list

[Issue 315] New - FigText save and load ignores size and justification

Reply

Author mvw
Full name Michiel van der Wulp
Date 2008-01-15 10:42:31 PST
Message http://gef.tigris.or​g/issues/show_bug.cg​i?id=315
                 Issue #|315
                 Summary|FigText save and load ignores size and justification
               Component|gef
                 Version|0.10.4
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|persistence
             Assigned to|issues@gef
             Reported by|mvw






------- Additional comments from mvw at tigris dot org Tue Jan 15 10:42:31 -0800 2008 -------
When you save and load a FigText (in PGML), the size and justification are not
retained.

The following should be added to save these in PGML.tee, in the template for
FigText:

  width="<ocl>se​lf.width.intValue​</ocl>"
  height="<ocl>s​elf.height.intValue​</ocl>"

  justification="<o​cl>self.justifica​tionByName</ocl​>"

And for loading, the following should be added in PGMLStackParser.getHandler(),
after line 426:

  String justification = attributes.getValue(​"justification");
  if (justification != null && !justification.equals("")) {
      text.setJustificatio​nByName(justificatio​n);
  }

And, after these 2 files are patched, there is still a bug that the size is not
loaded correctly, since the calcBounds() is called a few times (after e.g. the
font is loaded), which causes the Fig to be reset to its minimum size.

« Previous message in topic | 1 of 5 | Next message in topic »

Messages

Show all messages in topic

[Issue 315] New - FigText save and load ignores size and justification mvw Michiel van der Wulp 2008-01-15 10:42:31 PST
     [Issue 315] FigText save and load ignores size and justification mvw Michiel van der Wulp 2008-01-15 11:35:13 PST
     [Issue 315] FigText save and load ignores size and justification thg2k Giovanni Giacobbi 2008-01-15 15:58:24 PST
     [Issue 315] FigText save and load ignores size and justification bobtarling Bob Tarling 2008-01-26 15:02:10 PST
     [Issue 315] FigText save and load ignores size and justification bobtarling Bob Tarling 2008-04-13 15:58:31 PDT
Messages per page: