Class GFXLineAttr
- java.lang.Object
-
- com.adobe.xfa.gfx.GFXAttr
-
- com.adobe.xfa.gfx.GFXLineAttr
-
public class GFXLineAttr extends GFXAttr
The graphic Line attribute object holds information about attribute values specific for line drawing.
-
-
Field Summary
Fields Modifier and Type Field Description static GFXLineAttr
BLACK_LINE
static int
CAP_BUTT
enumeration int: Specifies the current device capablilites.static int
CAP_ROUND
static int
CAP_SQUARE
static GFXLineAttr
DARKGRAY_LINE
static UnitSpan
DEFAULT_LINEWIDTH
static GFXLineAttr
GRAY_LINE
static int
HAND_EVEN
static int
HAND_LEFT
enumeration int: Specifies the type of coordinate system to use.static int
HAND_RIGHT
static GFXLineAttr
LIGHTGRAY_LINE
static GFXLineAttr
WHITE_LINE
-
Fields 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
Constructors Constructor Description GFXLineAttr()
Default constructor.GFXLineAttr(GFXLineAttr oSource)
Copy constructor.GFXLineAttr(UnitSpan oNewWidth, int nNewStyle, int lNewShade, GFXColour oNewColour, GFXColour oNewColourBg)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GFXLineAttr
blackLine()
Get a black line Attribute.int
cap()
Get the capability for this attribute.void
cap(int oNewCode)
Set the capability for this attribute.void
copyFrom(GFXLineAttr oSource)
Assigment operator.GFXLineAttr
darkGrayLine()
Get a dark gray line Attribute.GFXLineAttr
defaultLine()
Get a default Line Attribute.boolean
equals(java.lang.Object object)
Equality comparison operator.boolean
equivalent(GFXLineAttr oCompare)
Equality comparison.GFXLineAttr
grayLine()
Get a gray line Attribute.int
hand()
Get the hand setting for this attribute.void
hand(int oNewCode)
Set the hand setting for this attribute.int
hashCode()
GFXLineAttr
lightGrayLine()
Get a light gray line Attribute.GFXLineAttr
whiteLine()
Get a white line Attribute.UnitSpan
width()
Get the width for this attribute.void
width(UnitSpan oNewWidth)
Set 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 Detail
-
DEFAULT_LINEWIDTH
public static final UnitSpan DEFAULT_LINEWIDTH
-
BLACK_LINE
public static final GFXLineAttr BLACK_LINE
-
WHITE_LINE
public static final GFXLineAttr WHITE_LINE
-
LIGHTGRAY_LINE
public static final GFXLineAttr LIGHTGRAY_LINE
-
GRAY_LINE
public static final GFXLineAttr GRAY_LINE
-
DARKGRAY_LINE
public static final GFXLineAttr DARKGRAY_LINE
-
HAND_LEFT
public static final int HAND_LEFT
enumeration int: Specifies the type of coordinate system to use.HAND_LEFT : left-handed HAND_RIGHT : right-handed HAND_EVEN : even-handed (?)
- See Also:
- Constant Field Values
-
HAND_RIGHT
public static final int HAND_RIGHT
- See Also:
- Constant Field Values
-
HAND_EVEN
public static final int HAND_EVEN
- See Also:
- Constant Field Values
-
CAP_BUTT
public static final int CAP_BUTT
enumeration int: Specifies the current device capablilites.CAP_BUTT : CAP_ROUND : CAP_SQUARE :
- See Also:
- Constant Field Values
-
CAP_ROUND
public static final int CAP_ROUND
- See Also:
- Constant Field Values
-
CAP_SQUARE
public static final int CAP_SQUARE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFXLineAttr
public GFXLineAttr()
Default constructor.Creates a new Line attribute with default settings:
Width - default width Hand - even Cap - square
-
GFXLineAttr
public GFXLineAttr(GFXLineAttr oSource)
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 Detail
-
defaultLine
public GFXLineAttr 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
public GFXLineAttr 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
public GFXLineAttr 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
public GFXLineAttr 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
public GFXLineAttr 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
public GFXLineAttr 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
public UnitSpan width()
Get the width for this attribute.- Returns:
- The width as a
UnitSpan
object
-
width
public void width(UnitSpan oNewWidth)
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
public boolean equivalent(GFXLineAttr oCompare)
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
public boolean equals(java.lang.Object object)
Equality comparison operator.Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
-
copyFrom
public void copyFrom(GFXLineAttr oSource)
Assigment operator.Replace all attribute settings with those from the source object.
- Parameters:
oSource
- - Source attribute object to copy.
-
-