CMYKColor
, DeviceNColor
, GrayColor
, LabColor
, PatternColor
, ShadingColor
, SpotColor
public abstract class ExtendedColor extends BaseColor
Modifier and Type | Field | Description |
---|---|---|
protected int |
type |
|
static int |
TYPE_CMYK |
a type of extended color.
|
static int |
TYPE_DEVICEN |
a type of extended color.
|
static int |
TYPE_GRAY |
a type of extended color.
|
static int |
TYPE_LAB |
a type of extended color.
|
static int |
TYPE_PATTERN |
a type of extended color.
|
static int |
TYPE_RGB |
a type of extended color.
|
static int |
TYPE_SEPARATION |
a type of extended color.
|
static int |
TYPE_SHADING |
a type of extended color.
|
Constructor | Description |
---|---|
ExtendedColor(int type) |
Constructs an extended color of a certain type.
|
ExtendedColor(int type,
float red,
float green,
float blue) |
Constructs an extended color of a certain type and a certain color.
|
ExtendedColor(int type,
int red,
int green,
int blue,
int alpha) |
Constructs an extended color of a certain type and a certain color.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getType() |
Gets the type of this color.
|
static int |
getType(BaseColor color) |
Gets the type of a given color.
|
public static final int TYPE_RGB
public static final int TYPE_GRAY
public static final int TYPE_CMYK
public static final int TYPE_SEPARATION
public static final int TYPE_PATTERN
public static final int TYPE_SHADING
public static final int TYPE_DEVICEN
public static final int TYPE_LAB
protected int type
public ExtendedColor(int type)
type
- public ExtendedColor(int type, float red, float green, float blue)
type
- red
- green
- blue
- public ExtendedColor(int type, int red, int green, int blue, int alpha)
type
- red
- green
- blue
- alpha
- public int getType()
public static int getType(BaseColor color)
color
- Copyright © 2018. All rights reserved.