Package org.opt4j.config.visualization
Class Format
- java.lang.Object
-
- org.opt4j.config.visualization.Format
-
-
Constructor Summary
Constructors Constructor Description Format()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageIconasFolder(ImageIcon icon)Converts the givenImageIconinto a folder icon.StringformatTooltip(String text)Formats a text for tooltip (inserts break-lines).ImageIcongetIcon(Class<?> clazz)Returns the icon of aClass.ImageIcongetIcon(PropertyModule module)Returns theImageIconof aPropertyModule.StringgetInfo(Class<?> c)Returns the info of aClass.StringgetName(Class<?> clazz)Returns the name of aClass.StringgetName(Property property)Returns the formatted name of the property.StringgetName(PropertyModule module)Returns the name of aPropertyModule.StringgetTooltip(Class<?> c)Returns the tooltip of aClass.StringgetTooltip(Property property)Returns the formatted (html) tooltip of aProperty.StringgetTooltip(PropertyModule module)Returns the tooltip of aPropertyModule.
-
-
-
Field Detail
-
xmlBreak
protected static final String xmlBreak
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName(Class<?> clazz)
Returns the name of aClass.- Parameters:
clazz- the class- Returns:
- the name
-
getInfo
public String getInfo(Class<?> c)
Returns the info of aClass.- Parameters:
c- the class- Returns:
- the info
-
getTooltip
public String getTooltip(Class<?> c)
Returns the tooltip of aClass.- Parameters:
c- the class- Returns:
- the tooltip
-
getIcon
public ImageIcon getIcon(Class<?> clazz)
Returns the icon of aClass.- Parameters:
clazz- the class- Returns:
- the icon
-
getName
public String getName(PropertyModule module)
Returns the name of aPropertyModule.- Parameters:
module- the module- Returns:
- the name
-
getTooltip
public String getTooltip(PropertyModule module)
Returns the tooltip of aPropertyModule.- Parameters:
module- the module- Returns:
- the tooltip
-
getIcon
public ImageIcon getIcon(PropertyModule module)
Returns theImageIconof aPropertyModule.- Parameters:
module- the module- Returns:
- the icon
-
asFolder
public ImageIcon asFolder(ImageIcon icon)
Converts the givenImageIconinto 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 aProperty.- Parameters:
property- the property- Returns:
- the tooltip
-
-