Class Format

java.lang.Object
org.opt4j.config.visualization.Format

public class Format extends Object
The Format contains several format rules.
  • Field Details

  • Constructor Details

    • Format

      public Format()
  • Method Details

    • 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
    • getName

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

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

      public ImageIcon getIcon(PropertyModule module)
      Returns the ImageIcon of a PropertyModule.
      Parameters:
      module - the module
      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