Class OFormat
java.lang.Object
fr.esrf.tangoatk.widget.util.chart.OFormat
Helper class for load/save graph settings. Multiple field parameters are returned in one
string , each field is separated by a colon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConvert Color to String.static StringConvert Font to Stringstatic booleangetBoolean(String s) Convert String to Booleanstatic ColorConvert String to Colorstatic doubleConvert String to doublestatic FontConvert String to Fontstatic intConvert String to integerstatic longConvert String to longstatic StringConvert String to Stringstatic PointConvert String to Point
-
Constructor Details
-
OFormat
public OFormat()
-
-
Method Details
-
color
Convert Color to String.- Parameters:
c- Color to convert- Returns:
- A string containing color: "rrr,ggg,bbb"
-
font
Convert Font to String- Parameters:
f- Font to convert- Returns:
- A string containing the font: "Family,Style,Size"
-
getName
Convert String to String- Parameters:
s- Input string- Returns:
- if s is equals to "null" return null, the given string otherwise
-
getBoolean
Convert String to Boolean- Parameters:
s- String to convert- Returns:
- true is string is "true" (case unsensitive), false otherwise
-
getInt
Convert String to integer- Parameters:
s- String to convert- Returns:
- Integer representation of the given string.
-
getLong
Convert String to long- Parameters:
s- String to convert- Returns:
- Long representation of the given string.
-
getDouble
Convert String to double- Parameters:
s- String to convert- Returns:
- Double representation of the given string.
-
getColor
Convert String to Color- Parameters:
v- Vector to convert (coming from CfFileReader.getParam)- Returns:
- Color representation of the given string.
- See Also:
-
getFont
Convert String to Font- Parameters:
v- Vector to convert (coming from CfFileReader.getParam)- Returns:
- Font handle coresponding to the given string.
- See Also:
-
getPoint
Convert String to Point- Parameters:
v- Vector to convert (coming from CfFileReader.getParam)- Returns:
- Point coresponding to the given string.
- See Also:
-