Package com.stimulsoft.base.system
Class StiFont
java.lang.Object
com.stimulsoft.base.system.StiFont
- All Implemented Interfaces:
IStiSerializable,IStiSerializableToString,IStiSerializableToXmlString,Cloneable
public class StiFont
extends Object
implements IStiSerializableToString, IStiSerializableToXmlString, Cloneable
Font.
Copyright Stimulsoft
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStiFont()StiFont(String name, double size, int style, StiGraphicsUnit pixel) StiFont(String name, double size, StiEnumSet<StiFontStyle> style) StiFont(String name, double size, StiFontStyle style) StiFont(String name, double size, StiFontStyle style, StiGraphicsUnit pixel) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbold()static StiFontchangeFontSize(StiFont font, double newFontSize) clone()voiddeserialize(String textContent) voiddeserializeFromXmlString(String textContent) deserializeString(String textContent) static intdeserializeStyle(String styleStr) booleangetAwtFont(double zoom) static StiFontintdoubleFind international font namegetName()doublegetSize()intgetStyle()getStylesStr(String regex) getUnit()booleanitalic()voidsetSize(double size) voidsetStyle(StiFontStyle style) voidsetUnit(StiGraphicsUnit unit) booleantoString()boolean
-
Field Details
-
size
public double size
-
-
Constructor Details
-
StiFont
public StiFont() -
StiFont
-
StiFont
-
StiFont
-
StiFont
-
StiFont
-
-
Method Details
-
toString
-
getSizeInPixel
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString
-
serializeString
-
getStylesStr
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString
-
deserializeStyle
-
deserializeString
-
getFont
-
getSize
public double getSize() -
setSize
public void setSize(double size) -
setStyle
-
getStyle
public int getStyle() -
getFontStyle
public int getFontStyle()- Returns:
- style to create java.awt.Font;
-
getFontStyleJSON
-
bold
public boolean bold() -
italic
public boolean italic() -
underline
public boolean underline() -
strikeout
public boolean strikeout() -
setUnit
-
getUnit
-
getName
-
getAwtFont
-
serializeToXmlString
- Specified by:
serializeToXmlStringin interfaceIStiSerializableToXmlString
-
deserializeFromXmlString
- Specified by:
deserializeFromXmlStringin interfaceIStiSerializableToXmlString
-
changeFontSize
-
clone
-
getHeight
public double getHeight() -
equals
-
getInternationalName
Find international font name- Returns:
-