Class GFXLineAttr
The graphic Line attribute object holds information about attribute values specific for line drawing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GFXLineAttrstatic final intenumeration int: Specifies the current device capablilites.static final intstatic final intstatic final GFXLineAttrstatic final UnitSpanstatic final GFXLineAttrstatic final intstatic final intenumeration int: Specifies the type of coordinate system to use.static final intstatic final GFXLineAttrstatic final GFXLineAttrFields 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.GFXLineAttr(GFXLineAttr oSource) Copy constructor.GFXLineAttr(UnitSpan oNewWidth, int nNewStyle, int lNewShade, GFXColour oNewColour, GFXColour oNewColourBg) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet a black line Attribute.intcap()Get the capability for this attribute.voidcap(int oNewCode) Set the capability for this attribute.voidcopyFrom(GFXLineAttr oSource) Assigment operator.Get a dark gray line Attribute.Get a default Line Attribute.booleanEquality comparison operator.booleanequivalent(GFXLineAttr oCompare) Equality comparison.grayLine()Get a gray line Attribute.inthand()Get the hand setting for this attribute.voidhand(int oNewCode) Set the hand setting for this attribute.inthashCode()Get a light gray line Attribute.Get a white line Attribute.width()Get the width for this attribute.voidSet the width for this attribute.Methods inherited from class com.adobe.xfa.gfx.GFXAttr
colour, colour, colourBg, colourBg, copyFrom, defaultShadeScale, equivalent, graphicContext, graphicContext, shade, shade, shadeColour, shadeScale, shadeScale, style, style
-
Field Details
-
DEFAULT_LINEWIDTH
-
BLACK_LINE
-
WHITE_LINE
-
LIGHTGRAY_LINE
-
GRAY_LINE
-
DARKGRAY_LINE
-
HAND_LEFT
public static final int HAND_LEFTenumeration int: Specifies the type of coordinate system to use.HAND_LEFT : left-handed HAND_RIGHT : right-handed HAND_EVEN : even-handed (?)- See Also:
-
HAND_RIGHT
public static final int HAND_RIGHT- See Also:
-
HAND_EVEN
public static final int HAND_EVEN- See Also:
-
CAP_BUTT
public static final int CAP_BUTTenumeration int: Specifies the current device capablilites.CAP_BUTT : CAP_ROUND : CAP_SQUARE :- See Also:
-
CAP_ROUND
public static final int CAP_ROUND- See Also:
-
CAP_SQUARE
public static final int CAP_SQUARE- See Also:
-
-
Constructor Details
-
GFXLineAttr
public GFXLineAttr()Default constructor.Creates a new Line attribute with default settings:
Width - default width Hand - even Cap - square -
GFXLineAttr
Copy constructor.Creates a new Line attribute with the same settings as the source attribute.
- Parameters:
oSource- - Line attribute to copy
-
GFXLineAttr
public GFXLineAttr(UnitSpan oNewWidth, int nNewStyle, int lNewShade, GFXColour oNewColour, GFXColour oNewColourBg) Constructor.Creates a new Line attribute with the specified settings.
- Parameters:
oNewWidth- - The width for this attributenNewStyle- - 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
-
defaultLine
Get a default Line Attribute.This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = black Background colour = white- Returns:
- A Line Attribute with default settings
-
blackLine
Get a black line Attribute.This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = black Background colour = white- Returns:
- A Line Attribute with black line settings
-
whiteLine
Get a white line Attribute.This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = white Background colour = white- Returns:
- A Line Attribute with white line settings
-
lightGrayLine
Get a light gray line Attribute.This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = light gray Background colour = white- Returns:
- A Line Attribute with light gray line settings
-
grayLine
Get a gray line Attribute.This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = gray Background colour = white- Returns:
- A Line Attribute with gray line settings
-
darkGrayLine
Get a dark gray line Attribute.This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = dark gray Background colour = white- Returns:
- A Line Attribute with dark gray line settings
-
width
Get the width for this attribute.- Returns:
- The width as a
UnitSpanobject
-
width
Set the width for this attribute.- Parameters:
oNewWidth- - The new width
-
hand
public int hand()Get the hand setting for this attribute.- Returns:
- The hand setting as a int enumeration
-
hand
public void hand(int oNewCode) Set the hand setting for this attribute.- Parameters:
oNewCode- - The new hand setting
-
cap
public int cap()Get the capability for this attribute.- Returns:
- The capability as a int enumeration
-
cap
public void cap(int oNewCode) Set the capability for this attribute.- Parameters:
oNewCode- - The capability value
-
equivalent
Equality comparison.Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
- Parameters:
oCompare- - Attribute object to compare against.- Returns:
- TRUE if all members are equal, FALSE otherwise.
-
equals
Equality comparison operator.Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
-
hashCode
public int hashCode() -
copyFrom
Assigment operator.Replace all attribute settings with those from the source object.
- Parameters:
oSource- - Source attribute object to copy.
-