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

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

Overview

Implementation of the ‘j’ operator.

See: PDF1.7 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.



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

def initialize
  super('j')
end

Instance Method Details

#invoke(processor, join_style) ⇒ Object

:nodoc:



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

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