Module omix.api
Package omix.lang

Class Font

java.lang.Object
omix.lang.Font
All Implemented Interfaces:
Serializable

public final class Font
extends Object
implements Serializable
This class represents font in the Omix network diagrams. Fonts consist of:
  • font family name
  • size
  • bold
  • italic
  • underlined
  • overlined
  • strikeOut

Font

Author:
Dr. Peter Droste, Omix Visualization
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    Font​(String family, double size)
    Equals to Font(family, size, false, false)
    Font​(String family, double size, boolean bold, boolean italic)
    Equals to Font(family, size, bold, italic, false)
    Font​(String family, double size, boolean bold, boolean italic, boolean underlined)
    Equals to Font(family, size, bold, italic, underlined, false, false)
    Font​(String family, double size, boolean bold, boolean italic, boolean underlined, boolean overlined, boolean strikeOut)
    creates a font with the given attributes.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object obj)  
    static Font fromString​(String strg)
    This method is for file input purpose.
    String getFamily()  
    double getSize()  
    int hashCode()  
    boolean isBold()  
    boolean isItalic()  
    boolean isOverlined()  
    boolean isStrikeOut()  
    boolean isUnderlined()  
    String toString()  
    static String toString​(Font font)
    This method is for file output purpose.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Font

      @ConstructorProperties({"family","size","bold","italic","underlined","overlined","strikeOut"}) public Font​(String family, double size, boolean bold, boolean italic, boolean underlined, boolean overlined, boolean strikeOut)
      creates a font with the given attributes.
      Parameters:
      family - family
      size - size
      bold - bold
      italic - italic
      underlined - underlined
      overlined - overlined
      strikeOut - strikeOut
    • Font

      @ConstructorProperties({"family","size","bold","underlined"}) public Font​(String family, double size, boolean bold, boolean italic, boolean underlined)
      Equals to Font(family, size, bold, italic, underlined, false, false)
      Parameters:
      family - family
      size - size
      bold - bold
      italic - italic
      underlined - underlined
    • Font

      @ConstructorProperties({"family","size","bold","italic"}) public Font​(String family, double size, boolean bold, boolean italic)
      Equals to Font(family, size, bold, italic, false)
      Parameters:
      family - family
      size - size
      bold - bold
      italic - italic
    • Font

      @ConstructorProperties({"family","size"}) public Font​(String family, double size)
      Equals to Font(family, size, false, false)
      Parameters:
      family - family
      size - size
  • Method Details