public class AcadColor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final int BYLAYER
public static final int BYBLOCK
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)public static java.awt.Color getColor(int code)
code - This int is the Autocad color numberpublic static AcadColor[] initTable()