org.opt4j.core.config.visualization
Class Format

java.lang.Object
  extended by org.opt4j.core.config.visualization.Format

public class Format
extends java.lang.Object

The Format contains several format rules.


Field Summary
protected static java.lang.String xmlBreak
           
 
Constructor Summary
Format()
           
 
Method Summary
 javax.swing.ImageIcon asFolder(javax.swing.ImageIcon icon)
          Converts the given ImageIcon into a folder icon.
 java.lang.String formatTooltip(java.lang.String text)
          Formats a text for tooltip (inserts break-lines).
 javax.swing.ImageIcon getIcon(java.lang.Class<?> clazz)
          Returns the icon of a Class.
 javax.swing.ImageIcon getIcon(PropertyModule module)
          Returns the ImageIcon of a PropertyModule.
 java.lang.String getInfo(java.lang.Class<?> c)
          Returns the info of a Class.
 java.lang.String getName(java.lang.Class<?> clazz)
          Returns the name of a Class.
 java.lang.String getName(Property property)
          Returns the formatted name of the property.
 java.lang.String getName(PropertyModule module)
          Returns the name of a PropertyModule.
 java.lang.String getTooltip(java.lang.Class<?> c)
          Returns the tooltip of a Class.
 java.lang.String getTooltip(Property property)
          Returns the formatted (html) tooltip of a Property.
 java.lang.String getTooltip(PropertyModule module)
          Returns the tooltip of a PropertyModule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlBreak

protected static final java.lang.String xmlBreak
See Also:
Constant Field Values
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