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 ImageIcon
asFolder(ImageIcon icon)
Converts the givenImageIcon
into a folder icon.String
formatTooltip(String text)
Formats a text for tooltip (inserts break-lines).ImageIcon
getIcon(Class<?> clazz)
Returns the icon of aClass
.ImageIcon
getIcon(PropertyModule module)
Returns theImageIcon
of aPropertyModule
.String
getInfo(Class<?> c)
Returns the info of aClass
.String
getName(Class<?> clazz)
Returns the name of aClass
.String
getName(Property property)
Returns the formatted name of the property.String
getName(PropertyModule module)
Returns the name of aPropertyModule
.String
getTooltip(Class<?> c)
Returns the tooltip of aClass
.String
getTooltip(Property property)
Returns the formatted (html) tooltip of aProperty
.String
getTooltip(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 theImageIcon
of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the icon
-
asFolder
public ImageIcon asFolder(ImageIcon icon)
Converts the givenImageIcon
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 aProperty
.- Parameters:
property
- the property- Returns:
- the tooltip
-
-