Class Format


  • public class Format
    extends Object
    The Format contains several format rules.
    • Constructor Detail

      • Format

        public Format()
    • Method Detail

      • getName

        public String getName​(Class<?> clazz)
        Returns the name of a Class.
        Parameters:
        clazz - the class
        Returns:
        the name
      • getInfo

        public String getInfo​(Class<?> c)
        Returns the info of a Class.
        Parameters:
        c - the class
        Returns:
        the info
      • getTooltip

        public String getTooltip​(Class<?> c)
        Returns the tooltip of a Class.
        Parameters:
        c - the class
        Returns:
        the tooltip
      • getIcon

        public ImageIcon getIcon​(Class<?> clazz)
        Returns the icon of a Class.
        Parameters:
        clazz - the class
        Returns:
        the icon
      • asFolder

        public ImageIcon asFolder​(ImageIcon icon)
        Converts the given ImageIcon into a folder icon.
        Parameters:
        icon - the icon
        Returns:
        the converted folder icon
      • getName

        public String getName​(Property property)
        Returns the formatted name of the property.
        Parameters:
        property - the property
        Returns:
        the formatted name
      • getTooltip

        public String getTooltip​(Property property)
        Returns the formatted (html) tooltip of a Property.
        Parameters:
        property - the property
        Returns:
        the tooltip
      • formatTooltip

        public String formatTooltip​(String text)
        Formats a text for tooltip (inserts break-lines).
        Parameters:
        text - the input text
        Returns:
        the formatted tooltip text