|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpop.util.ObjectUtils
Utilities to transform objects and some other stuff to manipulate them
Constructor Summary | |
ObjectUtils()
|
Method Summary | |
static java.lang.String |
colorToString(java.awt.Color c)
converts a color to a string that can be used in a properties file |
static java.lang.String |
dimensionToString(java.awt.Dimension d)
Makes a string from a dimension object |
static javax.swing.ImageIcon |
getImageIcon(java.lang.String classpath)
Gets the image icon from the classpath provided |
static java.io.BufferedReader |
getReaderFor(java.lang.String classpath)
Gets a reader for the resource specified |
static java.awt.Color |
parseColor(java.lang.String s)
parses a string to get a color in the format R:G:B. |
static java.awt.Dimension |
parseDimension(java.lang.String s)
parses a string to get a dimension in the format W:H. |
static java.awt.Point |
parsePoint(java.lang.String s)
parses a string to get a point in the format X:Y. |
static java.lang.String |
pointToString(java.awt.Point p)
Makes a string from a point object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectUtils()
Method Detail |
public static java.io.BufferedReader getReaderFor(java.lang.String classpath) throws java.io.IOException
classpath
- The classpath to the resource
reader
value
java.io.IOException
public static javax.swing.ImageIcon getImageIcon(java.lang.String classpath)
classpath
- The classpath from which to get the image
imageIcon
valuepublic static java.lang.String colorToString(java.awt.Color c)
c
- The color to convert
public static java.awt.Color parseColor(java.lang.String s)
s
- The string in the format R:G:B
public static java.awt.Dimension parseDimension(java.lang.String s)
s
- The string in the format W:H
public static java.awt.Point parsePoint(java.lang.String s)
s
- The string in the format X:Y
public static java.lang.String pointToString(java.awt.Point p)
p
- the point
public static java.lang.String dimensionToString(java.awt.Dimension d)
d
- the dimension
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |