Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: MODIFIED: presentation ...

gef
Discussion topic

Back to topic list

CVS update: MODIFIED: presentation ...

Reply

Author 1sturm
Full name Thorsten Sturm
Date 2001-06-20 06:59:23 PDT
Message User: 1sturm
  Date: 01/06/20 06:59:23

  Modified: src/org/tigris/gef/presentation FigText.java
  Log:
  minor fixes
  
  Revision Changes Path
  1.6 +3 -8 gef/src/org/tigris/g​ef/presentation/FigT​ext.java
  
  http://gef.tigris.or​g/source/browse/gef/​src/org/tigris/gef/p​resentation/FigText.​java.diff?r1=1.5​&r2=1.6
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FigText.java
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/gef/src/org/tigri​s/gef/presentation/F​igText.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- FigText.java 2001/05/16 12:46:52 1.5
  +++ FigText.java 2001/06/20 13:59:23 1.6
  @@ -26,7 +26,7 @@
   // File: FigText.java
   // Classes: FigText
   // Original Author: ics125 spring 1996
  -// $Id: FigText.java,v 1.5 2001/05/16 12:46:52 1sturm Exp $
  +// $Id: FigText.java,v 1.6 2001/06/20 13:59:23 1sturm Exp $
   
   package org.tigris.gef.presentation;
   
  @@ -535,6 +535,7 @@
      * do not get smaller when you backspace. */
     public void calcBounds() {
       Rectangle bounds = getBounds();
  + //System.out.println("[FigText] calcBounds(1) "+getText()+": "+bounds.x+","+bound​s.y+","+bounds.width​+","+bounds.height);​
       if (_font == null) return;
       if (_fm == null) _fm = Toolkit.getDefaultTo​olkit().getFontMetri​cs(_font);
       int overallW = 0;
  @@ -567,13 +568,7 @@
       }
       _w = _expandOnly ? Math.max(_w, overallW) : overallW;
       _h = _expandOnly ? Math.max(_h, overallH) : overallH;
  -
  - }
  -
  - //needs-more-work: this is only a hack. the origination of the problem lies
  - // within the storing of the annotations.
  - public void recalcAnnotationBoun​ds(Rectangle rect) {
  - setBounds(rect.x+5,r​ect.y,rect.width,rec​t.height);
  + //System.out.println("[FigText] calcBounds(2): "+_x+","+_y+","+_w+","+_h);
     }
   
   } /* end class FigText */
  
  
  

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe at gef dot tigris dot org
For additional commands, e-mail: cvs-help at gef dot tigris dot org

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

Messages

Show all messages in topic

CVS update: MODIFIED: presentation ... 1sturm Thorsten Sturm 2001-06-20 06:59:23 PDT
Messages per page: