Class: HexaPDF::Content::Operator::SetLineJoinStyle

Inherits:
SingleNumericArgumentOperator show all
Defined in:
lib/hexapdf/content/operator.rb

Overview

Implementation of the ā€˜jā€™ operator.

See: PDF2.0 s8.4.4

Instance Attribute Summary

Attributes inherited from BaseOperator

#name

Instance Method Summary collapse

Methods inherited from SingleNumericArgumentOperator

#serialize

Methods inherited from BaseOperator

#serialize

Constructor Details

#initializeSetLineJoinStyle

Creates the operator.



239
240
241
# File 'lib/hexapdf/content/operator.rb', line 239

def initialize
  super('j')
end

Instance Method Details

#invoke(processor, join_style) ⇒ Object

:nodoc:



243
244
245
# File 'lib/hexapdf/content/operator.rb', line 243

def invoke(processor, join_style) #:nodoc:
  processor.graphics_state.line_join_style = LineJoinStyle.normalize(join_style)
end