Class FontFile

All Implemented Interfaces:
EventListener, IAssetReferenceListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
EditorFontFile

public class FontFile extends PropCnr implements IAssetReferenceListener
Container for all font icon files used in a FontIconsDefintion.
Author:
Christopher Mindus
  • Field Details

  • Constructor Details

    • FontFile

      public FontFile()
      Constructor.
    • FontFile

      public FontFile(Atom atom)
      Constructor with name.
      Parameters:
      atom - The atom name.
  • Method Details

    • getAssetReference

      public AssetReference getAssetReference()
      Gets the asset references of all icon files.
    • onAssetReferenceChanged

      public void onAssetReferenceChanged(AssetReference ref)
      Called when an asset file has been changed, either using new reference or the file contents. This listener fires a value change of the asset reference to the font icons definition and all its children.
      Specified by:
      onAssetReferenceChanged in interface IAssetReferenceListener
    • getFormat

      public FontFormat getFormat()
      Returns the format for this font.
      Returns:
      The format.
    • getQuertPart

      public String getQuertPart()
      Gets the query part (after '?') or SVG font name (after '#').
      Returns:
      The query part string, including the '?' or '#', or null if undefined.
    • getClientResourceString

      public String getClientResourceString()
      Gets the Client resource string in form "module$/path/filename.ext".
      Returns:
      null If not valid.
    • getFontFamily

      public String getFontFamily()
      Gets the font family.
      Returns:
      The font family name to use, or "undefined" if this property is not owned by FontFiles.
    • appendFontData

      public void appendFontData(SendTransaction trans)
      Adds the transaction data for the font installation.
      Parameters:
      trans - The transaction that has the transaction code for resource installation set.
    • getPreloadClientCacheResources

      public PreloadClientCacheResource[] getPreloadClientCacheResources()
      Gets the cached instance of the PreloadClientCacheResource's of the font resource.
      Returns:
      The cached array of preload client resource instances, or null for resource problems.