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 |
double |
size
|
|
Constructor Summary |
StiFont()
|
StiFont(String name,
double size)
|
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)
|
size
public double size
StiFont
public StiFont()
StiFont
public StiFont(String name,
double size)
StiFont
public StiFont(String name,
double size,
StiFontStyle style)
StiFont
public StiFont(String name,
double size,
StiEnumSet<StiFontStyle> style)
StiFont
public StiFont(String name,
double size,
StiFontStyle style,
StiGraphicsUnit pixel)
StiFont
public StiFont(String name,
double size,
int style,
StiGraphicsUnit pixel)
toString
public String toString()
- Overrides:
toString in class Object
getSizeInPixel
public Double getSizeInPixel()
serialize
public String serialize()
- Description copied from interface:
IStiSerializableToString
- Сериализация объекта в строку.
- Specified by:
serialize in interface IStiSerializableToString
- Returns:
- строковое представление объекта
serializeString
public String serializeString()
getStylesStr
public String getStylesStr(String regex)
deserialize
public void deserialize(String textContent)
- Description copied from interface:
IStiSerializableToString
- Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания
строки.
- Specified by:
deserialize in interface IStiSerializableToString
deserializeStyle
public static int deserializeStyle(String styleStr)
deserializeString
public StiFont deserializeString(String textContent)
getFont
public static StiFont getFont(String name,
int size)
getSize
public double getSize()
setSize
public void setSize(double size)
setStyle
public void setStyle(StiFontStyle style)
getStyle
public int getStyle()
getFontStyle
public int getFontStyle()
- Returns:
- style to create java.awt.Font;
getFontStyleJSON
public String getFontStyleJSON()
bold
public boolean bold()
italic
public boolean italic()
underline
public boolean underline()
strikeout
public boolean strikeout()
setUnit
public void setUnit(StiGraphicsUnit unit)
getUnit
public StiGraphicsUnit getUnit()
getName
public String getName()
getLegalName
public String getLegalName()
getAwtFont
public Font getAwtFont(double zoom)
serializeToXmlString
public String serializeToXmlString()
- Specified by:
serializeToXmlString in interface IStiSerializableToXmlString
deserializeFromXmlString
public void deserializeFromXmlString(String textContent)
- Specified by:
deserializeFromXmlString in interface IStiSerializableToXmlString
clone
public Object clone()
- Overrides:
clone in class Object
getHeight
public double getHeight()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2017 Stimulsoft. All Rights Reserved.