|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fill
The Fill
interface encapsulates the drawing attributes
that can be applied to fills on line Graphics and closed Graphics.
Field Summary | |
---|---|
static String |
BACKGROUND_COLOR
Fill background color attribute name. |
static String |
COLOR
Fill color attribute name. |
static String |
FILL_PATTERN
Fill pattern attribute name. |
static String |
FILL_STYLE
Fill style attribute name. |
static String |
GRADIENT_POINTS
Halo fill gradient attribute name. |
static String |
OPACITY
Fill opacity attribute name. |
Method Summary | |
---|---|
Color |
getBackgroundColor()
Returns the fill background color value. |
Color |
getColor()
Returns the fill color value. |
FillPattern |
getFillPattern()
Returns the fill pattern value. |
FillStyle |
getFillStyle()
Returns the fill style value. |
float[] |
getGradientPoints()
Returns the fill gradient points value. |
float |
getOpacity()
Returns the fill opacity value. |
boolean |
isBackgroundColorSet()
Returns whether the fill background color value has been set. |
boolean |
isColorSet()
Returns whether the fill color value has been set. |
boolean |
isFillPatternSet()
Returns whether the fill pattern value has been set. |
boolean |
isFillStyleSet()
Returns whether the fill style value has been set. |
boolean |
isGradientPointsSet()
Returns whether the fill gradient points value has been set. |
boolean |
isOpacitySet()
Returns whether the fill opacity value has been set. |
void |
setBackgroundColor(Color fillBackgroundColor)
Sets the fill background color value. |
void |
setBackgroundColorSet(boolean flag)
Sets the fact that the fill background color value has been set. |
void |
setColor(Color fillColor)
Sets the fill color value. |
void |
setColorSet(boolean flag)
Sets the fact that the fill color value has been set. |
void |
setFillPattern(FillPattern fillPattern)
Sets the fill pattern value. |
void |
setFillPatternSet(boolean flag)
Sets the fact that the fill pattern value has been set. |
void |
setFillStyle(FillStyle fillStyle)
Sets the fill style value. |
void |
setFillStyleSet(boolean flag)
Sets the fact that the fill style value has been set. |
void |
setGradientPoints(float[] fillGradientPoints)
Sets the fill gradient points value. |
void |
setGradientPointsSet(boolean flag)
Sets the fact that the fill gradient points value has been set. |
void |
setOpacity(float fillOpacity)
Sets the fill opacity value. |
void |
setOpacitySet(boolean flag)
Sets the fact that the fill opacity value has been set. |
Field Detail |
---|
static final String COLOR
static final String BACKGROUND_COLOR
static final String GRADIENT_POINTS
static final String OPACITY
static final String FILL_PATTERN
static final String FILL_STYLE
Method Detail |
---|
Color getColor()
boolean isColorSet()
void setColor(Color fillColor)
fillColor
- the fill color value.void setColorSet(boolean flag)
flag
- true if the fill color value has been set, false otherwise.Color getBackgroundColor()
boolean isBackgroundColorSet()
void setBackgroundColor(Color fillBackgroundColor)
fillBackgroundColor
- the fill background color value.void setBackgroundColorSet(boolean flag)
flag
- true if the fill background color value has been set, false otherwise.float[] getGradientPoints()
boolean isGradientPointsSet()
void setGradientPoints(float[] fillGradientPoints)
fillGradientPoints
- the fill gradient points value.void setGradientPointsSet(boolean flag)
flag
- true if the fill gradient points value has been set, false otherwise.float getOpacity()
boolean isOpacitySet()
void setOpacity(float fillOpacity)
fillOpacity
- the fill opacity value.void setOpacitySet(boolean flag)
flag
- true if the fill opacity value has been set, false otherwise.FillPattern getFillPattern()
boolean isFillPatternSet()
void setFillPattern(FillPattern fillPattern)
fillPattern
- the fill pattern value.void setFillPatternSet(boolean flag)
flag
- true if the fill pattern value has been set, false otherwise.FillStyle getFillStyle()
boolean isFillStyleSet()
void setFillStyle(FillStyle fillStyle)
fillStyle
- the fill style value.void setFillStyleSet(boolean flag)
flag
- true if the fill style value has been set, false otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |