Package org.opt4j.config.visualization
Class Format
java.lang.Object
org.opt4j.config.visualization.Format
The
Format
contains several format rules.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConverts the givenImageIcon
into a folder icon.formatTooltip
(String text) Formats a text for tooltip (inserts break-lines).Returns the icon of aClass
.getIcon
(PropertyModule module) Returns theImageIcon
of aPropertyModule
.Returns the info of aClass
.Returns the name of aClass
.Returns the formatted name of the property.getName
(PropertyModule module) Returns the name of aPropertyModule
.getTooltip
(Class<?> c) Returns the tooltip of aClass
.getTooltip
(Property property) Returns the formatted (html) tooltip of aProperty
.getTooltip
(PropertyModule module) Returns the tooltip of aPropertyModule
.
-
Field Details
-
xmlBreak
- See Also:
-
-
Constructor Details
-
Format
public Format()
-
-
Method Details
-
getName
Returns the name of aClass
.- Parameters:
clazz
- the class- Returns:
- the name
-
getInfo
Returns the info of aClass
.- Parameters:
c
- the class- Returns:
- the info
-
getTooltip
Returns the tooltip of aClass
.- Parameters:
c
- the class- Returns:
- the tooltip
-
getIcon
Returns the icon of aClass
.- Parameters:
clazz
- the class- Returns:
- the icon
-
getName
Returns the name of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the name
-
getTooltip
Returns the tooltip of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the tooltip
-
getIcon
Returns theImageIcon
of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the icon
-
asFolder
Converts the givenImageIcon
into a folder icon.- Parameters:
icon
- the icon- Returns:
- the converted folder icon
-
getName
Returns the formatted name of the property.- Parameters:
property
- the property- Returns:
- the formatted name
-
getTooltip
Returns the formatted (html) tooltip of aProperty
.- Parameters:
property
- the property- Returns:
- the tooltip
-
formatTooltip
Formats a text for tooltip (inserts break-lines).- Parameters:
text
- the input text- Returns:
- the formatted tooltip text
-