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 intFont charset property mask.static final intFont facename property mask.static final intFont height property mask.static final intFont italic property mask.static final intFont scale property mask.static final intFont strikeout property mask.static final intFont underline property mask.static final intFont bold property mask. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustByMask(V8Font otherV8Font) Adjust v8 font by mask other v8 font.voidapplyScale(int value) Applies scale.booleanbold()Cheks bold font.copy()Creates v8 font copy.static V8FontCreates v8 font.static V8FontCreates auto v8 font.booleanfaceName()Returns font face name.Returns font face name.floatReturns font height.getId()Returns font composite id.getKind()Returns font kind.longgetMask()Returns font mask.getName()Returns font name.intgetScale()Returnf font scale.inthashCode()intheight()Returns font height as int.floatheightF()Returns font height.booleanisBold()Cheks bold font.booleanisItalic()Cheks italic font.booleanCheks is bold font setted.booleanCheks is face name font setted.booleanCheks is height font setted.booleanCheks is italic font setted.booleanCheks is scale font setted.booleanCheks is strikeout font setted.booleanCheks is underline font setted.booleanCheks strikeout font.booleanCheks underline font.booleanitalic()Cheks italic font.intscale()Returnf font scale.voidsetBold(boolean bold) Sets bold font.voidsetFaceName(String faceName) Sets face name font.voidsetHeight(float height) Sets height font.voidsetId(CompositeId compositeId) Sets font composite id.voidsetItalic(boolean italic) Sets italic font.voidSets font kind.voidsetMask(int mask) Returns font mask.voidsetScale(int value) Sets font scale.voidsetStrikeout(boolean strikeout) Sets strikeout font.voidsetUnderline(boolean underline) Sets underline font.booleanCheks strikeout font.Transforms v8 font to v8 absolute font.toFont()Transforms v8 font to mcore font.booleanCheks underline font.voidUnsets bold font.voidUnsets font facename.voidUnsets height font.voidUnsets italic font.voidUnsets font scale.voidUnsets strikeout font.voidUnsets 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:
trueif setted,falseotherwise
-
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:
trueif setted,falseotherwise
-
unsetHeight
public void unsetHeight()Unsets height font. -
isBold
public boolean isBold()Cheks bold font.- Returns:
trueif bold,falseotherwise
-
bold
public boolean bold()Cheks bold font.- Returns:
trueif bold,falseotherwise
-
setBold
public void setBold(boolean bold) Sets bold font.- Parameters:
bold-trueif bold,falseotherwise
-
isSetBold
public boolean isSetBold()Cheks is bold font setted.- Returns:
trueif setted,falseotherwise
-
unsetBold
public void unsetBold()Unsets bold font. -
isItalic
public boolean isItalic()Cheks italic font.- Returns:
trueif italic,falseotherwise
-
italic
public boolean italic()Cheks italic font.- Returns:
trueif italic,falseotherwise
-
setItalic
public void setItalic(boolean italic) Sets italic font.- Parameters:
italic-trueif italic,falseotherwise
-
isSetItalic
public boolean isSetItalic()Cheks is italic font setted.- Returns:
trueif setted,falseotherwise
-
unsetItalic
public void unsetItalic()Unsets italic font. -
isStrikeout
public boolean isStrikeout()Cheks strikeout font.- Returns:
trueif strikeout,falseotherwise
-
strikeout
public boolean strikeout()Cheks strikeout font.- Returns:
trueif strikeout,falseotherwise
-
setStrikeout
public void setStrikeout(boolean strikeout) Sets strikeout font.- Parameters:
strikeout-trueif strikeout,falseotherwise
-
isSetStrikeout
public boolean isSetStrikeout()Cheks is strikeout font setted.- Returns:
trueif setted,falseotherwise
-
unsetStrikeout
public void unsetStrikeout()Unsets strikeout font. -
isUnderline
public boolean isUnderline()Cheks underline font.- Returns:
trueif underline,falseotherwise
-
underline
public boolean underline()Cheks underline font.- Returns:
trueif underline,falseotherwise
-
setUnderline
public void setUnderline(boolean underline) Sets underline font.- Parameters:
underline-trueif underline,falseotherwise
-
isSetUnderline
public boolean isSetUnderline()Cheks is underline font setted.- Returns:
trueif setted,falseotherwise
-
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:
trueif setted,falseotherwise
-
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
-