Class FontProperty

  • All Implemented Interfaces:
    PropertyVisitorAcceptor, java.lang.Cloneable

    @OpenApiAll
    public class FontProperty
    extends Property
    The property for storing and editing some java.awt.Font value.
    See Also:
    Font
    • Constructor Detail

      • FontProperty

        public FontProperty()
        Default constructor. Value of the property will be null. ID will be empty string.
      • FontProperty

        public FontProperty​(java.lang.String id,
                            java.awt.Font value)
        The property constructor.
        Parameters:
        id - the ID of property.
        value - the font value of the property.
    • Method Detail

      • getValueStringRepresentation

        public java.lang.String getValueStringRepresentation()
        Returns value's string representation.
        Overrides:
        getValueStringRepresentation in class Property
        Returns:
        string representation of the value - "font name font style font size".
      • getStringRepresentation

        public static java.lang.String getStringRepresentation​(java.awt.Font f)
      • getFont

        public java.awt.Font getFont()
        Returns value as file.
        Returns:
        property value(file object).
      • clone

        public FontProperty clone()
        Description copied from class: Property
        Clones the property. Clone is not deep, the clone will have the same instance of value. The clone will not have registered PropertyChangeListeners.
        Overrides:
        clone in class Property
        Returns:
        the cloned property.