Package com.adobe.xfa.gfx
Class GFXFillAttr
java.lang.Object
com.adobe.xfa.gfx.GFXAttr
com.adobe.xfa.gfx.GFXFillAttr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GFXFillAttrstatic final GFXFillAttrstatic final GFXFillAttrstatic final GFXFillAttrstatic final GFXFillAttrstatic final GFXFillAttrFields inherited from class com.adobe.xfa.gfx.GFXAttr
DEFAULT_SHADESCALE, STYLE_CROSS, STYLE_DASH, STYLE_DIAG_CROSS, STYLE_DIAG_LEFT, STYLE_DIAG_RIGHT, STYLE_DOT, STYLE_DOT_DASH, STYLE_DOT_DOT_DASH, STYLE_HORZ, STYLE_NONE, STYLE_SOLID, STYLE_UNKNOWN, STYLE_VERT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.GFXFillAttr(int nNewStyle, int lNewShade, GFXColour oNewColour, GFXColour oNewColourBg) Constructor.GFXFillAttr(GFXFillAttr oSource) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic GFXFillAttrGet a black filled Fill Attribute.voidcopyFrom(GFXFillAttr oSource) Assigment operator.static GFXFillAttrGet a dark gray filled Fill Attribute.static GFXFillAttrGet a default Fill Attribute.static GFXFillAttrgrayFill()Get a gray filled Fill Attribute.static GFXFillAttrGet a light gray filled Fill Attribute.static GFXFillAttrnoFill()Get a Fill Attribute with no fill.static GFXFillAttrGet a white filled Fill Attribute.Methods inherited from class com.adobe.xfa.gfx.GFXAttr
colour, colour, colourBg, colourBg, copyFrom, defaultShadeScale, equals, equivalent, graphicContext, graphicContext, hashCode, shade, shade, shadeColour, shadeScale, shadeScale, style, style
-
Field Details
-
BLACK_FILL
-
WHITE_FILL
-
LIGHTGRAY_FILL
-
GRAY_FILL
-
DARKGREY_FILL
-
NO_FILL
-
-
Constructor Details
-
GFXFillAttr
public GFXFillAttr()Default constructor.Creates a new Fill attribute with default settings.
-
GFXFillAttr
Copy constructor.Creates a new Fill attribute with the same settings as the source attribute.
- Parameters:
oSource- - Fill attribute to copy
-
GFXFillAttr
Constructor.Creates a new Fill attribute with the specified settings.
- Parameters:
nNewStyle- - The style setting for this attributelNewShade- - The shade setting for this attributeoNewColour- - The foreground colour to be usedoNewColourBg- - The background colour to be used
-
-
Method Details
-
defaultFill
Get a default Fill Attribute.This will return a Fill Attribute with the following settings:
Style = solid Shade scale = maximum Foreground colour = white Background colour = white- Returns:
- A Fill Attribute with default settings
-
blackFill
Get a black filled Fill Attribute.This will return a Fill Attribute with the following settings:
Style = solid Shade scale = maximum Foreground colour = black Background colour = black- Returns:
- A Fill Attribute with Black fill settings
-
whiteFill
Get a white filled Fill Attribute.This will return a Fill Attribute with the following settings:
Style = solid Shade scale = maximum Foreground colour = white Background colour = white- Returns:
- A Fill Attribute with White fill settings
-
lightGrayFill
Get a light gray filled Fill Attribute.This will return a Fill Attribute with the following settings:
Style = solid Shade scale = maximum Foreground colour = light gray Background colour = light gray- Returns:
- A Fill Attribute with Light Gray fill settings
-
grayFill
Get a gray filled Fill Attribute.This will return a Fill Attribute with the following settings:
Style = solid Shade scale = maximum Foreground colour = gray Background colour = gray- Returns:
- A Fill Attribute with Gray fill settings
-
darkGrayFill
Get a dark gray filled Fill Attribute.This will return a Fill Attribute with the following settings:
Style = solid Shade scale = maximum Foreground colour = dark gray Background colour = dark gray- Returns:
- A Fill Attribute with Dark Gray fill settings
-
noFill
Get a Fill Attribute with no fill.This will return a Fill Attribute with the following settings:
Style = none Shade scale = maximum Foreground colour = black Background colour = black- Returns:
- A Fill Attribute with no fill settings
-
copyFrom
Assigment operator.Replace all attribute settings with those from the source object.
- Parameters:
oSource- - Source attribute object to copy.
-