Class Font

java.lang.Object
com.structurizr.view.Font

public final class Font
extends java.lang.Object
Represents a font, including a name and an optional URL for web fonts.
  • Constructor Summary

    Constructors 
    Constructor Description
    Font​(java.lang.String name)  
    Font​(java.lang.String name, java.lang.String url)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()  
    java.lang.String getUrl()  
    void setName​(java.lang.String name)
    The name of the font family to use; e.g.
    void setUrl​(java.lang.String url)
    Sets the URL where the web font can be found.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Font

      public Font​(java.lang.String name)
    • Font

      public Font​(java.lang.String name, java.lang.String url)
  • Method Details

    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String name)
      The name of the font family to use; e.g. "Times New Roman", etc.
      Parameters:
      name - the name of a font family
    • getUrl

      public java.lang.String getUrl()
    • setUrl

      public void setUrl​(java.lang.String url)
      Sets the URL where the web font can be found.
      Parameters:
      url - a URL as a String