Package com._1c.g5.v8.dt.md.fonts
Class V8Font
java.lang.Object
com._1c.g5.v8.dt.md.fonts.V8Font
V8 platform font.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Font charset property mask.static final int
Font facename property mask.static final int
Font height property mask.static final int
Font italic property mask.static final int
Font scale property mask.static final int
Font strikeout property mask.static final int
Font underline property mask.static final int
Font bold property mask. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustByMask
(V8Font otherV8Font) Adjust v8 font by mask other v8 font.void
applyScale
(int value) Applies scale.boolean
bold()
Cheks bold font.copy()
Creates v8 font copy.static V8Font
Creates v8 font.static V8Font
Creates auto v8 font.boolean
faceName()
Returns font face name.Returns font face name.float
Returns font height.getId()
Returns font composite id.getKind()
Returns font kind.long
getMask()
Returns font mask.getName()
Returns font name.int
getScale()
Returnf font scale.int
hashCode()
int
height()
Returns font height as int.float
heightF()
Returns font height.boolean
isBold()
Cheks bold font.boolean
isItalic()
Cheks italic font.boolean
Cheks is bold font setted.boolean
Cheks is face name font setted.boolean
Cheks is height font setted.boolean
Cheks is italic font setted.boolean
Cheks is scale font setted.boolean
Cheks is strikeout font setted.boolean
Cheks is underline font setted.boolean
Cheks strikeout font.boolean
Cheks underline font.boolean
italic()
Cheks italic font.int
scale()
Returnf font scale.void
setBold
(boolean bold) Sets bold font.void
setFaceName
(String faceName) Sets face name font.void
setHeight
(float height) Sets height font.void
setId
(CompositeId compositeId) Sets font composite id.void
setItalic
(boolean italic) Sets italic font.void
Sets font kind.void
setMask
(int mask) Returns font mask.void
setScale
(int value) Sets font scale.void
setStrikeout
(boolean strikeout) Sets strikeout font.void
setUnderline
(boolean underline) Sets underline font.boolean
Cheks strikeout font.Transforms v8 font to v8 absolute font.toFont()
Transforms v8 font to mcore font.boolean
Cheks underline font.void
Unsets bold font.void
Unsets font facename.void
Unsets height font.void
Unsets italic font.void
Unsets font scale.void
Unsets strikeout font.void
Unsets underline font.
-
Field Details
-
FONT_PROPERTY_MASK_FACENAME
public static final int FONT_PROPERTY_MASK_FACENAMEFont facename property mask.- See Also:
-
FONT_PROPERTY_MASK_HEIGHT
public static final int FONT_PROPERTY_MASK_HEIGHTFont height property mask.- See Also:
-
FONT_PROPERTY_MASK_WEIGHT
public static final int FONT_PROPERTY_MASK_WEIGHTFont bold property mask.- See Also:
-
FONT_PROPERTY_MASK_ITALIC
public static final int FONT_PROPERTY_MASK_ITALICFont italic property mask.- See Also:
-
FONT_PROPERTY_MASK_UNDERLINE
public static final int FONT_PROPERTY_MASK_UNDERLINEFont underline property mask.- See Also:
-
FONT_PROPERTY_MASK_STRIKE_OUT
public static final int FONT_PROPERTY_MASK_STRIKE_OUTFont strikeout property mask.- See Also:
-
FONT_PROPERTY_MASK_CHAR_SET
public static final int FONT_PROPERTY_MASK_CHAR_SETFont charset property mask.- See Also:
-
FONT_PROPERTY_MASK_SCALE
public static final int FONT_PROPERTY_MASK_SCALEFont scale property mask.- See Also:
-
-
Constructor Details
-
V8Font
Constructor.- Parameters:
font
- the font, can benull
-
-
Method Details
-
create
Creates v8 font.- Parameters:
font
- the font, can benull
- Returns:
- the v8 font, cannot be
null
-
createAutoFont
Creates auto v8 font.- Returns:
- the auto v8 font, cannot be
null
-
getId
Returns font composite id.- Returns:
- the font composite id, can be
null
-
setId
Sets font composite id.- Parameters:
the
- font composite id, cannot benull
-
getKind
Returns font kind.- Returns:
- the font kind, cannot be
null
-
setKind
Sets font kind.- Parameters:
the
- font kind, cannot benull
-
getMask
public long getMask()Returns font mask.- Returns:
- the font mask.
-
setMask
public void setMask(int mask) Returns font mask. -
adjustByMask
Adjust v8 font by mask other v8 font.- Parameters:
otherV8Font
- the other v8 font, cannot benull
-
getName
Returns font name.- Returns:
- the font name, can be
null
-
getFaceName
Returns font face name.- Returns:
- the font face name, cannot be
null
-
faceName
Returns font face name.- Returns:
- the font face name, cannot be
null
-
setFaceName
Sets face name font.- Parameters:
faceName
- the face name, cannot benull
-
isSetFaceName
public boolean isSetFaceName()Cheks is face name font setted.- Returns:
true
if setted,false
otherwise
-
unsetFaceName
public void unsetFaceName()Unsets font facename. -
getHeight
public float getHeight()Returns font height.- Returns:
- the font height.
-
height
public int height()Returns font height as int.- Returns:
- the font height as int.
-
heightF
public float heightF()Returns font height.- Returns:
- the font height.
-
setHeight
public void setHeight(float height) Sets height font.- Parameters:
height
- the height
-
isSetHeight
public boolean isSetHeight()Cheks is height font setted.- Returns:
true
if setted,false
otherwise
-
unsetHeight
public void unsetHeight()Unsets height font. -
isBold
public boolean isBold()Cheks bold font.- Returns:
true
if bold,false
otherwise
-
bold
public boolean bold()Cheks bold font.- Returns:
true
if bold,false
otherwise
-
setBold
public void setBold(boolean bold) Sets bold font.- Parameters:
bold
-true
if bold,false
otherwise
-
isSetBold
public boolean isSetBold()Cheks is bold font setted.- Returns:
true
if setted,false
otherwise
-
unsetBold
public void unsetBold()Unsets bold font. -
isItalic
public boolean isItalic()Cheks italic font.- Returns:
true
if italic,false
otherwise
-
italic
public boolean italic()Cheks italic font.- Returns:
true
if italic,false
otherwise
-
setItalic
public void setItalic(boolean italic) Sets italic font.- Parameters:
italic
-true
if italic,false
otherwise
-
isSetItalic
public boolean isSetItalic()Cheks is italic font setted.- Returns:
true
if setted,false
otherwise
-
unsetItalic
public void unsetItalic()Unsets italic font. -
isStrikeout
public boolean isStrikeout()Cheks strikeout font.- Returns:
true
if strikeout,false
otherwise
-
strikeout
public boolean strikeout()Cheks strikeout font.- Returns:
true
if strikeout,false
otherwise
-
setStrikeout
public void setStrikeout(boolean strikeout) Sets strikeout font.- Parameters:
strikeout
-true
if strikeout,false
otherwise
-
isSetStrikeout
public boolean isSetStrikeout()Cheks is strikeout font setted.- Returns:
true
if setted,false
otherwise
-
unsetStrikeout
public void unsetStrikeout()Unsets strikeout font. -
isUnderline
public boolean isUnderline()Cheks underline font.- Returns:
true
if underline,false
otherwise
-
underline
public boolean underline()Cheks underline font.- Returns:
true
if underline,false
otherwise
-
setUnderline
public void setUnderline(boolean underline) Sets underline font.- Parameters:
underline
-true
if underline,false
otherwise
-
isSetUnderline
public boolean isSetUnderline()Cheks is underline font setted.- Returns:
true
if setted,false
otherwise
-
unsetUnderline
public void unsetUnderline()Unsets underline font. -
getScale
public int getScale()Returnf font scale.- Returns:
- the font scale
-
scale
public int scale()Returnf font scale.- Returns:
- the font scale
-
setScale
public void setScale(int value) Sets font scale.- Parameters:
the
- font scale, cannot benull
-
isSetScale
public boolean isSetScale()Cheks is scale font setted.- Returns:
true
if setted,false
otherwise
-
unsetScale
public void unsetScale()Unsets font scale. -
applyScale
public void applyScale(int value) Applies scale.- Parameters:
value
- the scale value
-
copy
Creates v8 font copy.- Returns:
- the v8 font copy, cannot be
null
-
toFont
Transforms v8 font to mcore font.- Returns:
- the mcore font, cannot be
null
-
toAbsoluteV8Font
Transforms v8 font to v8 absolute font.- Returns:
- the v8 absolute font, cannot be
null
-
hashCode
public int hashCode() -
equals
-