com.stimulsoft.base.system
Class StiFont

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean bold()
           
 Object clone()
           
 void deserialize(String textContent)
          Десериализация объекта из строки.
 void deserializeFromXmlString(String textContent)
           
 StiFont deserializeString(String textContent)
           
static int deserializeStyle(String styleStr)
           
 boolean equals(Object obj)
           
 Font getAwtFont(double zoom)
           
static StiFont getFont(String name, int size)
           
 int getFontStyle()
           
 String getFontStyleJSON()
           
 double getHeight()
           
 String getLegalName()
           
 String getName()
           
 double getSize()
           
 Double getSizeInPixel()
           
 int getStyle()
           
 String getStylesStr(String regex)
           
 StiGraphicsUnit getUnit()
           
 boolean italic()
           
 String serialize()
          Сериализация объекта в строку.
 String serializeString()
           
 String serializeToXmlString()
           
 void setSize(double size)
           
 void setStyle(StiFontStyle style)
           
 void setUnit(StiGraphicsUnit unit)
           
 boolean strikeout()
           
 String toString()
           
 boolean underline()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

size

public double size
Constructor Detail

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)
Method Detail

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.