jdk/src/java.desktop/share/classes/java/awt/font/GlyphVector.java
changeset 28059 e576535359cc
parent 26749 b6598aa90114
child 35667 ed476aba94de
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   339         }
   339         }
   340 
   340 
   341     /**
   341     /**
   342      * Returns the position of the specified glyph relative to the
   342      * Returns the position of the specified glyph relative to the
   343      * origin of this <code>GlyphVector</code>.
   343      * origin of this <code>GlyphVector</code>.
   344      * If <code>glyphIndex</code> equals the number of of glyphs in
   344      * If <code>glyphIndex</code> equals the number of glyphs in
   345      * this <code>GlyphVector</code>, this method returns the position after
   345      * this <code>GlyphVector</code>, this method returns the position after
   346      * the last glyph. This position is used to define the advance of
   346      * the last glyph. This position is used to define the advance of
   347      * the entire <code>GlyphVector</code>.
   347      * the entire <code>GlyphVector</code>.
   348      * @param glyphIndex the index into this <code>GlyphVector</code>
   348      * @param glyphIndex the index into this <code>GlyphVector</code>
   349      * @return a {@link Point2D} object that is the position of the glyph
   349      * @return a {@link Point2D} object that is the position of the glyph
   356     public abstract Point2D getGlyphPosition(int glyphIndex);
   356     public abstract Point2D getGlyphPosition(int glyphIndex);
   357 
   357 
   358     /**
   358     /**
   359      * Sets the position of the specified glyph within this
   359      * Sets the position of the specified glyph within this
   360      * <code>GlyphVector</code>.
   360      * <code>GlyphVector</code>.
   361      * If <code>glyphIndex</code> equals the number of of glyphs in
   361      * If <code>glyphIndex</code> equals the number of glyphs in
   362      * this <code>GlyphVector</code>, this method sets the position after
   362      * this <code>GlyphVector</code>, this method sets the position after
   363      * the last glyph. This position is used to define the advance of
   363      * the last glyph. This position is used to define the advance of
   364      * the entire <code>GlyphVector</code>.
   364      * the entire <code>GlyphVector</code>.
   365      * @param glyphIndex the index into this <code>GlyphVector</code>
   365      * @param glyphIndex the index into this <code>GlyphVector</code>
   366      * @param newPos the <code>Point2D</code> at which to position the
   366      * @param newPos the <code>Point2D</code> at which to position the
   475      * If no array is passed in, a new array is created.
   475      * If no array is passed in, a new array is created.
   476      * Even numbered array entries beginning with position zero are the X
   476      * Even numbered array entries beginning with position zero are the X
   477      * coordinates of the glyph numbered <code>beginGlyphIndex + position/2</code>.
   477      * coordinates of the glyph numbered <code>beginGlyphIndex + position/2</code>.
   478      * Odd numbered array entries beginning with position one are the Y
   478      * Odd numbered array entries beginning with position one are the Y
   479      * coordinates of the glyph numbered <code>beginGlyphIndex + (position-1)/2</code>.
   479      * coordinates of the glyph numbered <code>beginGlyphIndex + (position-1)/2</code>.
   480      * If <code>beginGlyphIndex</code> equals the number of of glyphs in
   480      * If <code>beginGlyphIndex</code> equals the number of glyphs in
   481      * this <code>GlyphVector</code>, this method gets the position after
   481      * this <code>GlyphVector</code>, this method gets the position after
   482      * the last glyph and this position is used to define the advance of
   482      * the last glyph and this position is used to define the advance of
   483      * the entire <code>GlyphVector</code>.
   483      * the entire <code>GlyphVector</code>.
   484      * @param beginGlyphIndex the index at which to begin retrieving
   484      * @param beginGlyphIndex the index at which to begin retrieving
   485      *   glyph positions
   485      *   glyph positions