|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.iver.cit.javacad.util.AcadColor
This class allows to convert Autocad colors in Java colors
Field Summary | |
static int |
BYBLOCK
When Autocad color is 0, then the color of the object is the color of the block where it is placed |
static int |
BYLAYER
When Autocad color is 256, then the color of the object is the color of it layer |
Constructor Summary | |
AcadColor(int code,
double r0,
double g0,
double b0,
double r,
double g,
double b)
This method is used to build the Autocad color table |
Method Summary | |
static java.awt.Color |
getColor(int code)
This method uses Autocad color table for convert a color in the Autocad color code in a java Color |
static AcadColor[] |
initTable()
Initialize an Autocad color table |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BYLAYER
public static final int BYBLOCK
Constructor Detail |
public AcadColor(int code, double r0, double g0, double b0, double r, double g, double b)
code
- Code is the Autocad color numberr0
- r0 is the red component (0-1)g0
- g0 is the green component (0-1)b0
- b0 is the blue component (0-1)r
- r0 is the red component (0-255)g
- g0 is the green component (0-255)b
- b0 is the blue component (0-255)Method Detail |
public static java.awt.Color getColor(int code)
code
- This int is the Autocad color number
public static AcadColor[] initTable()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |