public class GFXLineAttr extends GFXAttr
The graphic Line attribute object holds information about attribute values specific for line drawing.
Modifier and Type | Field and 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 |
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 and Description |
---|
GFXLineAttr()
Default constructor.
|
GFXLineAttr(GFXLineAttr oSource)
Copy constructor.
|
GFXLineAttr(UnitSpan oNewWidth,
int nNewStyle,
int lNewShade,
GFXColour oNewColour,
GFXColour oNewColourBg)
Constructor.
|
Modifier and Type | Method and 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(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.
|
colour, colour, colourBg, colourBg, copyFrom, defaultShadeScale, equivalent, graphicContext, graphicContext, shade, shade, shadeColour, shadeScale, shadeScale, style, style
public static final UnitSpan DEFAULT_LINEWIDTH
public static final GFXLineAttr BLACK_LINE
public static final GFXLineAttr WHITE_LINE
public static final GFXLineAttr LIGHTGRAY_LINE
public static final GFXLineAttr GRAY_LINE
public static final GFXLineAttr DARKGRAY_LINE
public static final int HAND_LEFT
HAND_LEFT : left-handed HAND_RIGHT : right-handed HAND_EVEN : even-handed (?)
public static final int HAND_RIGHT
public static final int HAND_EVEN
public static final int CAP_BUTT
CAP_BUTT : CAP_ROUND : CAP_SQUARE :
public static final int CAP_ROUND
public static final int CAP_SQUARE
public GFXLineAttr()
Creates a new Line attribute with default settings:
Width - default width Hand - even Cap - square
public GFXLineAttr(GFXLineAttr oSource)
Creates a new Line attribute with the same settings as the source attribute.
oSource
- - Line attribute to copypublic GFXLineAttr(UnitSpan oNewWidth, int nNewStyle, int lNewShade, GFXColour oNewColour, GFXColour oNewColourBg)
Creates a new Line attribute with the specified settings.
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 usedpublic GFXLineAttr defaultLine()
This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = black Background colour = white
public GFXLineAttr blackLine()
This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = black Background colour = white
public GFXLineAttr whiteLine()
This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = white Background colour = white
public GFXLineAttr lightGrayLine()
This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = light gray Background colour = white
public GFXLineAttr grayLine()
This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = gray Background colour = white
public GFXLineAttr darkGrayLine()
This will return a Line Attribute with the following settings:
Width = default Style = solid Shade scale = maximum Foreground colour = dark gray Background colour = white
public UnitSpan width()
UnitSpan
objectpublic void width(UnitSpan oNewWidth)
oNewWidth
- - The new widthpublic int hand()
public void hand(int oNewCode)
oNewCode
- - The new hand settingpublic int cap()
public void cap(int oNewCode)
oNewCode
- - The capability valuepublic boolean equivalent(GFXLineAttr oCompare)
Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
oCompare
- - Attribute object to compare against.public boolean equals(Object object)
Compares on an attribute value basis. Two attributes are considered equal if their values compare for equality.
public void copyFrom(GFXLineAttr oSource)
Replace all attribute settings with those from the source object.
oSource
- - Source attribute object to copy.Copyright © 2010 - 2020 Adobe. All Rights Reserved