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 StringcolorToString(Color color) static StringfontToString(Font font) static StringnumberToPaddedHexString(int number, int size) static Colorstatic FontstringToFont(String fontString) static intstringToInt(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
-