foxit.common.GraphState Class Reference

Inherits SystemIDisposable.

Public Types

enum  LineCapStyle { LineCapStyle.e_LineCapButt = 0, LineCapStyle.e_LineCapRound = 1, LineCapStyle.e_LineCapSquare = 2 }
 Enumeration for line cap style.
More...
 
enum  LineJoinStyle { LineJoinStyle.e_LineJoinMiter = 0, LineJoinStyle.e_LineJoinRound = 1, LineJoinStyle.e_LineJoinBevel = 2 }
 Enumeration for line join style.
More...
 

Public Member Functions

 GraphState (float line_width, GraphState.LineJoinStyle line_join, float miter_limit, GraphState.LineCapStyle line_cap, float dash_phase, FloatArray dashes)
 Constructor, with parameters.
More...
 
 GraphState ()
 Constructor.

 
 GraphState (GraphState state)
 Constructor, with another GraphState.

 
void Set (float line_width, GraphState.LineJoinStyle line_join, float miter_limit, GraphState.LineCapStyle line_cap, float dash_phase, FloatArray dashes)
 Set value.
More...
 

Detailed Description

This class represents PDF graph states.

Member Enumeration Documentation

◆ LineCapStyle

Enumeration for line cap style.

Values of this enumeration should be used alone. The line cap style specifies the shape to be used at the ends of open sub paths (and dashes, if any) when they are stroked.

Enumerator
e_LineCapButt 

Butt cap. The stroke is squared off at the endpoint of a path. There is no projection beyond the end of a path.

e_LineCapRound 

Round cap. A semicircular arc with a diameter equal to the line width is drawn around the endpoint and filled in.

e_LineCapSquare 

Projecting square cap. The stroke continues beyond the endpoint of the path for a distance equal to half the line width and is squared off.

◆ LineJoinStyle

Enumeration for line join style.

Values of this enumeration should be used alone. The line join style specifies the shape to be used at the corners of paths that are stroked.

Enumerator
e_LineJoinMiter 

Miter line join type.

The outer edges of the strokes for the two segments are extended until they meet at an angle.

e_LineJoinRound 

Round line join type.

An arc of a circle with a diameter equal to the line width is drawn around the point where the two segments meet, connecting the outer edges of the strokes for the two segments.

e_LineJoinBevel 

Bevel line join type.

The two segments are finished with butt caps and the resulting notch beyond the end of the segments is filled with a triangle.

Constructor & Destructor Documentation

◆ GraphState()

foxit.common.GraphState.GraphState ( float  line_width,
GraphState.LineJoinStyle  line_join,
float  miter_limit,
GraphState.LineCapStyle  line_cap,
float  dash_phase,
FloatArray  dashes 
)
inline

Constructor, with parameters.

Parameters
line_widthLine width. If 0 is set to this, it will be treated as 1 by default.
line_joinLine join style. Please refer to e_LineJoinXXX values and it should be one of these values.
miter_limitThe miter limit for line join.
line_capLine cap style. Please refer to e_LineCapXXX values and it should be one of these values.
dash_phaseDash phase for line dash pattern.
dashesA dash array that represents the dash patterns. The value of each element in this array should not be negative.

Member Function Documentation

◆ Set()

void foxit.common.GraphState.Set ( float  line_width,
GraphState.LineJoinStyle  line_join,
float  miter_limit,
GraphState.LineCapStyle  line_cap,
float  dash_phase,
FloatArray  dashes 
)
inline

Set value.

Parameters
line_widthLine width. If 0 is set to this, it will be treated as 1 by default.
line_joinLine join style. Please refer to e_LineJoinXXX values and it should be one of these values.
miter_limitThe miter limit for line join.
line_capLine cap style. Please refer to e_LineCapXXX values and it should be one of these values.
dash_phaseDash phase for line dash pattern.
dashesA dash array that represents the dash patterns. The value of each element in this array should not be negative.
Returns
None.

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.