Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 5] New - FigTextEditor does not comply to zooming/scaling

gef
Discussion topic

Back to topic list

[Issue 5] New - FigTextEditor does not comply to zooming/scaling

Reply

Author issues at gef dot tigris dot org
Full name issues at gef dot tigris dot org
Date 2002-06-20 02:11:43 PDT
Message http://gef.tigris.or​g/issues/show_bug.cg​i?id=5

                  Summary: FigTextEditor does not comply to zooming/scaling
                Component: gef
                  Version: current
                 Platform: PC
                      URL: http://argouml.tigri​s.org/issues/show_bu​g.cgi?id=792
               OS/Version: Linux
                   Status: NEW
        Status Whiteboard:
                 Keywords:
               Resolution:
               Issue type: DEFECT
                 Priority: P3
             Subcomponent: www
               AssignedTo: issues@gef
               ReportedBy: mkl


See the above URL for a user bug description. Valid for ArgoUML and
Poseidon and all other GEF apps as I think.

Problem seems to be that a FigTextEditor does not get painted by
Editor which overrides the paint method to apply scale factors (in
accordance with the scale factor set in Editor).

Providing FigTextEditor with a paint method seems to work. I tried
different versions but though they will paint the Texteditor in the
right location they are either slow or behave otherwise strangely.
That is due to the fact that I am not really a java GUI guy.

Would be nice if someone could have a look at the proper solution and
also file this in the argo bug mentioned above.

Here is my current solution:
 public synchronized void paint(Graphics g) {
    super.paint(g);
    Editor ce = Globals.curEditor();
    if (g instanceof Graphics2D) {
    Graphics2D g2 = (Graphics2D) g;
    g2.scale(ce.getScale(), ce.getScale());
    }
   ce.getLayerManager().paint(g);
   ce.getSelectionManag​er().paint(g);
   ce.getModeManager().paint(g);
  }
copied from Editor.java and not modified to the particular situation :-(

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: issues-unsubscribe@g​ef.tigris.org
For additional commands, e-mail: issues-help at gef dot tigris dot org

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

Messages

Show all messages in topic

[Issue 5] New - FigTextEditor does not comply to zooming/scaling issues at gef dot tigris dot org issues at gef dot tigris dot org 2002-06-20 02:11:43 PDT
Messages per page: