< prev index next >

src/java.desktop/share/classes/sun/font/TextLabelFactory.java

Print this page




  24  */
  25 /*
  26  *
  27  * (C) Copyright IBM Corp. 1998-2003 All Rights Reserved
  28  */
  29 
  30 package sun.font;
  31 
  32 import java.awt.Font;
  33 
  34 import java.awt.font.FontRenderContext;
  35 import java.text.Bidi;
  36 
  37   /**
  38    * A factory for text labels.  Basically this just holds onto the stuff that
  39    * doesn't change-- the render context, context, and bidi info for the context-- and gets
  40    * called for each subrange you want to create.
  41    *
  42    * @see Font
  43    * @see FontRenderContext
  44    * @see GlyphVector
  45    * @see TextLabel
  46    * @see ExtendedTextLabel
  47    * @see Bidi
  48    * @see TextLayout
  49    */
  50 
  51 public class TextLabelFactory {
  52   private FontRenderContext frc;
  53   private char[] text;
  54   private Bidi bidi;
  55   private Bidi lineBidi;
  56   private int flags;
  57   private int lineStart;
  58   private int lineLimit;
  59 
  60   /**
  61    * Initialize a factory to produce glyph arrays.
  62    * @param frc the FontRenderContext to use for the arrays to be produced.
  63    * @param text the text of the paragraph.
  64    * @param bidi the bidi information for the paragraph text, or null if the
  65    * entire text is left-to-right text.
  66    */
  67   public TextLabelFactory(FontRenderContext frc,
  68                           char[] text,




  24  */
  25 /*
  26  *
  27  * (C) Copyright IBM Corp. 1998-2003 All Rights Reserved
  28  */
  29 
  30 package sun.font;
  31 
  32 import java.awt.Font;
  33 
  34 import java.awt.font.FontRenderContext;
  35 import java.text.Bidi;
  36 
  37   /**
  38    * A factory for text labels.  Basically this just holds onto the stuff that
  39    * doesn't change-- the render context, context, and bidi info for the context-- and gets
  40    * called for each subrange you want to create.
  41    *
  42    * @see Font
  43    * @see FontRenderContext
  44    * @see java.awt.font.GlyphVector
  45    * @see TextLabel
  46    * @see ExtendedTextLabel
  47    * @see Bidi
  48    * @see java.awt.font.TextLayout
  49    */
  50 
  51 public class TextLabelFactory {
  52   private FontRenderContext frc;
  53   private char[] text;
  54   private Bidi bidi;
  55   private Bidi lineBidi;
  56   private int flags;
  57   private int lineStart;
  58   private int lineLimit;
  59 
  60   /**
  61    * Initialize a factory to produce glyph arrays.
  62    * @param frc the FontRenderContext to use for the arrays to be produced.
  63    * @param text the text of the paragraph.
  64    * @param bidi the bidi information for the paragraph text, or null if the
  65    * entire text is left-to-right text.
  66    */
  67   public TextLabelFactory(FontRenderContext frc,
  68                           char[] text,


< prev index next >