All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.l2f.gui.GraphicFont

java.lang.Object
   |
   +----fr.l2f.gui.GraphicFont

public class GraphicFont
extends Object
GraphicFont extends the possibilities of java.awt.Font. Now, you can use Underline and/or Strike with the other fonts. In order to use GraphicFont, you must replace all your g.drawString by GraphicFont.drawString


Variable Index

 o BOLD
 o DEFAULT_NAME
 o DEFAULT_SIZE
 o DEFAULT_STYLE
 o ITALIC
 o PLAIN
 o STRIKE
 o UNDERLINE

Constructor Index

 o GraphicFont(Font)
 o GraphicFont(String, int, int)
Construct a new GraphicFont with given name, style and size For name, you must use the java name.

Method Index

 o drawString(Graphics, Font, String, int, int)
 o drawString(Graphics, GraphicFont, String, int, int)
 o drawString(Graphics, String, int, int)
 o drawString(Graphics, String, int, int, String, int, int)
 o getDefault()
 o getName()
 o getSize()
 o getStyle()
 o isBold()
 o isBold(int)
 o isItalic()
 o isItalic(int)
 o isPlain()
 o isPlain(int)
 o isStrike()
 o isStrike(int)
 o isUnderline()
 o isUnderline(int)
 o setName(String)
 o setSize(int)
 o setStyle(int)

Variables

 o PLAIN
 public static final int PLAIN
 o BOLD
 public static final int BOLD
 o ITALIC
 public static final int ITALIC
 o STRIKE
 public static final int STRIKE
 o UNDERLINE
 public static final int UNDERLINE
 o DEFAULT_NAME
 public static final String DEFAULT_NAME
 o DEFAULT_STYLE
 public static final int DEFAULT_STYLE
 o DEFAULT_SIZE
 public static final int DEFAULT_SIZE

Constructors

 o GraphicFont
 public GraphicFont(String name,
                    int style,
                    int size)
Construct a new GraphicFont with given name, style and size For name, you must use the java name.

 o GraphicFont
 public GraphicFont(Font f)

Methods

 o getDefault
 public static GraphicFont getDefault()
 o setName
 public void setName(String name)
 o getName
 public String getName()
 o setStyle
 public void setStyle(int style)
 o getStyle
 public int getStyle()
 o setSize
 public void setSize(int size)
 o getSize
 public int getSize()
 o drawString
 public static void drawString(Graphics g,
                               GraphicFont f,
                               String text,
                               int x,
                               int y)
 o drawString
 public static void drawString(Graphics g,
                               String text,
                               int x,
                               int y)
 o drawString
 public static void drawString(Graphics g,
                               Font f,
                               String text,
                               int x,
                               int y)
 o drawString
 public static void drawString(Graphics g,
                               String fontname,
                               int style,
                               int fontsize,
                               String text,
                               int x,
                               int y)
 o isPlain
 public boolean isPlain()
 o isPlain
 public static boolean isPlain(int style)
 o isBold
 public boolean isBold()
 o isBold
 public static boolean isBold(int style)
 o isItalic
 public boolean isItalic()
 o isItalic
 public static boolean isItalic(int style)
 o isStrike
 public boolean isStrike()
 o isStrike
 public static boolean isStrike(int style)
 o isUnderline
 public boolean isUnderline()
 o isUnderline
 public static boolean isUnderline(int style)

All Packages  Class Hierarchy  This Package  Previous  Next  Index