Class: Pdfrb::Model::Type::PatternTiling

Inherits:
Pattern show all
Defined in:
lib/pdfrb/model/type/pattern_tiling.rb

Overview

Type 1 tiling pattern (s8.7.3). Repeats a graphical cell.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from Pattern

#pattern_type, #shading?, #tiling?

Methods inherited from Cos::Dictionary

#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, own_fields, #pdf_type, register_type, type_map, #validate

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#bboxObject



10
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 10

def bbox; self[:BBox]; end

#colored?Boolean

Returns:

  • (Boolean)


16
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 16

def colored?; paint_type == 1; end

#constant_spacing?Boolean

Returns:

  • (Boolean)


19
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 19

def constant_spacing?; tiling_type == 1; end

#constant_spacing_no_distortion?Boolean

Returns:

  • (Boolean)


21
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 21

def constant_spacing_no_distortion?; tiling_type == 3; end

#matrixObject



14
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 14

def matrix; self[:Matrix]; end

#no_distortion?Boolean

Returns:

  • (Boolean)


20
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 20

def no_distortion?; tiling_type == 2; end

#paint_typeObject



8
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 8

def paint_type; self[:PaintType]; end

#resourcesObject



13
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 13

def resources; self[:Resources]; end

#tiling_typeObject



9
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 9

def tiling_type; self[:TilingType]; end

#uncolored?Boolean

Returns:

  • (Boolean)


17
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 17

def uncolored?; paint_type == 2; end

#x_stepObject



11
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 11

def x_step; self[:XStep]; end

#y_stepObject



12
# File 'lib/pdfrb/model/type/pattern_tiling.rb', line 12

def y_step; self[:YStep]; end