Package com.sshtools.common.util
Class PropertyUtil
java.lang.Object
com.sshtools.common.util.PropertyUtil
- Version:
- $Revision: 1.14 $
- Author:
- $author$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
colorToString
(Color color) static String
fontToString
(Font font) static String
numberToPaddedHexString
(int number, int size) static Color
static Font
stringToFont
(String fontString) static int
stringToInt
(String number, int defaultValue)
-
Constructor Details
-
PropertyUtil
public PropertyUtil()
-
-
Method Details
-
stringToInt
- Parameters:
number
-defaultValue
-- Returns:
-
colorToString
- Parameters:
color
-- Returns:
-
fontToString
- Parameters:
font
-- Returns:
-
stringToFont
- Parameters:
fontString
-- Returns:
-
stringToColor
- Parameters:
s
-- Returns:
- Throws:
IllegalArgumentException
-
numberToPaddedHexString
- Parameters:
number
-size
-- Returns:
- Throws:
IllegalArgumentException
-