All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.LineAttributes

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.LineAttributes

public class LineAttributes
extends NodeComponent
The LineAttributes object defines all rendering state that can be set as a component object of a Shape3D node.


Variable Index

 o PATTERN_DASH
Draw a dashed line.
 o PATTERN_DASH_DOT
Draw a dashed-dotted line.
 o PATTERN_DOT
Draw a dotted line.
 o PATTERN_SOLID
Draw a solid line with no pattern.

Constructor Index

 o LineAttributes()
Constructs LineAttributes object with default values.
 o LineAttributes(float, int, boolean)
Constructs LineAttributes object with specified values.

Method Index

 o getLineAntialiasingEnable()
Retrieves the state of the line antialiasing flag.
 o getLinePattern()
Gets the line pattern for this lineAttributes component object.
 o getLineWidth()
Gets the line width for this lineAttributes component object.
 o setLineAntialiasingEnable(boolean)
Enables or disables line antialiasing for this lineAttributes component object.
 o setLinePattern(int)
Sets the line pattern for this lineAttributes component object.
 o setLineWidth(float)
Sets the line width for this lineAttributes component object.

Variables

 o PATTERN_SOLID
 public static final int PATTERN_SOLID
Draw a solid line with no pattern.

 o PATTERN_DASH
 public static final int PATTERN_DASH
Draw a dashed line. Ideally, this will be drawn with a repeating pattern of 8 pixels on and 8 pixels off.

 o PATTERN_DOT
 public static final int PATTERN_DOT
Draw a dotted line. Ideally, this will be drawn with a repeating pattern of 1 pixel on and 7 pixels off.

 o PATTERN_DASH_DOT
 public static final int PATTERN_DASH_DOT
Draw a dashed-dotted line. Ideally, this will be drawn with a repeating pattern of 7 pixels on, 4 pixels off, 1 pixel on, and 4 pixels off.

Constructors

 o LineAttributes
 public LineAttributes()
Constructs LineAttributes object with default values.

 o LineAttributes
 public LineAttributes(float lineWidth,
                       int linePattern,
                       boolean lineAntialiasing)
Constructs LineAttributes object with specified values.

Parameters:
lineWidth - the width of lines.
linePattern - one of legal pattern.
lineAntialiasing - flag to set line antialising ON or OFF

Methods

 o setLineWidth
 public final void setLineWidth(float lineWidth)
Sets the line width for this lineAttributes component object.

Parameters:
lineWidth - the width, in pixels, of line primitives
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o getLineWidth
 public final float getLineWidth()
Gets the line width for this lineAttributes component object.

Returns:
the width, in pixels, of line primitives
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o setLinePattern
 public final void setLinePattern(int linePattern)
Sets the line pattern for this lineAttributes component object.

Parameters:
linePattern - the line pattern to be used, one of: PATTERN_SOLID, PATTERN_DASH, PATTERN_DOT, or PATTERN_DASH_DOT
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o getLinePattern
 public final int getLinePattern()
Gets the line pattern for this lineAttributes component object.

Returns:
the line pattern
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o setLineAntialiasingEnable
 public final void setLineAntialiasingEnable(boolean state)
Enables or disables line antialiasing for this lineAttributes component object.

Parameters:
state - true or false to enable or disable line antialiasing
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o getLineAntialiasingEnable
 public final boolean getLineAntialiasingEnable()
Retrieves the state of the line antialiasing flag.

Returns:
true if line antialiasing is enabled, false if line antialiasing is disabled
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph

All Packages  Class Hierarchy  This Package  Previous  Next  Index