Class Format


  • public class Format
    extends java.lang.Object
    The Format contains several format rules.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String xmlBreak  
    • Constructor Summary

      Constructors 
      Constructor Description
      Format()  
    • Constructor Detail

      • Format

        public Format()
    • Method Detail

      • getName

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

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

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

        public javax.swing.ImageIcon getIcon​(java.lang.Class<?> clazz)
        Returns the icon of a Class.
        Parameters:
        clazz - the class
        Returns:
        the icon
      • getName

        public java.lang.String getName​(PropertyModule module)
        Returns the name of a PropertyModule.
        Parameters:
        module - the module
        Returns:
        the name
      • getTooltip

        public java.lang.String getTooltip​(PropertyModule module)
        Returns the tooltip of a PropertyModule.
        Parameters:
        module - the module
        Returns:
        the tooltip
      • getIcon

        public javax.swing.ImageIcon getIcon​(PropertyModule module)
        Returns the ImageIcon of a PropertyModule.
        Parameters:
        module - the module
        Returns:
        the icon
      • asFolder

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

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

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

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

        public static java.lang.String formatIEEE​(Citation citation)
      • formatJava

        public static java.lang.String formatJava​(Citation citation)