|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Font | +--com.klg.jclass.page.FontBase
Extends Font to provide common code for subclasses.
Field Summary | |
protected static int |
DEFAULT_FONT_SIZE
|
protected static char |
REPLACEMENT_CHARACTER
|
Fields inherited from class java.awt.Font |
BOLD, CENTER_BASELINE, HANGING_BASELINE, ITALIC, LAYOUT_LEFT_TO_RIGHT, LAYOUT_NO_LIMIT_CONTEXT, LAYOUT_NO_START_CONTEXT, LAYOUT_RIGHT_TO_LEFT, name, PLAIN, pointSize, ROMAN_BASELINE, size, style, TRUETYPE_FONT |
Constructor Summary | |
FontBase(String name,
int style,
int size)
Constructor |
Method Summary | |
static GlyphVector |
createGlyphVector(Font f,
FontRenderContext frc,
char[] chars)
Correctly remaps a call to createGlyphVector() for the current JDK level |
static GlyphVector |
createGlyphVector(Font f,
FontRenderContext frc,
CharacterIterator iter)
Correctly remaps a call to createGlyphVector() for the current JDK level |
static GlyphVector |
createGlyphVector(Font f,
FontRenderContext frc,
String text)
Correctly remaps a call to createGlyphVector() for the current JDK level |
static Font |
deriveFont(Font f,
float size)
Correctly processes a call to deriveFont() for the current JDK level |
static Font |
deriveFont(Font f,
int style)
Correctly processes a call to deriveFont() for the current JDK level |
static Font |
deriveFont(Font f,
int style,
float size)
Correctly processes a call to deriveFont() for the current JDK level |
static String |
getDecodeString(String name,
int style,
int size)
Given a font, build the decode string so the corresponding device-dependant font can be decoded |
static Font |
getFont(String nm)
Overrides Font method. |
static Font |
getFont(String nm,
Font font)
Overrides Font method. |
protected static Font[] |
getFonts(com.klg.jclass.page.FontParser parser,
String file,
String ext,
Hashtable fonts,
boolean loaded)
Return an array of fonts. |
static float |
getSize2D(Font f)
Reinterprets getSize2D depending on the Java version |
protected static String |
getStyleString(int style)
Given a style constant return its string. |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static int DEFAULT_FONT_SIZE
protected static char REPLACEMENT_CHARACTER
Constructor Detail |
public FontBase(String name, int style, int size)
name
- the String name of the fontstyle
- the style for this fontsize
- the size for this fontMethod Detail |
public static Font getFont(String nm)
public static Font getFont(String nm, Font font)
protected static Font[] getFonts(com.klg.jclass.page.FontParser parser, String file, String ext, Hashtable fonts, boolean loaded)
public static String getDecodeString(String name, int style, int size)
protected static String getStyleString(int style)
public static Font deriveFont(Font f, int style, float size)
public static Font deriveFont(Font f, int style)
public static Font deriveFont(Font f, float size)
public static float getSize2D(Font f)
public static GlyphVector createGlyphVector(Font f, FontRenderContext frc, String text)
public static GlyphVector createGlyphVector(Font f, FontRenderContext frc, char[] chars)
public static GlyphVector createGlyphVector(Font f, FontRenderContext frc, CharacterIterator iter)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |