public class FRFont extends java.awt.Font implements FontProvider, java.lang.Cloneable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEFAULT_FONTNAME |
static java.util.HashMap<java.lang.String,java.lang.Object> |
FONT_DEFAULT |
static int |
SCALE_TO_FRSIZE |
限定符和类型 | 方法和说明 |
---|---|
FRFont |
applyForeground(java.awt.Color foreground)
字颜色
|
FRFont |
applyName(java.lang.String name)
字体
|
java.awt.Font |
applyResolutionNP(int resolution)
返回在此分辨率下的Size的FRFont
此方法只为临时转换分辨率下的字体所用,所构造字体不进行缓存,无法持久化。
|
FRFont |
applyShadow(boolean shadow)
阴影
|
FRFont |
applySize(float size)
字
|
FRFont |
applyStrikethrough(boolean strikethrough)
删除线
|
FRFont |
applyStyle(int style)
字
|
FRFont |
applySubscript(boolean subscript)
下标
|
FRFont |
applySuperscript(boolean superscript)
上标字
|
FRFont |
applyUnderline(int underline)
下划线
|
JSONObject |
changedAttrToJSONObject()
将改变的属性转化为json数据输出
|
java.lang.Object |
clone()
Clone
|
static float |
convResolution(float size,
int resolution)
从此分辨率下的Size的返回磅值的FRFont
|
boolean |
equals(java.lang.Object object)
Equal
|
java.awt.Color |
getForeground()
Gets foreground.
|
int |
getFRSize() |
static FRFont |
getInstance() |
static FRFont |
getInstance(java.awt.Font font) |
static FRFont |
getInstance(java.lang.String name,
int style,
float ptsize) |
static FRFont |
getInstance(java.lang.String name,
int style,
float ptsize,
java.awt.Color foreground) |
static FRFont |
getInstance(java.lang.String name,
int style,
float ptsize,
java.awt.Color foreground,
int underline) |
static FRFont |
getInstance(java.lang.String name,
int style,
float ptsize,
java.awt.Color foreground,
int underline,
boolean strikethrough,
boolean shadow,
boolean superscript,
boolean subscript) |
static FRFont |
getInstanceFromFRSize(java.lang.String name,
int style,
int frsize) |
int |
getShowSize(int resolution)
返回在此分辨率下的Size
|
int |
getSize() |
java.lang.String |
getStyleName()
Gets the name of style.
|
int |
getUnderline()
Gets underline. if there is no under line,returns Constants.LINE_NONE .
|
int |
hashCode()
hash码
|
boolean |
isShadow()
是否是阴影
|
boolean |
isStrikethrough()
是否是删除线
|
boolean |
isSubscript()
是否是下标
|
boolean |
isSuperscript()
是否是上标
|
protected java.lang.Object |
readResolve() |
void |
setForeground(java.awt.Color foreground) |
JSONObject |
toJSONObject()
将字体转化成JSON描述
|
JSONObject |
toJSONObject(Repository repo)
将字体转化成JSON描述
|
canDisplay, canDisplay, canDisplayUpTo, canDisplayUpTo, canDisplayUpTo, createFont, createFont, createGlyphVector, createGlyphVector, createGlyphVector, createGlyphVector, decode, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, getAttributes, getAvailableAttributes, getBaselineFor, getFamily, getFamily, getFont, getFont, getFont, getFontName, getFontName, getItalicAngle, getLineMetrics, getLineMetrics, getLineMetrics, getLineMetrics, getMaxCharBounds, getMissingGlyphCode, getName, getNumGlyphs, getPeer, getPSName, getSize2D, getStringBounds, getStringBounds, getStringBounds, getStringBounds, getStyle, getTransform, hasLayoutAttributes, hasUniformLineMetrics, isBold, isItalic, isPlain, isTransformed, layoutGlyphVector, toString
getName, getStyle
public static final java.lang.String DEFAULT_FONTNAME
public static final int SCALE_TO_FRSIZE
public static final java.util.HashMap<java.lang.String,java.lang.Object> FONT_DEFAULT
public static FRFont getInstance()
public static FRFont getInstance(java.awt.Font font)
public static FRFont getInstance(java.lang.String name, int style, float ptsize)
public static FRFont getInstanceFromFRSize(java.lang.String name, int style, int frsize)
public static FRFont getInstance(java.lang.String name, int style, float ptsize, java.awt.Color foreground)
public static FRFont getInstance(java.lang.String name, int style, float ptsize, java.awt.Color foreground, int underline)
public static FRFont getInstance(java.lang.String name, int style, float ptsize, java.awt.Color foreground, int underline, boolean strikethrough, boolean shadow, boolean superscript, boolean subscript)
public int getFRSize()
public int getSize()
getSize
在接口中 FontProvider
getSize
在类中 java.awt.Font
public int getShowSize(int resolution)
resolution
- public java.awt.Font applyResolutionNP(int resolution)
resolution
- 分辨率public static float convResolution(float size, int resolution)
size
- 字号resolution
- 分辨率public java.lang.String getStyleName()
public FRFont applyName(java.lang.String name)
name
- 字体名public FRFont applyStyle(int style)
style
- 粗斜体public FRFont applySize(float size)
size
- 字号public FRFont applyForeground(java.awt.Color foreground)
foreground
- 颜色public FRFont applyUnderline(int underline)
underline
- 下划线风格public FRFont applyStrikethrough(boolean strikethrough)
strikethrough
- 删除线public FRFont applyShadow(boolean shadow)
shadow
- 阴影public FRFont applySuperscript(boolean superscript)
superscript
- 上标public FRFont applySubscript(boolean subscript)
subscript
- 下标public java.awt.Color getForeground()
getForeground
在接口中 FontProvider
public void setForeground(java.awt.Color foreground)
public int getUnderline()
public boolean isStrikethrough()
isStrikethrough
在接口中 FontProvider
public boolean isShadow()
isShadow
在接口中 FontProvider
public boolean isSuperscript()
isSuperscript
在接口中 FontProvider
public boolean isSubscript()
isSubscript
在接口中 FontProvider
public int hashCode()
hashCode
在类中 java.awt.Font
public boolean equals(java.lang.Object object)
equals
在类中 java.awt.Font
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FontProvider
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public JSONObject changedAttrToJSONObject() throws JSONException
JSONException
- 抛错public JSONObject toJSONObject() throws JSONException
JSONException
- 异常public JSONObject toJSONObject(Repository repo) throws JSONException
toJSONObject
在接口中 JSONValue
repo
- 网络请求相关对象JSONException
- 异常protected java.lang.Object readResolve() throws java.io.InvalidObjectException
java.io.InvalidObjectException