Class V8Font

java.lang.Object
com._1c.g5.v8.dt.md.fonts.V8Font

public class V8Font extends Object
V8 platform font.
  • Field Details

    • FONT_PROPERTY_MASK_FACENAME

      public static final int FONT_PROPERTY_MASK_FACENAME
      Font facename property mask.
      See Also:
    • FONT_PROPERTY_MASK_HEIGHT

      public static final int FONT_PROPERTY_MASK_HEIGHT
      Font height property mask.
      See Also:
    • FONT_PROPERTY_MASK_WEIGHT

      public static final int FONT_PROPERTY_MASK_WEIGHT
      Font bold property mask.
      See Also:
    • FONT_PROPERTY_MASK_ITALIC

      public static final int FONT_PROPERTY_MASK_ITALIC
      Font italic property mask.
      See Also:
    • FONT_PROPERTY_MASK_UNDERLINE

      public static final int FONT_PROPERTY_MASK_UNDERLINE
      Font underline property mask.
      See Also:
    • FONT_PROPERTY_MASK_STRIKE_OUT

      public static final int FONT_PROPERTY_MASK_STRIKE_OUT
      Font strikeout property mask.
      See Also:
    • FONT_PROPERTY_MASK_CHAR_SET

      public static final int FONT_PROPERTY_MASK_CHAR_SET
      Font charset property mask.
      See Also:
    • FONT_PROPERTY_MASK_SCALE

      public static final int FONT_PROPERTY_MASK_SCALE
      Font scale property mask.
      See Also:
  • Constructor Details

    • V8Font

      public V8Font(Font font)
      Constructor.
      Parameters:
      font - the font, can be null
  • Method Details

    • create

      public static V8Font create(Font font)
      Creates v8 font.
      Parameters:
      font - the font, can be null
      Returns:
      the v8 font, cannot be null
    • createAutoFont

      public static V8Font createAutoFont()
      Creates auto v8 font.
      Returns:
      the auto v8 font, cannot be null
    • getId

      public CompositeId getId()
      Returns font composite id.
      Returns:
      the font composite id, can be null
    • setId

      public void setId(CompositeId compositeId)
      Sets font composite id.
      Parameters:
      the - font composite id, cannot be null
    • getKind

      public FontKind getKind()
      Returns font kind.
      Returns:
      the font kind, cannot be null
    • setKind

      public void setKind(FontKind kind)
      Sets font kind.
      Parameters:
      the - font kind, cannot be null
    • getMask

      public long getMask()
      Returns font mask.
      Returns:
      the font mask.
    • setMask

      public void setMask(int mask)
      Returns font mask.
    • adjustByMask

      public void adjustByMask(V8Font otherV8Font)
      Adjust v8 font by mask other v8 font.
      Parameters:
      otherV8Font - the other v8 font, cannot be null
    • getName

      public String getName()
      Returns font name.
      Returns:
      the font name, can be null
    • getFaceName

      public String getFaceName()
      Returns font face name.
      Returns:
      the font face name, cannot be null
    • faceName

      public String faceName()
      Returns font face name.
      Returns:
      the font face name, cannot be null
    • setFaceName

      public void setFaceName(String faceName)
      Sets face name font.
      Parameters:
      faceName - the face name, cannot be null
    • 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 be null
    • 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

      public V8Font copy()
      Creates v8 font copy.
      Returns:
      the v8 font copy, cannot be null
    • toFont

      public Font toFont()
      Transforms v8 font to mcore font.
      Returns:
      the mcore font, cannot be null
    • toAbsoluteV8Font

      public V8Font toAbsoluteV8Font()
      Transforms v8 font to v8 absolute font.
      Returns:
      the v8 absolute font, cannot be null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object