/[classpath]/classpath/gnu/java/awt/peer/gtk/GdkGlyphVector.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GdkGlyphVector.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by graydon, Tue Jan 27 09:46:25 2004 UTC revision 1.2.2.1 by gnu_andrew, Sat Jan 15 17:01:40 2005 UTC
# Line 1  Line 1 
1  /* GdkGlyphVector.java -- Glyph vector object  /* GdkGlyphVector.java -- Glyph vector object
2     Copyright (C) 2003 Free Software Foundation, Inc.     Copyright (C) 2003, 2004  Free Software Foundation, Inc.
3    
4     This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
6     GNU Classpath is free software; you can redistribute it and/or modify  GNU Classpath is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2, or (at your option)  the Free Software Foundation; either version 2, or (at your option)
9     any later version.  any later version.
10    
11     GNU Classpath is distributed in the hope that it will be useful, but  GNU Classpath is distributed in the hope that it will be useful, but
12     WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14     General Public License for more details.  General Public License for more details.
15    
16     You should have received a copy of the GNU General Public License  You should have received a copy of the GNU General Public License
17     along with GNU Classpath; see the file COPYING.  If not, write to the  along with GNU Classpath; see the file COPYING.  If not, write to the
18     Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19     02111-1307 USA.  02111-1307 USA.
20    
21     Linking this library statically or dynamically with other modules is  Linking this library statically or dynamically with other modules is
22     making a combined work based on this library.  Thus, the terms and  making a combined work based on this library.  Thus, the terms and
23     conditions of the GNU General Public License cover the whole  conditions of the GNU General Public License cover the whole
24     combination.  combination.
25    
26     As a special exception, the copyright holders of this library give you  As a special exception, the copyright holders of this library give you
27     permission to link this library with independent modules to produce an  permission to link this library with independent modules to produce an
28     executable, regardless of the license terms of these independent  executable, regardless of the license terms of these independent
29     modules, and to copy and distribute the resulting executable under  modules, and to copy and distribute the resulting executable under
30     terms of your choice, provided that you also meet, for each linked  terms of your choice, provided that you also meet, for each linked
31     independent module, the terms and conditions of the license of that  independent module, the terms and conditions of the license of that
32     module.  An independent module is a module which is not derived from  module.  An independent module is a module which is not derived from
33     or based on this library.  If you modify this library, you may extend  or based on this library.  If you modify this library, you may extend
34     this exception to your version of the library, but you are not  this exception to your version of the library, but you are not
35     obligated to do so.  If you do not wish to do so, delete this  obligated to do so.  If you do not wish to do so, delete this
36     exception statement from your version. */  exception statement from your version. */
37    
38    
39  package gnu.java.awt.peer.gtk;  package gnu.java.awt.peer.gtk;
40    
 import java.awt.*;  
 import java.awt.font.*;  
 import java.awt.geom.*;  
 import java.io.InputStream;  
 import java.io.IOException;  
 import java.io.Serializable;  
 import java.util.Locale;  
 import java.util.Map;  
 import java.util.StringTokenizer;  
 import java.text.CharacterIterator;  
 import java.text.AttributedCharacterIterator;  
41  import gnu.classpath.Configuration;  import gnu.classpath.Configuration;
42    
43  public class GdkGlyphVector extends GlyphVector  import java.awt.Font;
44    import java.awt.Rectangle;
45    import java.awt.Shape;
46    import java.awt.font.FontRenderContext;
47    import java.awt.font.GlyphMetrics;
48    import java.awt.font.GlyphVector;
49    import java.awt.font.GlyphJustificationInfo;
50    import java.awt.geom.AffineTransform;
51    import java.awt.geom.Point2D;
52    import java.awt.geom.Rectangle2D;
53    
54    public class GdkGlyphVector extends GlyphVector
55  {  {
56    
57    static    static
# Line 70  public class GdkGlyphVector extends Glyp Line 70  public class GdkGlyphVector extends Glyp
70    private Font font;    private Font font;
71    private FontRenderContext ctx;    private FontRenderContext ctx;
72            
73    private native void initState (GdkClasspathFontPeer peer, FontRenderContext ctx);    private native void initState (GdkFontPeer peer, FontRenderContext ctx);
74    private native void setChars (String s);    private native void setChars (String s);
75    private native void setGlyphCodes (int codes[]);    private native void setGlyphCodes (int codes[]);
76    private native void dispose ();    private native void dispose ();
# Line 109  public class GdkGlyphVector extends Glyp Line 109  public class GdkGlyphVector extends Glyp
109     */     */
110    
111    
112    public GdkGlyphVector (Font f, GdkClasspathFontPeer peer, FontRenderContext c, String s)    public GdkGlyphVector (Font f, GdkFontPeer peer, FontRenderContext c, String s)
113    {    {
114      font = f;      font = f;
115      ctx = c;      ctx = c;
# Line 117  public class GdkGlyphVector extends Glyp Line 117  public class GdkGlyphVector extends Glyp
117      setChars (s);      setChars (s);
118    }    }
119    
120    public GdkGlyphVector (Font f, GdkClasspathFontPeer peer, FontRenderContext c, int codes[])    public GdkGlyphVector (Font f, GdkFontPeer peer, FontRenderContext c, int codes[])
121    {    {
122      font = f;      font = f;
123      ctx = c;      ctx = c;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.2.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26