Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: gef/src/org/tigris/gef/presentation FigText.java

gef
Discussion topic

Back to topic list

CVS update: gef/src/org/tigris/gef/presentation FigText.java

Reply

Author toby
Full name Toby Baier
Date 2000-11-29 06:49:08 PST
Message User: toby
  Date: 00/11/29 06:49:08

  Modified: src build.xml
               src/org/tigris/gef/presentation FigText.java
  Log:
  new constructor for expandOnly behavior, returned default to false
  Obtained from:Toby, Thorsten, Andy
  Submitted by:Toby
  
  Revision Changes Path
  1.10 +0 -2 gef/src/build.xml
  
  Index: build.xml
  ====================​====================​====================​=======
  RCS file: /cvs/gef/src/build.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- build.xml 2000/11/21 14:57:28 1.9
  +++ build.xml 2000/11/29 14:49:07 1.10
  @@ -115,7 +115,6 @@
   
       <property name="manifest" value="org/tigris/ge​f/manifest.mf"/>
   
  - <property name="classpath" value="${lib.dir}/x​ml4j.jar"/>
       <property name="packages" value="org.tigris.gef.* Acme.*"/>
   
       <property name="build.dir" value="../build"/>
  @@ -183,7 +182,6 @@
   
       <javac srcdir="${build.src}"
              destdir="${build.dest}"
  - classpath="${classpath}"
              debug="${debug}"
              deprecation="${deprecation}"
              optimize="${optimize}"/>
  
  
  
  1.3 +16 -5 gef/src/org/tigris/g​ef/presentation/FigT​ext.java
  
  Index: FigText.java
  ====================​====================​====================​=======
  RCS file: /cvs/gef/src/org/tig​ris/gef/presentation​/FigText.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FigText.java 2000/11/08 13:29:13 1.2
  +++ FigText.java 2000/11/29 14:49:07 1.3
  @@ -26,7 +26,7 @@
   // File: FigText.java
   // Classes: FigText
   // Original Author: ics125 spring 1996
  -// $Id: FigText.java,v 1.2 2000/11/08 13:29:13 toby Exp $
  +// $Id: FigText.java,v 1.3 2000/11/29 14:49:07 toby Exp $
   
   package org.tigris.gef.presentation;
   
  @@ -98,7 +98,7 @@
     protected int _rightMargin = 1;
   
     /** True if the FigText can only grow in size, never shrink. */
  - protected boolean _expandOnly = true;
  + protected boolean _expandOnly = false;
   
     /** Text justification can be JUSTIFY_LEFT, JUSTIFY_RIGHT, or JUSTIFY_CENTER. */
     protected int _justification = JUSTIFY_LEFT;
  @@ -134,20 +134,31 @@
      * string, font, and font size. Text string is initially empty and
      * centered. */
     public FigText(int x, int y, int w, int h,
  - Color textColor, String familyName, int fontSize) {
  + Color textColor, String familyName, int fontSize,
  + boolean expandOnly) {
       super(x, y, w, h);
       _x = x; _y = y; _w = w; _h = h;
       _textColor = textColor;
       _font = new Font(familyName, Font.PLAIN, fontSize);
       _justification = JUSTIFY_CENTER;
       _curText = "";
  + _expandOnly = expandOnly;
     }
   
  - /** Construct a new FigText with the given position, size, and attributes. */
  + public FigText(int x, int y, int w, int h,
  + Color textColor, String familyName, int fontSize) {
  + this(x, y, w, h, textColor, familyName, fontSize, false);
  + }
  +
  + /** Construct a new FigText with the given position and size */
     public FigText(int x, int y, int w, int h ) {
  - this(x, y, w, h, Color.blue, "TimesRoman", 10);
  + this(x, y, w, h, Color.blue, "TimesRoman", 10, false);
     }
   
  + /** Construct a new FigText with the given position, size, and attributes. */
  + public FigText(int x, int y, int w, int h , boolean expandOnly) {
  + this(x, y, w, h, Color.blue, "TimesRoman", 10, expandOnly);
  + }
     ////////////////////​////////////////////​////////////////////​////
     // invariant

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

Messages

Show all messages in topic

CVS update: gef/src/org/tigris/gef/presentation FigText.java toby Toby Baier 2000-11-29 06:49:08 PST
Messages per page: