|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.devaki.nextobjects.util.NOGraphicsUtil
This class contains usefull graphics functions
Constructor Summary | |
NOGraphicsUtil()
|
Method Summary | |
static java.lang.String |
color2HexString(java.awt.Color couleur)
Give a string hexadecimal representation of a Color |
static int |
distance(java.awt.Point p1,
java.awt.Point p2)
Calcultate distance |
static java.awt.Point |
getMiddle(java.awt.Point pA,
java.awt.Point pB)
Calculate middle |
static java.awt.Color |
hexString2Color(java.lang.String strColor)
Give a Color from a hexadecimal representation within a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NOGraphicsUtil()
Method Detail |
public static int distance(java.awt.Point p1, java.awt.Point p2)
p1
- the A pointp2
- the B point
public static java.awt.Point getMiddle(java.awt.Point pA, java.awt.Point pB)
pA
- the A pointpB
- the B point
public static java.awt.Color hexString2Color(java.lang.String strColor)
strColor
- the string to convert
public static java.lang.String color2HexString(java.awt.Color couleur)
couleur
- the color to convert
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |