|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A specification that allows solid, transparent, multi-colored, and gradient painting of lines and backgrounds. The specification includes a list of colors, a list of offsets, and a rotation angle (in radians).
ReportStyleConstants
Field Summary | |
static Fill |
BLACK
A preconstructed fill that paints the entire region with java.awt.Color.BLACK . |
static Fill |
BLUE
A preconstructed fill that paints the entire region with java.awt.Color.BLUE . |
static Fill |
CYAN
A preconstructed fill that paints the entire region with java.awt.Color.CYAN . |
static Fill |
DARK_GRAY
A preconstructed fill that paints the entire region with java.awt.Color.DARK_GRAY . |
static Fill |
GRAY
A preconstructed fill that paints the entire region with java.awt.Color.GRAY . |
static Fill |
GREEN
A preconstructed fill that paints the entire region with java.awt.Color.GREEN . |
static Fill |
LIGHT_GRAY
A preconstructed fill that paints the entire region with java.awt.Color.LIGHT_GRAY . |
static Fill |
MAGENTA
A preconstructed fill that paints the entire region with java.awt.Color.MAGENTA . |
static Fill |
NONE
A preconstructed fill indicating no painting. |
static Fill |
ORANGE
A preconstructed fill that paints the entire region with java.awt.Color.ORANGE . |
static Fill |
PINK
A preconstructed fill that paints the entire region with java.awt.Color.PINK . |
static Fill |
RED
A preconstructed fill that paints the entire region with java.awt.Color.RED . |
static Fill |
WHITE
A preconstructed fill that paints the entire region with java.awt.Color.WHITE . |
static Fill |
YELLOW
A preconstructed fill that paints the entire region with java.awt.Color.YELLOW . |
Method Summary | |
java.awt.Color |
getColor(int index)
Returns the fill color at the specified index. |
int |
getColorCount()
Returns the number of colors this fill uses. |
int |
getDirection()
Returns the direction of this fill. |
double |
getOffset(int index)
Returns the offset at the specified index. |
boolean |
isAbsolute(int index)
Returns false if the offset at the specified index should be interpreted
relative to the previous offset. |
Field Detail |
public static final Fill NONE
public static final Fill BLACK
java.awt.Color.BLACK
.
public static final Fill BLUE
java.awt.Color.BLUE
.
public static final Fill CYAN
java.awt.Color.CYAN
.
public static final Fill DARK_GRAY
java.awt.Color.DARK_GRAY
.
public static final Fill GRAY
java.awt.Color.GRAY
.
public static final Fill GREEN
java.awt.Color.GREEN
.
public static final Fill LIGHT_GRAY
java.awt.Color.LIGHT_GRAY
.
public static final Fill MAGENTA
java.awt.Color.MAGENTA
.
public static final Fill ORANGE
java.awt.Color.ORANGE
.
public static final Fill PINK
java.awt.Color.PINK
.
public static final Fill RED
java.awt.Color.RED
.
public static final Fill WHITE
java.awt.Color.WHITE
.
public static final Fill YELLOW
java.awt.Color.YELLOW
.
Method Detail |
public int getColorCount()
public int getDirection()
SwingConstants.EAST
,
SwingConstants.SOUTH
, SwingConstants.SOUTH_EAST
,
and SwingConstants.NORTH_EAST
)public java.awt.Color getColor(int index)
index
- index of the color to retrieve
index
java.lang.IndexOutOfBoundsException
- if index < 0
or
index >= getColorCount
public double getOffset(int index)
index
- index of the offset to retrieve
index
java.lang.IndexOutOfBoundsException
- if index < 0
or
index >= getColorCount
public boolean isAbsolute(int index)
false
if the offset at the specified index should be interpreted
relative to the previous offset.
index
- index of the offset in consideration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |