Class AbstractFont

    • Constructor Detail

      • AbstractFont

        protected AbstractFont​(IsDefaultFont defaultValues)
        Creates an empty font to use for chart configuration.
        Parameters:
        defaultValues - default provider
      • AbstractFont

        protected AbstractFont​(IsDefaultFont defaultValues,
                               NativeObject nativeObject)
        Creates a font to use for chart configuration, wrapping a native object instance.
        Parameters:
        defaultValues - default provider
        nativeObject - native object to map java script properties
      • AbstractFont

        protected AbstractFont​(AbstractNode parent,
                               IsDefaultFont defaultValues,
                               NativeObject nativeObject)
        Creates a font to use for chart configuration, wrapping a native object instance.
        Parameters:
        parent - the native object container which font belongs to.
        defaultValues - default provider
        nativeObject - native object to map java script properties
    • Method Detail

      • setUpdateListener

        public final void setUpdateListener​(NodeUpdateListener updateListener)
        Sets an update listener instance to be invoked at every update.
        Parameters:
        updateListener - an update listener instance to be invoked at every update
      • getUpdateListener

        public final NodeUpdateListener getUpdateListener()
        Returns the update listener instance if there is.
        Returns:
        the update listener
      • setSize

        public void setSize​(int size)
        Description copied from interface: IsFont
        Sets the font size.
        Specified by:
        setSize in interface IsFont
        Parameters:
        size - the font size.
      • setStyle

        public void setStyle​(FontStyle style)
        Description copied from interface: IsFont
        Sets the font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
        Specified by:
        setStyle in interface IsFont
        Parameters:
        style - Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
      • setFamily

        public void setFamily​(String family)
        Description copied from interface: IsFont
        Sets the font family, follows CSS font-family options.
        Specified by:
        setFamily in interface IsFont
        Parameters:
        family - Font family, follows CSS font-family options.
      • setWeight

        public void setWeight​(Weight weight)
        Description copied from interface: IsFont
        Sets the font weight, follows CSS font-style-weight options.
        Specified by:
        setWeight in interface IsFont
        Parameters:
        weight - font weight, follows CSS font-style-weight options.
      • setLineHeight

        public void setLineHeight​(double lineHeight)
        Description copied from interface: IsFont
        Sets the line height.
        Specified by:
        setLineHeight in interface IsFont
        Parameters:
        lineHeight - the line height.
      • setLineHeight

        public void setLineHeight​(String lineHeight)
        Description copied from interface: IsFont
        Sets the line height.
        Specified by:
        setLineHeight in interface IsFont
        Parameters:
        lineHeight - the line height.