Revision: 690
Author: allain.lalonde
Date: Fri Oct  9 06:04:12 2009
Log: Removing accidental System.out.printlns woops.
http://code.google.com/p/piccolo2d/source/detail?r=690

Modified:
   
/piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java

=======================================
---  
/piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java    
 
Thu Oct  8 21:24:11 2009
+++  
/piccolo2d.java/trunk/core/src/main/java/edu/umd/cs/piccolo/nodes/PText.java    
 
Fri Oct  9 06:04:12 2009
@@ -33,7 +33,6 @@
  import java.awt.Font;
  import java.awt.Graphics2D;
  import java.awt.Paint;
-import java.awt.RenderingHints;
  import java.awt.font.LineBreakMeasurer;
  import java.awt.font.TextAttribute;
  import java.awt.font.TextLayout;
@@ -136,22 +135,30 @@
      /** Font for this text node. */
      private Font font = DEFAULT_FONT;

-    /** Greek threshold in screen font size for this text node.  Will be  
made private in version 2.0. */
+    /**
+     * Greek threshold in screen font size for this text node. Will be made
+     * private in version 2.0.
+     */
      protected double greekThreshold = DEFAULT_GREEK_THRESHOLD;

      /** Horizontal alignment for this text node. */
      private float horizontalAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;

-    /** True if this text node should constrain its height to the height  
of its text. */
+    /**
+     * True if this text node should constrain its height to the height of  
its
+     * text.
+     */
      private boolean constrainHeightToTextHeight = true;

-    /** True if this text node should constrain its height to the height  
of its text. */
+    /**
+     * True if this text node should constrain its height to the height of  
its
+     * text.
+     */
      private boolean constrainWidthToTextWidth = true;

-    /** One or more lines of text layout. */
+    /** One or more lines of text layout. */
      private transient TextLayout[] lines;

-
      /**
       * Create a new text node with no text (<code>""</code>).
       */
@@ -266,8 +273,8 @@
      }

      /**
-     * Set to <code>true</code> if this text node should constrain its  
width to the
-     * width of its text.
+     * Set to <code>true</code> if this text node should constrain its  
width to
+     * the width of its text.
       *
       * @param constrainWidthToTextWidth true if this text node should  
constrain
       *            its width to the width of its text
@@ -506,9 +513,7 @@
              }

              final float offset = (float) (getWidth() - tl.getAdvance()) *  
horizontalAlignment;
-
-             
System.out.println(g2.getRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING));
-             
System.out.println(g2.getRenderingHint(RenderingHints.KEY_ANTIALIASING));
+
              tl.draw(g2, x + offset, y);

              y += tl.getDescent() + tl.getLeading();

--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to