Class EditorFontFiles

    • Constructor Detail

      • EditorFontFiles

        public EditorFontFiles()
        Creates the Image Definition property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • EditorFontFiles

        public EditorFontFiles​(Atom propertyAtom)
        Creates the Image Definition property container with the specified name. All system-reserved names for components begins with "$".
        Parameters:
        propertyAtom - the name of the component, unique within it's parent.
    • Method Detail

      • getCNImage

        public org.eclipse.swt.graphics.Image getCNImage()
        Gets the image for the Common Navigator.
        Specified by:
        getCNImage in interface IEditorFont
      • getCNType

        public java.lang.String getCNType()
        Gets the type for the Common Navigator.
        Specified by:
        getCNType in interface IEditorFont
      • getCNText

        public java.lang.String getCNText()
        Gets the label text for the Common Navigator.
        Specified by:
        getCNText in interface IEditorFont
      • getDesigner

        public FontDesignerProp getDesigner()
        Gets the Designer Extension for Properties.
        Specified by:
        getDesigner in interface IPropDesigner
        Returns:
        The instance of the Designer Extension.
      • onEventSelf

        public void onEventSelf​(GEvent event)
        Overridden to check for cache clearing...
        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        Overrides:
        onEventSelf in class FontFiles
        Parameters:
        event - The property event.
      • createTooltip

        public org.eclipse.swt.widgets.Composite createTooltip​(org.eclipse.swt.widgets.Composite parent)
        Creates the tooltip.
        Specified by:
        createTooltip in interface IEditorFont
      • getPossibleChildren

        public java.lang.Class<?>[] getPossibleChildren()
        Gets the acceptable children property classes that can be used in conjunction with e.g. a Paste operation.
        Specified by:
        getPossibleChildren in interface IPropCnr
        Overrides:
        getPossibleChildren in class PropCnr
        Returns:
        An array containing the classes of possible children, or null for no support.
      • assignValue

        public java.lang.String assignValue​(java.lang.String value,
                                            Atom propName,
                                            java.lang.String[] array,
                                            java.lang.String descr,
                                            java.lang.String defaultValueDescr)
        Helper function that assigns a value from a string to a property depending on a String array.
        Parameters:
        value - The string value to convert to an index in the array.
        propName - The name of the property to set.
        descr - Description of the value to set.
        defaultValueDescr - The default value description if set.
        Returns:
        Warning message that value is not found, null for success (OK).
      • verify

        public void verify​(PropVerification verification)
        Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
        Specified by:
        verify in interface IGProp<GProp<?>[]>
        Overrides:
        verify in class PropCnr
        Parameters:
        verification - The property verification class.
      • getLocalFontFaceCSS

        public java.lang.String getLocalFontFaceCSS​(java.lang.String httpRef)
        Gets the font face style declaration for the Eclipse internal browser.
        Parameters:
        httpRef - The HTTP reference before "/$module$/path...", null for file references.
        Returns:
        The font face declaration, or empty string for error.
      • getAvailableGlyphs

        public java.lang.String getAvailableGlyphs​(java.util.Collection<java.io.File> failedFontFiles)
        Builds the string for available glyphs (range 32 to 0x10FFFF).
        Parameters:
        failedFontFiles - Collection to store failed font files, null for none.
        Returns:
        The string with all glyphs, null for error or no True/OpenType font found.