Class CssFont

java.lang.Object
org.jhotdraw8.draw.css.value.CssFont

public class CssFont extends Object
Represents a font specified with family, weight, posture and size properties.
Author:
Werner Randelshofer
  • Constructor Details

    • CssFont

      public CssFont(String family, @Nullable javafx.scene.text.FontWeight weight, @Nullable javafx.scene.text.FontPosture posture, CssSize size)
  • Method Details

    • getFamily

      public String getFamily()
    • getWeight

      public @Nullable javafx.scene.text.FontWeight getWeight()
    • getPosture

      public @Nullable javafx.scene.text.FontPosture getPosture()
    • getSize

      public CssSize getSize()
    • getFont

      public javafx.scene.text.Font getFont()
    • font

      public static CssFont font(String family, @Nullable javafx.scene.text.FontWeight weight, @Nullable javafx.scene.text.FontPosture posture, CssSize size)
    • font

      public static CssFont font(String family, @Nullable javafx.scene.text.FontWeight weight, @Nullable javafx.scene.text.FontPosture posture, double size)
    • font

      public static CssFont font(String family, double size)
    • hashCode

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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object