DirectAnimation Animated Header --LineStyleBvr Class DirectAnimation Animated Header --LineStyleBvr Class* Microsoft DirectAnimation SDK
*Index  *Topic Contents
*Previous Topic: JoinStyleBvr Class
*Next Topic: MatteBvr Class

LineStyleBvr Class


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.

LineStyleBvr Methods

bullet1.gifcolor

bullet1.gifdash

bullet1.gifdetail

bullet1.gifend

bullet1.gifjoin

bullet1.giflineAntialiasing

bullet1.gifwidth

bullet1.gifnewUninitBvr


color

LineStyleBvr Class

Determines the color of a LineStyleBvr object. The default color is black.

public LineStyleBvr color(
  ColorBvr color
  );

Parameters
color
The ColorBvr object that sets the color of the line. The default color is black..
Return Values

Returns the LineStyleBvr object.


dash

LineStyleBvr Class

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
  );

Parameters
ds
The DashStyleBvr object that represents the dashstyle behavior to apply.
Return Values

Returns the LineStyleBvr object.


detail

LineStyleBvr Class

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( );

Return Values

Returns the LineStyleBvr object.

Remarks

Any width or any endstyle or joinstyle behavior associated with the existing linestyle is discarded when creating the new line style.


end

LineStyleBvr Class

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
  );

Parameters
es
The EndStyleBvr object that represents the endstyle behavior to apply.
Return Values

Returns the LineStyleBvr object.


join

LineStyleBvr Class

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
  );

Parameters
js
The JoinStyleBvr object that represents the joinstyle behavior to apply.
Return Values

Returns the LineStyleBvr object.


lineAntialiasing

LineStyleBvr Class

Determines whether or not the line will be antialiased.

public LineStyleBvr lineAntialiasing(
  double antiAliasing
  );

Parameters
antiAliasing
A double that specifies whether or not there will be antialiasing. A 0 (the default value) means there is no antialiasing and a 1 means there is.
Return Values

Returns the FontStyleBvr object.


width

LineStyleBvr Class

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
  );

Parameters
width
The NumberBvr object that represents the width of the line, in points. This parameter can also be of type double.
Return Values

Returns the LineStyleBvr object.

Remarks

This attribute overrides detail.


newUninitBvr

LineStyleBvr Class

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( );

Return Values

Returns the LineStyleBvr object.

Relevant Fields from the Statics Class

The following fields are defined in the Statics class and are most relevant to objects of type LineStyleBvr.

public final static LineStyleBvr defaultLineStyle;

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page