java > java.awt > java.awt.font >

Class: java.awt.Font
    java.lang.Object
       java.awt.Font


public class Font extends Object implements Serializable


FIELDS:
public static final int BOLD : 1
public static final int CENTER_BASELINE : 1
public static final String DIALOG : Dialog
public static final String DIALOG_INPUT : DialogInput
public static final int HANGING_BASELINE : 2
public static final int ITALIC : 2
public static final int LAYOUT_LEFT_TO_RIGHT : 0
public static final int LAYOUT_NO_LIMIT_CONTEXT : 4
public static final int LAYOUT_NO_START_CONTEXT : 2
public static final int LAYOUT_RIGHT_TO_LEFT : 1
public static final String MONOSPACED : Monospaced
public static final int PLAIN : 0
public static final int ROMAN_BASELINE : 0
public static final String SANS_SERIF : SansSerif
public static final String SERIF : Serif
public static final int TRUETYPE_FONT : 0
public static final int TYPE1_FONT : 1
protected String name
protected float pointSize
protected int size
protected int style

CONSTRUCTORS:
public Font(String name, int style, int size)

public Font(Map attributes)

protected Font(Font font)


METHODS:
public boolean canDisplay(char c)

public boolean canDisplay(int codePoint)
Throws: IllegalArgumentException

public int canDisplayUpTo(char[] text, int start, int limit)

public int canDisplayUpTo(String str)

public int canDisplayUpTo(CharacterIterator iter, int start, int limit)

public static Font createFont(int fontFormat, File fontFile)
Throws: IllegalArgumentException
Throws: NullPointerException
Throws: IOException
Throws: FontFormatException
Throws: SecurityException

public static Font createFont(int fontFormat, InputStream fontStream)
Throws: IllegalArgumentException
Throws: FontFormatException
Throws: IOException

public GlyphVector createGlyphVector(FontRenderContext frc, char[] chars)

public GlyphVector createGlyphVector(FontRenderContext frc, int[] glyphCodes)

public GlyphVector createGlyphVector(FontRenderContext frc, String str)

public GlyphVector createGlyphVector(FontRenderContext frc, CharacterIterator ci)

public static Font decode(String str)

public Font deriveFont(float size)

public Font deriveFont(int style)

public Font deriveFont(int style, float size)

public Font deriveFont(int style, AffineTransform trans)
Throws: IllegalArgumentException

public Font deriveFont(AffineTransform trans)
Throws: IllegalArgumentException

public Font deriveFont(Map attributes)

public boolean equals(Object obj)
Overrides: Object

protected void finalize()
Throws: Throwable
Overrides: Object

public Map getAttributes()

public AttributedCharacterIterator.Attribute[] getAvailableAttributes()

public byte getBaselineFor(char c)

public String getFamily()

public String getFamily(Locale l)

public static Font getFont(String nm)
Throws: NullPointerException

public static Font getFont(String nm, Font font)
Throws: NullPointerException

public static Font getFont(Map attributes)
Throws: NullPointerException

public String getFontName()

public String getFontName(Locale l)

public float getItalicAngle()

public LineMetrics getLineMetrics(char[] chars, int beginIndex, int limit, FontRenderContext frc)

public LineMetrics getLineMetrics(String str, int beginIndex, int limit, FontRenderContext frc)

public LineMetrics getLineMetrics(String str, FontRenderContext frc)

public LineMetrics getLineMetrics(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)

public Rectangle2D getMaxCharBounds(FontRenderContext frc)

public int getMissingGlyphCode()

public String getName()

public int getNumGlyphs()

public String getPSName()

public java.awt.peer.FontPeer getPeer()

public int getSize()

public float getSize2D()

public Rectangle2D getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)
Throws: IndexOutOfBoundsException

public Rectangle2D getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)
Throws: IndexOutOfBoundsException

public Rectangle2D getStringBounds(String str, FontRenderContext frc)

public Rectangle2D getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
Throws: IndexOutOfBoundsException

public int getStyle()

public AffineTransform getTransform()

public boolean hasLayoutAttributes()

public boolean hasUniformLineMetrics()

public int hashCode()
Overrides: Object

public boolean isBold()

public boolean isItalic()

public boolean isPlain()

public boolean isTransformed()

public GlyphVector layoutGlyphVector(FontRenderContext frc, char[] text, int start, int limit, int flags)
Throws: ArrayIndexOutOfBoundsException

public String toString()
Overrides: Object


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:
FontUIResource,





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net