Class Format
- java.lang.Object
-
- org.opt4j.core.config.visualization.Format
-
public class Format extends java.lang.Object
TheFormat
contains several format rules.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
xmlBreak
-
Constructor Summary
Constructors Constructor Description Format()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.ImageIcon
asFolder(javax.swing.ImageIcon icon)
Converts the givenImageIcon
into a folder icon.static java.lang.String
formatIEEE(Citation citation)
static java.lang.String
formatJava(Citation citation)
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 aClass
.javax.swing.ImageIcon
getIcon(PropertyModule module)
Returns theImageIcon
of aPropertyModule
.java.lang.String
getInfo(java.lang.Class<?> c)
Returns the info of aClass
.java.lang.String
getName(java.lang.Class<?> clazz)
Returns the name of aClass
.java.lang.String
getName(Property property)
Returns the formatted name of the property.java.lang.String
getName(PropertyModule module)
Returns the name of aPropertyModule
.java.lang.String
getTooltip(java.lang.Class<?> c)
Returns the tooltip of aClass
.java.lang.String
getTooltip(Property property)
Returns the formatted (html) tooltip of aProperty
.java.lang.String
getTooltip(PropertyModule module)
Returns the tooltip of aPropertyModule
.
-
-
-
Field Detail
-
xmlBreak
protected static final java.lang.String xmlBreak
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName(java.lang.Class<?> clazz)
Returns the name of aClass
.- Parameters:
clazz
- the class- Returns:
- the name
-
getInfo
public java.lang.String getInfo(java.lang.Class<?> c)
Returns the info of aClass
.- Parameters:
c
- the class- Returns:
- the info
-
getTooltip
public java.lang.String getTooltip(java.lang.Class<?> c)
Returns the tooltip of aClass
.- Parameters:
c
- the class- Returns:
- the tooltip
-
getIcon
public javax.swing.ImageIcon getIcon(java.lang.Class<?> clazz)
Returns the icon of aClass
.- Parameters:
clazz
- the class- Returns:
- the icon
-
getName
public java.lang.String getName(PropertyModule module)
Returns the name of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the name
-
getTooltip
public java.lang.String getTooltip(PropertyModule module)
Returns the tooltip of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the tooltip
-
getIcon
public javax.swing.ImageIcon getIcon(PropertyModule module)
Returns theImageIcon
of aPropertyModule
.- Parameters:
module
- the module- Returns:
- the icon
-
asFolder
public javax.swing.ImageIcon asFolder(javax.swing.ImageIcon icon)
Converts the givenImageIcon
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 aProperty
.- 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
-
formatIEEE
public static java.lang.String formatIEEE(Citation citation)
-
formatJava
public static java.lang.String formatJava(Citation citation)
-
-