public class LineStyleBvr extends Behavior { //Methods public LineStyleBvr color(ColorBvr color); public LineStyleBvr detail(); public LineStyleBvr dash(DashStyleBvr ds); public LineStyleBvr end(EndStyleBvr es); public LineStyleBvr join(JoinStyleBvr js); public LineStyleBvr lineAntialiasing(double antiAliasing); public LineStyleBvr width(NumberBvr width); public static LineStyleBvr newUninitBvr(); }
Creates an object that represents a linestyle behavior. The behavior defines the various line styles to use when drawing lines. These styles includes the shape of the end of a line, the shape of joints between intersecting lines, the width of the line, and whether the line is drawn with a continuous stroke or as a sequence of dashes.
You use linestyle behaviors with the draw_path2 method of the Path2Bvr class.
Determines the color of a LineStyleBvr object. The default color is black.
public LineStyleBvr color(
ColorBvr color
);
Returns the LineStyleBvr object.
Creates a linestyle behavior that is the result of applying the given dashstyle behavior to the existing linestyle. By default, the dashstyle is solid.
public LineStyleBvr dash(
DashStyleBvr ds
);
Returns the LineStyleBvr object.
Creates a detail linestyle behavior from an existing linestyle. A detail linestyle is not changed by image scaling operations. By default, the detailstyle is on. This means it is the default style and it has no width.
public LineStyleBvr detail( );
Returns the LineStyleBvr object.
Any width or any endstyle or joinstyle behavior associated with the existing linestyle is discarded when creating the new line style.
Creates a linestyle behavior that is the result of applying the given endstyle to the existing linestyle. By default, the endstyle is flat.
public LineStyleBvr end(
EndStyleBvr es
);
Returns the LineStyleBvr object.
Creates a linestyle behavior that is the result of applying the given joinstyle behavior to the existing linestyle. By default, the joinstyle is beveled.
public LineStyleBvr join(
JoinStyleBvr js
);
Returns the LineStyleBvr object.
Determines whether or not the line will be antialiased.
public LineStyleBvr lineAntialiasing(
double antiAliasing
);
Returns the FontStyleBvr object.
Creates a linestyle behavior from an existing linestyle by setting the width of line to the given amount, expressed in points. If the result is a line less than 1 pixel wide, the line will always be a detail line.
public LineStyleBvr width(
NumberBvr width
);
Returns the LineStyleBvr object.
This attribute overrides detail.
This method allows you to refer to an LineStyleBvr behavior before that behavior has been defined. With this method you can create the behavior and use it in the definition of other behaviors, but not actually define its contents until some later point. (This is accomplished with the init method, which is available on all behaviors.) The system generates a run-time error if you initialize a non-uninitialized behavior, initialize an uninitialized behavior that has already been initialized, or run an initialized behavior that has not yet been initialized.
public static LineStyleBvr newUninitBvr( );
Returns the LineStyleBvr object.
The following fields are defined in the Statics class and are most relevant to objects of type LineStyleBvr.
public final static LineStyleBvr defaultLineStyle;
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.